Withdrawal
Receiving a commission token to withdraw an orphan transaction
Header parameters
x-api-public-keystringOptional
Public API-key
x-api-signaturestringOptional
Signing the request body with a private API-key
Content-typestringOptionalExample:
Request content type
application/json
Body
tokenstringOptionalExample:
Withdrawal Token
U2FsdGVkX1904A9GNBu5q9CaCR2Lfr5hUP1gzuHUf9Kj3FUvcdWLQlGuuhpEfk+8H70D/41qXmTBcMKpPDZLL4+nBJzTMWAw3+wccMSyeMbpOkf1IMoJ7/A4tKsSV9qGyEPxp1vRSlLOxU3yYizvF7sQLXJzueRbu9v1LAX5weSrl9wgCMNoTicHf9p1F0eb3ZLobmjzKfZErWS3OVZnfg==
addressstringOptionalExample:
Output address
0x4642BEd309FdB7FFdB34175Cf39c409711cefa5a
commentstring | nullOptional
Comment on the conclusion
webhookUrlstringOptionalExample:
URL for sending a webhook about the withdrawal
https://merchant.domain/webhooks/orphan
Responses
200Success
application/json
post
POST /api-gateway/orphan-deposits/withdrawal HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 353
{
"token": "U2FsdGVkX1904A9GNBu5q9CaCR2Lfr5hUP1gzuHUf9Kj3FUvcdWLQlGuuhpEfk+8H70D/41qXmTBcMKpPDZLL4+nBJzTMWAw3+wccMSyeMbpOkf1IMoJ7/A4tKsSV9qGyEPxp1vRSlLOxU3yYizvF7sQLXJzueRbu9v1LAX5weSrl9wgCMNoTicHf9p1F0eb3ZLobmjzKfZErWS3OVZnfg==",
"address": "0x4642BEd309FdB7FFdB34175Cf39c409711cefa5a",
"comment": null,
"webhookUrl": "https://merchant.domain/webhooks/orphan"
}
200Success
{
"success": true,
"response": {
"id": "47e00ba7-c792-4b44-adb3-a52978aa29e7",
"organizationId": "dc406456-ac5c-4bd1-8ef6-00427fd92a96",
"orderId": "118e308d-b1e9-44ea-9701-66f7b27bdbe8",
"stage": "DEPOSIT",
"status": "PROCESSED",
"message": null,
"currency": "BNB",
"network": "ethereum",
"amount": "0.00612",
"canWithdrawal": true,
"inTransaction": {
"addressType": "PAY_IN",
"addressId": "4c80575c-6979-45e5-94b9-ea19c1443f4f",
"address": "0x4642BEd309FdB7FFdB34175Cf39c409711cefa5a",
"txId": "0xdb81763509668071c5d2a18f295d8d7ac48a7a31927ed2463cea41e291394f8f",
"amount": "0.00612",
"status": "processed",
"createdAt": "2025-06-09T11:38:26.503Z"
},
"outTransaction": {
"address": "0x4642BEd309FdB7FFdB34175Cf39c409711cefa5a",
"txId": "0xdb81763509668071c5d2a18f295d8d7ac48a7a31927ed2463cea41e291394f8f",
"amount": "0.00612",
"status": "processed",
"feeAmount": "0.000090942",
"feeAmountUSD": "0.03",
"withdrawalId": "0c88a553-c5f5-439c-8fb5-dadd109cfae2",
"createdAt": "2025-06-09T11:38:26.503Z"
},
"createdAt": "2025-06-09T11:38:26.503Z"
}
}
Last updated