Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Execute a swap between two currencies.
POST /exchange/swap
amount
source_currency
USD
target_currency
NGN
curl --location 'https://api.spendjuice.com/exchange/swap' \ --header 'Authorization: <API-KEY>' --data '{ "amount": 1000, "source_currency": "NGN", "target_currency": "USD", "quote_id": "4bed6a6a-2431-4a51-9600-d0badd939bf7" }' ```
{ "data": { "correlation_id": "7da742ea-a1bc-11ee-b907-560f156a658b", "created_at": "2021-01-01T00:00:00Z", "customer": { "email": "customer@email.com", "id": "1", "name": "User 1", "type": "user" }, "id": "7da8e726-a1bc-11ee-80cf-560f156a658b", "provider": { "email": "provider@email.com", "id": "1", "name": "Provider 1", "type": "provider" }, "source_amount": { "amount": 1.0, "currency": "USD" }, "status": "success", "symbol": "USD-NGN", "target_amount": { "amount": 1000.0, "currency": "NGN" }, "updated_at": "2021-01-01T00:00:00Z" } }