Получение информации об ордере
Метод позволяет получить информацию по ранее созданному ордеру по его идентификатору в системе
Header parameters
x-api-public-keystringOptional
Публичный API-ключ
x-api-signaturestringOptional
Подпись тела запроса приватным API-ключем
Content-typestringOptionalExample:
Тип тела запроса
application/json
Body
Тело запроса информации по ордеру
orderIdstringOptionalExample:
Идентификатор ордера в системе
602f03ec-ed7e-458a-b61a-6b05b0f1a5af
Responses
200Success
application/json
post
POST /api-gateway/order HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"orderId": "602f03ec-ed7e-458a-b61a-6b05b0f1a5af"
}
200Success
{
"success": true,
"response": {
"id": "602f03ec-ed7e-458a-b61a-6b05b0f1a5af",
"currency": "USDT",
"network": "ethereum",
"status": "pending",
"orderId": "Order #123456",
"description": "Payment by order #123456",
"address": "0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f",
"addressId": "ed7c4941-a5ab-4f53-afb1-195f3a217a62",
"tag": null,
"amount": "123.12",
"received": "100.32",
"paymentTolerancePercent": "1.5",
"successWebhook": "https://merchant.domain/webhooks/success",
"errorWebhook": "https://merchant.domain/webhooks/fail",
"returnUrl": "https://merchant.domain/",
"link": "https://payment.domain/602f03ec-ed7e-458a-b61a-6b05b0f1a5af",
"expiresAt": "2025-07-15T11:20:46.075Z",
"createdAt": "2025-07-15T10:50:46.075Z",
"updatedAt": "2025-07-15T10:50:46.075Z",
"transactions": [
{
"id": "31a38b75-c061-41e1-b0b7-1bb10069f8ab",
"status": "processed",
"currency": "USDT",
"network": "ethereum",
"amount": "100.32",
"tx": "0xb502e6ba8745a99f3484d75c027c55cacc26d6342b3a129f97d802899435ef12",
"confirmations": 1,
"sender": "0x00000005707bf50efa35a2db020ede9ac08ae226",
"priceUSD": "2000",
"amountUSD": "100"
}
],
"orphanDeposits": [
{
"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