Internal Transfers & FX - API

How to move funds between accounts of the same currency and execute currency exchanges via the Lorum API.

Internal transfers move funds between two accounts of the same currency within Lorum. Currency exchanges convert funds between two accounts holding different currencies.


Internal Transfers

Creating an Internal Transfer

Move funds between two accounts of the same currency via Create Internal Transfer

POST /v1/accounts/{account_id}/transfers.

πŸ“˜

All POST requests to create transfers must include an Idempotency-Key header. See Understanding Idempotency for details.

FieldTypeRequiredDescription
to_account_iduuidβœ…The destination account
amountintegerβœ…Amount in minor currency units (e.g. 100 = 1.00)
referencestringβœ…Your reference for the transfer
external_idstring❌Your own unique ID for the transfer

Webhooks are sent as the transfer progresses. See Webhook Catalogue for the full list of transfer events.


Currency Exchange (FX)

Getting an Exchange Quote

Get a real-time quote for a currency exchange via Get Exchange Quote

GET /v1/exchange/quote.

FieldTypeRequiredDescription
sell_currencystringβœ…ISO currency code of the currency to sell
buy_currencystringβœ…ISO currency code of the currency to buy
sell_amountinteger❌Amount to sell in minor currency units. Required if buy_amount is not provided
buy_amountinteger❌Amount to buy in minor currency units. Required if sell_amount is not provided

The quote response includes a quote_id that must be passed when creating the exchange.

Creating a Currency Exchange

Execute a currency exchange between two accounts via Create Exchange

POST /v1/exchange.

πŸ“˜

All POST requests to create exchanges must include an Idempotency-Key header. See Understanding Idempotency for details.

FieldTypeRequiredDescription
from_account_iduuidβœ…The account to sell from
to_account_iduuidβœ…The account to buy into
quote_iduuidβœ…The quote ID returned from the Get Exchange Quote endpoint
external_idstring❌Your own unique ID for the exchange

Webhooks are sent as the exchange progresses. See Webhook Catalogue for the full list of exchange events.


What’s Next

Track your transfers and exchanges as they move through their lifecycle.

Did this page help you?