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: 47e00ba7-c792-4b44-adb3-a52978aa29e7
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": "47e00ba7-c792-4b44-adb3-a52978aa29e7"
}
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": "U2FsdGVkX1904A9GNBu5q9CaCR2Lfr5hUP1gzuHUf9Kj3FUvcdWLQlGuuhpEfk+8H70D/41qXmTBcMKpPDZLL4+nBJzTMWAw3+wccMSyeMbpOkf1IMoJ7/A4tKsSV9qGyEPxp1vRSlLOxU3yYizvF7sQLXJzueRbu9v1LAX5weSrl9wgCMNoTicHf9p1F0eb3ZLobmjzKfZErWS3OVZnfg==",
    "expires": "2025-06-09T11:38:26.538Z"
  }
}

Last updated