curl --request GET \
--url https://api.onswitch.xyz/history/payments \
--header 'x-service-key: <api-key>'{
"success": true,
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"data": {
"data": [
{
"status": "<string>",
"type": "OFFRAMP",
"reference": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rate": 123,
"fee": {
"network": "<string>",
"currency": "<string>",
"amount": 123
},
"source": {
"amount": 123,
"currency": "<string>",
"network": "<string>"
},
"destination": {
"amount": 123,
"currency": "<string>",
"network": "<string>"
},
"payload": {},
"deposit": {},
"sender": "<string>",
"session_id": "<string>",
"hash": "<string>",
"explorer_url": "<string>"
}
],
"page": 123,
"limit": 123,
"total": 123,
"pages": 123
}
}Returns paginated payments history.
curl --request GET \
--url https://api.onswitch.xyz/history/payments \
--header 'x-service-key: <api-key>'{
"success": true,
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"data": {
"data": [
{
"status": "<string>",
"type": "OFFRAMP",
"reference": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rate": 123,
"fee": {
"network": "<string>",
"currency": "<string>",
"amount": 123
},
"source": {
"amount": 123,
"currency": "<string>",
"network": "<string>"
},
"destination": {
"amount": 123,
"currency": "<string>",
"network": "<string>"
},
"payload": {},
"deposit": {},
"sender": "<string>",
"session_id": "<string>",
"hash": "<string>",
"explorer_url": "<string>"
}
],
"page": 123,
"limit": 123,
"total": 123,
"pages": 123
}
}Service key for API authentication
Filter by payment direction
OFFRAMP, ONRAMP, SWAP, WALLET Case-insensitive substring match on payment reference or meta.external_reference
200Inclusive lower bound on created_at (ISO 8601)
Inclusive upper bound on created_at (ISO 8601)
Page number (1-based). Default 1.
x >= 1Page size. Default 10, maximum 100.
1 <= x <= 100Payment history retrieved successfully
Hide child attributes
Payment records for the current page
Hide child attributes
OFFRAMP, ONRAMP, SWAP, WALLET Total matching payments (all pages)
Total number of pages for the current limit