Get a commission token
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
idstringRequiredExample:
Transaction ID in the system
3d7562b2-419b-4d9c-a8f1-29032f4abbe3
Responses
200Success
application/json
post
POST /api-gateway/orphan-deposits/withdrawal-token HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"id": "3d7562b2-419b-4d9c-a8f1-29032f4abbe3"
}
200Success
{
"success": true,
"response": {
"currency": "BNB",
"network": "ethereum",
"feeSource": "ADVANCE",
"blockchainFee": "0.00042",
"blockchainFeeUSD": "0.063",
"serviceFee": "0.01",
"serviceFeeUSD": "0.01",
"amount": {
"type": "string",
"example": "0.00612",
"description": "Transaction amount"
},
"amountTo": {
"type": "string",
"example": "0.00612",
"description": "Transaction amount"
},
"price": "1.1234",
"token": "U2FsdGVkX18Rix6+zqha0NBPlzacBMtn4lvyV2n+30SY5/5PWn4OgvwLp2zAfjNXTqd5t5pbKd7McDVO8on1FDgvT9R5UdnaOJVo6qZuJR3yER51Y3C+58xFWoB9ZaFdlIPSH049vc6hJoY83Zut4+k3ifJxvvSkWoCINHb04H9WIr3/7Lam7DdD0VZt8R1d5054tgaxAUfvHQfh+uwKMQ==",
"expires": "2025-06-09T13:18:11.504Z"
}
}
Last updated