Additional confirmation of the withdrawal
Last updated
Last updated
When creating a withdrawal from the payment acceptance widget, a webhook will be sent to the URL specified to confirm the withdrawal when creating the widget.
The body of the webhook will indicate the user who requested the withdrawal, the requested amount, the requested coins and recalculation to the coin selected for withdrawal. You can confirm or reject the output sent by the corresponding value in the request
Public API-key
Signing the request body with a private API-key
Request content type
application/json
Auto-withdrawal ID
66410354-fd3d-4967-a7f8-8d951fd3f501
The flag of approval (true) or rejection (false) of the withdrawal request
POST /api-gateway/auto-withdrawals/approve HTTP/1.1
Host: app.apollopayment.io
Content-Type: application/json
Accept: */*
Content-Length: 60
{
"id": "66410354-fd3d-4967-a7f8-8d951fd3f501",
"approve": true
}
{
"success": true,
"response": {
"id": "66410354-fd3d-4967-a7f8-8d951fd3f501",
"organizationId": "f4ac6f4e-f902-4f7e-ad65-83bf3b450563",
"type": "WITHDRAWAL",
"status": "PENDING",
"message": null,
"addressRiskLevel": "Low",
"currencyFrom": "USDT",
"networkFrom": "bsc",
"currencyTo": "BTC",
"networkTo": "bitcoin",
"addressFromId": "25a8de42-a359-47f1-bb82-bc9f6c20f1b9",
"addressFrom": "0xD65D24ABCd85165a243C33Cf8133ffBaaa98255D",
"addressTo": "0x22aECc7ff5b435E38be5457C8538256918783F67",
"amountFrom": "1000",
"amountFromUSD": "1000",
"amountTo": "0.1",
"amountToUSD": "990",
"amountToReceive": "0.999",
"rate": "10000",
"blockchainFeeFrom": "0.34",
"blockchainFeeFromUSD": "0.34",
"blockchainFeeToSource": "ADVANCED",
"blockchainFeeTo": "0.001",
"blockchainFeeToUSD": "10",
"serviceFee": "10",
"txId": "0xadcc95b8bcd123e41612c46b057df889e32a73297e973c21e8b38046ac04130a",
"webhookUrl": "https://merchant.domain/webhooks/...",
"approveUrl": "https://merchant.domain/webhooks/...",
"approveResult": {
"apiKey": {
"id": "42fcefe9-2c54-4b5c-bc0a-51500f80c4af",
"public": "c9jeO7OJcJb7cnBTVXrgtRzazf60W4Lbsz3/wOYM1m2EsJyZz5wGfbIIuoJ4Ugs6HMowQj8zlv2jf8Vt1ra4Fw=="
},
"request": {
"ip": "123.231.123.100",
"userAgent": "axios/1.6.0"
},
"approve": true,
"time": "2025-06-09T13:18:29.415Z"
},
"requestedClientId": "d2843769-504f-4ea7-9dc8-a4f5492f497d",
"requestedCurrency": "EUR",
"requestedAmount": "5500",
"createdAt": "2025-06-09T13:18:29.415Z",
"updatedAt": "2025-06-09T13:18:29.415Z"
}
}