Get a transaction

Getting information about an orphan transaction by its ID

Get a transaction

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/get-deposit 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": {
    "id": "ae3d10a0-634c-48c9-8cbf-d3da946ec299",
    "organizationId": "345028e0-c671-4a68-9aee-b5af6ef644f6",
    "orderId": "602f03ec-ed7e-458a-b61a-6b05b0f1a5af",
    "stage": "WITHDRAWAL",
    "status": "PENDING",
    "message": null,
    "currency": "BUSD",
    "network": "bsc",
    "amount": "200",
    "canWithdrawal": true,
    "inTransaction": {
      "addressType": "PAY_IN",
      "addressId": "ed7c4941-a5ab-4f53-afb1-195f3a217a62",
      "address": "0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f",
      "txId": "0x123456...",
      "amount": "200",
      "status": "processed"
    },
    "outTransactions": {
      "address": "0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f",
      "txId": "0x123456...",
      "amount": "200",
      "status": "processed",
      "feeAmount": "1.2",
      "feeAmountUSD": "1.22",
      "withdrawalId": "0878bc1a-a566-440b-ac3b-1c553f2278e1",
      "createdAt": "2025-07-16T10:50:46.076Z"
    },
    "createdAt": "2025-07-15T10:50:46.076Z"
  }
}

Last updated