Withdrawal
Last updated
Last updated
Receiving a commission token to withdraw an orphan transaction
Public API-key
Signing the request body with a private API-key
Request content type
application/json
Withdrawal Token
U2FsdGVkX18Rix6+zqha0NBPlzacBMtn4lvyV2n+30SY5/5PWn4OgvwLp2zAfjNXTqd5t5pbKd7McDVO8on1FDgvT9R5UdnaOJVo6qZuJR3yER51Y3C+58xFWoB9ZaFdlIPSH049vc6hJoY83Zut4+k3ifJxvvSkWoCINHb04H9WIr3/7Lam7DdD0VZt8R1d5054tgaxAUfvHQfh+uwKMQ==
Output address
0x4642BEd309FdB7FFdB34175Cf39c409711cefa5a
Comment on the conclusion
URL for sending a webhook about the withdrawal
https://merchant.domain/webhooks/orphan
POST /api-gateway/orphan-deposits/withdrawal HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 353
{
"token": "U2FsdGVkX18Rix6+zqha0NBPlzacBMtn4lvyV2n+30SY5/5PWn4OgvwLp2zAfjNXTqd5t5pbKd7McDVO8on1FDgvT9R5UdnaOJVo6qZuJR3yER51Y3C+58xFWoB9ZaFdlIPSH049vc6hJoY83Zut4+k3ifJxvvSkWoCINHb04H9WIr3/7Lam7DdD0VZt8R1d5054tgaxAUfvHQfh+uwKMQ==",
"address": "0x4642BEd309FdB7FFdB34175Cf39c409711cefa5a",
"comment": null,
"webhookUrl": "https://merchant.domain/webhooks/orphan"
}
{
"success": true,
"response": {
"id": "3d7562b2-419b-4d9c-a8f1-29032f4abbe3",
"organizationId": "4f990a2c-7242-4b02-a784-1504641b611b",
"orderId": "54f0c63c-10d8-4411-b237-f6107a3fff6f",
"stage": "DEPOSIT",
"status": "PROCESSED",
"message": null,
"currency": "BNB",
"network": "ethereum",
"amount": "0.00612",
"canWithdrawal": true,
"inTransaction": {
"addressType": "PAY_IN",
"addressId": "13ef68f3-ca67-4e0d-aa9d-b187cf0662ae",
"address": "0x4642BEd309FdB7FFdB34175Cf39c409711cefa5a",
"txId": "0xdb81763509668071c5d2a18f295d8d7ac48a7a31927ed2463cea41e291394f8f",
"amount": "0.00612",
"status": "processed",
"createdAt": "2025-06-09T13:18:11.476Z"
},
"outTransaction": {
"address": "0x4642BEd309FdB7FFdB34175Cf39c409711cefa5a",
"txId": "0xdb81763509668071c5d2a18f295d8d7ac48a7a31927ed2463cea41e291394f8f",
"amount": "0.00612",
"status": "processed",
"feeAmount": "0.000090942",
"feeAmountUSD": "0.03",
"withdrawalId": "232c4881-ec2e-4604-8a68-756aafcf8739",
"createdAt": "2025-06-09T13:18:11.476Z"
},
"createdAt": "2025-06-09T13:18:11.476Z"
}
}