Update currency conversion for many

Applies or reverts one currency conversion on line items from their original source values and moves attached items to the matching target-currency draft invoice. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionUpdateManyReq) -> (list[InvoiceLineItem1])

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
invoice_line_item_idslist of stringsRequired
target_currency_codeenumRequired
conversion_ratedouble or nullOptional
Units of target_currency_code per one unit of the line items' original source currency -- their currency_conversion.source_currency_code if already converted, otherwise their current currency_code. Always relative to that original source, never to an intermediate converted currency, so conversions never compound. Omitted when target_currency_code is the original source currency, which reverts the conversion.
descriptionstring or nullOptional<=255 characters

Response

Successful Response
_idstring
created_at_timestampdatetime
created_by_user_idstring

Must be a string starting with user_

currency_codeenum
descriptionstring1-32768 characters
invoice_typeenum
last_edited_at_timestampdatetime
last_edited_by_user_idstring

Must be a string starting with user_

line_item_typeenum
owned_by_org_idstring

Must be a string starting with org_

quantitydouble
schema_versioninteger
unit_pricedouble
awb_numberstring or nullOptionalformat: "^\d{3}-\d{8}$"

IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. ‘020-12345678’.

billing_period_idstring or nullOptional
counterparty_driver_idstring or nullOptional
counterparty_off_chrt_org_data_idstring or nullOptional
counterparty_org_idstring or nullOptional

Must be a string starting with org_

currency_conversionobject or nullOptional
export_ref__sage__item_idstring or nullOptional<=255 characters
invoice_idstring or nullOptional
order_idstring or nullOptional
rate_sheet_idstring or nullOptional
shipper_account_idstring or nullOptional
statusenumOptional
task_group_idstring or nullOptional
tax_percentagedouble or nullOptional>=0
unitenum or nullOptional

Errors

422
Invoice Line Items Update Currency Conversion Many V1request Unprocessable Entity Error