Swaps
Get Swap
Payments
- Overview
- Encryption Keys
- Initialize Payment
- Capture Payment
- Authorize Payment
- Payment Widget
Payment Transactions
Transfers
- Transfers Overview
- Beneficiaries
- Transfers
- Bulk Transfers
Exchange
- Market Makers
- Standing Orders
- Orders
- Rates
- Swaps
- Swap Configurations
Swaps
Get Swap
Retrieve details of a specific swap by ID.
GET /exchange/swap/{id}
Parameters:
id
(string, required): The unique ID of the swap.
Sample Request
curl -X GET "https://exchange.spendjuice.com/v1/exchange/swap/7da8e726-a1bc-11ee-80cf-560f156a658b" \
-H "Authorization: Bearer <your_token>"
Sample Response
{
"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"
}
}