Execute Crypto Payout Order
2 min
This API is used to execute a crypto payout order and complete the user’s withdrawal. It accepts token , requestId and clientId
Call this api after generating token from Crypto Payout Order with mode=createEstimate
Execute Crypto Payout Order
Execute an order with payout details from application's backend
POST
https://your-hostname.pay3.app/v1/client/crypto-payout/execute
Header Parameters
- tokenstringrequiredDescription
- requestIdstringrequiredDescription
- clientIdstringrequiredDescription
Response
- orderIdstringDescription
- requestIdstringDescription
- txnHashstringDescription
- orderTypestringDescription
- statusstringDescription
curl
curl --location 'https://api.dev.pay3.app/v1/client/crypto-payout/execute' \
--header 'signature: {{signature}}' \
--header 'access-token: {dynamic-access-toke}' \
--header 'Content-Type: application/json' \
--data '{
"token":"a003d60c-d0ae-40e5-a7cb-2634ab607253",
"requestId":"a1d4a50e-5577-4581-a980-98b03bc76260",
"clientId":"...."
}'
200
{
"txnHash": "...",
"orderType": "PAYOUT",
"orderId": "3b5a941c-efef-4125-9237-3216ddd6f607",
"requestId": "a1d4a50e-5577-4581-a980-98b03bc76260",
"status": "ORDER_PAYMENT_PROCESSING"
}401
{
error: {
code: '7001',
message: 'Order already exists for given requestId'
}
}