Getting information about an order
The method allows you to get information on a previously created order by its identifier in the system
Header parameters
x-api-public-keystringOptional
Public API-key
x-api-signaturestringOptional
Signing the request body with a private API-key
Content-typestringOptionalExample:
Request content type
application/json
Body
Order information request body
orderIdstringOptionalExample:
Order ID in the system
ceff4073-10b6-474e-a235-b73427202c16
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": "ceff4073-10b6-474e-a235-b73427202c16"
}
200Success
{
"success": true,
"response": {
"id": "ceff4073-10b6-474e-a235-b73427202c16",
"currency": "USDT",
"network": "ethereum",
"status": "pending",
"orderId": "Order #123456",
"description": "Payment by order #123456",
"address": "0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f",
"addressId": "3632eaf6-402b-4479-9b3d-a54c9eba4c95",
"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/ceff4073-10b6-474e-a235-b73427202c16",
"expiresAt": "2025-06-09T12:08:26.563Z",
"createdAt": "2025-06-09T11:38:26.563Z",
"updatedAt": "2025-06-09T11:38:26.563Z",
"transactions": [
{
"id": "e7ae81aa-2002-4e7c-bc59-3e6a9172655e",
"status": "processed",
"currency": "USDT",
"network": "ethereum",
"amount": "100.32",
"tx": "0xb502e6ba8745a99f3484d75c027c55cacc26d6342b3a129f97d802899435ef12",
"confirmations": 1,
"sender": "0x00000005707bf50efa35a2db020ede9ac08ae226",
"priceUSD": "2000",
"amountUSD": "100"
}
],
"orphanDeposits": [
{
"id": "00ab98a0-3b66-48bd-9dc4-16cf2917e517",
"organizationId": "b6a16714-ac8c-4c81-b46e-8153d192e1f5",
"orderId": "ceff4073-10b6-474e-a235-b73427202c16",
"stage": "WITHDRAWAL",
"status": "PENDING",
"message": null,
"currency": "BUSD",
"network": "bsc",
"amount": "200",
"canWithdrawal": true,
"inTransaction": {
"addressType": "PAY_IN",
"addressId": "3632eaf6-402b-4479-9b3d-a54c9eba4c95",
"address": "0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f",
"txId": "0x123456...",
"amount": "200",
"status": "processed"
},
"outTransactions": {
"address": "0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f",
"txId": "0x123456...",
"amount": "200",
"status": "processed",
"feeAmount": "1.2",
"feeAmountUSD": "1.22",
"withdrawalId": "7b7f72c5-71f1-4c76-8a17-4659f5429ef6",
"createdAt": "2025-06-10T11:38:26.563Z"
},
"createdAt": "2025-06-09T11:38:26.563Z"
}
]
}
}
Last updated