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_idstring or nullOptional
counterparty_off_chrt_org_data_idstring or nullOptional
counterparty_org_idstring or nullOptional

Response

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

Errors

422
Unprocessable Entity Error