Skip to navigation

Revert currency conversion by orders

Restores each selected order’s converted charges for one direction, counterparty, and source currency to their original amounts. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionRevertForOrdersReq) -> (list[InvoiceLineItemsCurrencyConversionForOrdersRes])

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
invoice_typeenumRequired
Allowed values:
order_idslist of stringsRequired
source_currency_codeenumRequired

Original currency of the charges to act on -- their currency_conversion.source_currency_code if already converted, otherwise their current currency_code.

counterparty_driver_idstringOptional
counterparty_off_chrt_org_data_idstringOptional
counterparty_org_idstringOptional

Must be a string starting with org_

Response

Successful Response
order_idstring
statusenum
Allowed values:
converted_invoice_line_itemslist of objectsOptional
failure_reasonstringOptional
unmatched_invoice_line_item_idslist of stringsOptional
Order charges for another direction, counterparty, or original source currency.

Errors

422
Invoice Line Items Revert Currency Conversion for Orders V1request Unprocessable Entity Error