curl --request POST \
--url https://api.onswitch.xyz/payment/confirm \
--header 'Content-Type: application/json' \
--header 'x-service-key: <api-key>' \
--data '
{
"reference": "a3f9c2e1-7b4d-4a8e-9c62-1d8f4e6b2a90",
"hash": "0x9be818c30cbe52dc3b36f05e631f0de74542967054d0821dc8bd660ba9c2de7e"
}
'{
"success": true,
"status": 200,
"message": "Payment confirmed successfully",
"timestamp": "2026-04-18T14:22:08.631Z",
"data": {
"reference": "a3f9c2e1-7b4d-4a8e-9c62-1d8f4e6b2a90",
"status": "PROCESSING"
}
}Manually confirm a payment deposit.
curl --request POST \
--url https://api.onswitch.xyz/payment/confirm \
--header 'Content-Type: application/json' \
--header 'x-service-key: <api-key>' \
--data '
{
"reference": "a3f9c2e1-7b4d-4a8e-9c62-1d8f4e6b2a90",
"hash": "0x9be818c30cbe52dc3b36f05e631f0de74542967054d0821dc8bd660ba9c2de7e"
}
'{
"success": true,
"status": 200,
"message": "Payment confirmed successfully",
"timestamp": "2026-04-18T14:22:08.631Z",
"data": {
"reference": "a3f9c2e1-7b4d-4a8e-9c62-1d8f4e6b2a90",
"status": "PROCESSING"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.onswitch.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Service key for API authentication
The unique transaction reference identifier
"a3f9c2e1-7b4d-4a8e-9c62-1d8f4e6b2a90"
Blockchain transaction hash for the deposit. Required when confirming OFFRAMP payments, optional for other payment types.
"0x9be818c30cbe52dc3b36f05e631f0de74542967054d0821dc8bd660ba9c2de7e"