Get a commission token

Receiving a commission token to withdraw an orphan transaction

Get a commission token

post
Header parameters
x-api-public-keystringOptional

Public API-key

x-api-signaturestringOptional

Signing the request body with a private API-key

Content-typestringOptional

Request content type

Example: application/json
Body
idstringRequired

Transaction ID in the system

Example: 5aca05fd-ad24-4d48-947f-66a1f2b236f4
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": "5aca05fd-ad24-4d48-947f-66a1f2b236f4"
}
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": "U2FsdGVkX1+UDjx4pnfjZbIC0muZGDfOboL0tms5QFA87lqxh8JFhf9pOwM8GB8erEJiE0OOh5b8OK/jxJLWR2KI88aq9bEcgEYdhqVVH6TGWqv6P/XulrKcY4J+CyK0tyxCQIRySNeaH3jkFzgLDK1Avx/AYR1NWkxtV4UK8i5RFdWwVVvkFPjwuBzdgAVJhpupIHwGdTvF3bjue+/DFQ==",
    "expires": "2025-07-15T10:50:46.055Z"
  }
}

Last updated