Получение транзакции

Получение информации о сиротской транзакции по ее ID

Получение транзакции

post
Header parameters
x-api-public-keystringoptional

Публичный API-ключ

x-api-signaturestringoptional

Подпись тела запроса приватным API-ключем

Content-typestringoptional

Тип тела запроса

Example: application/json
Body
idstringrequired

Идентификатор транзакции в системе

Example: 110fff85-19ed-4758-872c-9d4635ff1694
Responses
application/json
objectoptional

Успешный ответ

post
POST /api-gateway/orphan-deposits/get-deposit HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 45

{
  "id": "110fff85-19ed-4758-872c-9d4635ff1694"
}
200Success
{
  "success": true,
  "response": {
    "id": "52e06ad8-72d6-4b75-b371-ff6bbe60d0a5",
    "organizationId": "50781c26-1005-4b1e-94ea-a19a17017e90",
    "orderId": "a3cb5179-babb-422e-8c34-9d4658cacc7f",
    "stage": "WITHDRAWAL",
    "status": "PENDING",
    "message": null,
    "currency": "BUSD",
    "network": "bsc",
    "amount": "200",
    "canWithdrawal": true,
    "inTransaction": {
      "addressType": "PAY_IN",
      "addressId": "47ce6b06-bce3-4172-b2a4-ce5206487491",
      "address": "0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f",
      "txId": "0x123456...",
      "amount": "200",
      "status": "processed"
    },
    "outTransactions": {
      "address": "0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f",
      "txId": "0x123456...",
      "amount": "200",
      "status": "processed",
      "feeAmount": "1.2",
      "feeAmountUSD": "1.22",
      "withdrawalId": "ff4cc7c2-875f-4d4e-9a4f-dd0eaa6ee91b",
      "createdAt": "2024-12-26T14:35:23.164Z"
    },
    "createdAt": "2024-12-25T14:35:23.164Z"
  }
}

Last updated