Convert on an unexpired quote the same customer was given on this account, once (fresh step-up; Idempotency-Key bound to the quote)
/accounts/{id}/fx-conversionsThe customer who obtained the quote on this account converts it, with authentication within five minutes (step_up_required, 403) and an Idempotency-Key bound to the quote. Both accounts are checked again under their control locks, so a freeze, debit restriction or closure placed after the quote refuses the conversion before the ledger is asked. The instruction is retained with the customer's identity before the ledger posts one journal through the FX positions; a lost ledger response is recovered by the service's ledger key, and a replay of the customer's key answers the same conversion with 200. A quote converts once: another key for it is refused 409, and an expired quote is ledger.fx_quote_expired (409).
Path parameters
idstringRequiredHeaders
Idempotency-KeystringRequiredSend on every write that creates or changes money or state; a replay with the same key returns the original result with 200.
Body parameters
quote_idstringRequiredReturns
200 OK
actorstringRequiredconversionobjectRequiredConversion is a posted customer conversion.
11 child attributes
business_datestring · dateRequiredA business date, YYYY-MM-DD
callerstringRequiredcreated_atstring · date-timeRequiredidstringRequiredjournal_idstringRequiredExample jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm
ownerstringRequiredpriceobjectRequiredConversionPrice is the exact result of pricing a conversion on a customer sheet.
10 child attributes
customer_ratestringRequiredTarget major units per source major unit, ten decimals, for display only
source_amountintegerOptionalsource_currency_codestringRequiredsource_usd_equivalentintegerRequiredsource_usd_per_majorstringRequiredspread_usd_minorintegerRequiredtarget_amountintegerOptionaltarget_currency_codestringRequiredtarget_usd_equivalentintegerRequiredtarget_usd_per_majorstringRequiredquote_idstringRequiredrate_sheet_idstringRequiredsource_ledger_account_idstringRequiredExample lacc_2tVh8nqLxq4GbDe0K1F6S9zRcWm
target_ledger_account_idstringRequiredExample lacc_2tVh8nqLxq4GbDe0K1F6S9zRcWm
created_atstring · date-timeRequiredcustomer_idstringRequiredExample cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm
idstringRequiredkindstringRequiredQuote or conversion
quote_idstringRequiredsource_account_idstringRequiredExample acct_2tVh8nqLxq4GbDe0K1F6S9zRcWm
target_account_idstringRequiredExample acct_2tVh8nqLxq4GbDe0K1F6S9zRcWm
Errors
Every error is a problem document with a stable code. See Errors.
400401403404409412413422424429500503