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_ratedoubleOptional
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.
descriptionstringOptional<=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_numberstringOptionalformat: "^\d{3}-\d{8}$"

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

billing_period_idstringOptional
counterparty_driver_idstringOptional
counterparty_off_chrt_org_data_idstringOptional
counterparty_org_idstringOptional

Must be a string starting with org_

currency_conversionobjectOptional
export_ref__sage__item_idstringOptional<=255 characters
invoice_idstringOptional
order_idstringOptional
rate_sheet_idstringOptional
shipper_account_idstringOptional
statusenumOptional
task_group_idstringOptional
tax_percentagedoubleOptional>=0
unitenumOptional

Errors

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