latestOpenAPI 3.0.32026-08-106722.8 KB
7579ec027be7
Orders
Get orders
Returns either:
- A list of recent orders, limited to a maximum of 50 orders, sorted by descending creation date.
- If externalReference is provided, returns all orders matching that reference.
- If walletAddress is provided, returns all orders for that wallet address.
get/v1/orders
Query parameters
limitinteger
The number of orders to return. Default and maximum is 50. Ignored when externalReference is provided.
offsetinteger
The number of orders to skip. Use together with limit for pagination.
externalReferencestring
External reference of the order(s) set by the partner.
walletAddressstring
User wallet address.
outputCurrencystring
Filter by output (crypto) currency code.
fromstring date
Start of the date range, inclusive. Format: YYYY-MM-DD.
tostring date
End of the date range, exclusive. Format: YYYY-MM-DD.
Response
List of orders.
Example response
[
{
"orderId": "f41a3e45-6392-457c-8566-a282b5f3e177",
"externalReference": "your_order_id",
"subPartnerId": "your_sub_partner_id",
"orderType": "BUY",
"createdAt": "2024-10-01T12:00:00Z",
"orderState": "COMPLETED",
"orderStateUpdatedAt": "2024-10-01T13:00:00Z",
"paymentMethod": "CARD",
"inputCurrency": "USD",
"inputAmount": "100.00",
"outputCurrency": "BTC",
"outputAmount": "0.001",
"amountUsd": "100.00",
"processingFee": "1.00",
"processingFeeUsd": "1.00",
"partnerFee": "0.50",
"partnerFeeUsd": "0.50",
"networkFee": "1.50",
"networkFeeUsd": "1.50",
"userId": "2b6f0cc9-7b0c-4f3b-8f3b-6f0cc97b0c4f",
"targetWalletAddress": "bc1q897va9he4zcppqgp3h7ue8hj7448ra0mr6xqtu",
"transactionHash": "4b1549abe58cface17d400bf50ff0fe0c2e2ca8121f4e3764d807dc841a2ab80"
}
]