Getting information about an order

The method allows you to get information on a previously created order by its identifier in the system

Getting information about an order

POSThttps://app.apollopayment.io/api-gateway/order
Header parameters
Body
orderIdstring

Order ID in the system

Example: "b0895e25-9f6c-486c-8743-6f10e19922cb"
Response
Body
success*boolean

Request success indicator

response*GetOrderResponse (object)

Body of the response to the request to receive an order

Request
const response = await fetch('https://app.apollopayment.io/api-gateway/order', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "success": false,
  "response": {
    "id": "b0895e25-9f6c-486c-8743-6f10e19922cb",
    "advancedBalanceId": "97ed074e-f6ce-441f-a1eb-1e3211e15f3f",
    "currency": "USDT",
    "network": "ethereum",
    "status": "pending",
    "orderId": "Order #123456",
    "description": "Payment by order #123456",
    "address": "0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f",
    "addressId": "d479f3e4-8671-4028-9dee-0f0cdaea463d",
    "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/b0895e25-9f6c-486c-8743-6f10e19922cb",
    "expiresAt": "2024-10-15T16:41:27.596Z",
    "createdAt": "2024-10-15T16:11:27.596Z",
    "updatedAt": "2024-10-15T16:11:27.596Z",
    "transactions": [
      {
        "id": "f43c115d-e704-4dcc-b75b-e0a14d666a99",
        "status": "processed",
        "currency": "USDT",
        "network": "ethereum",
        "amount": "100.32",
        "tx": "0xb502e6ba8745a99f3484d75c027c55cacc26d6342b3a129f97d802899435ef12",
        "sender": "0x00000005707bf50efa35a2db020ede9ac08ae226",
        "priceUSD": "2000",
        "amountUSD": "100"
      }
    ],
    "orphanDeposits": [
      {
        "id": "4b51ecac-25b4-4d20-af0c-114ead416291",
        "organizationId": "97ed074e-f6ce-441f-a1eb-1e3211e15f3f",
        "orderId": "b0895e25-9f6c-486c-8743-6f10e19922cb",
        "stage": "WITHDRAWAL",
        "status": "PENDING",
        "currency": "BUSD",
        "network": "bsc",
        "amount": "200",
        "canWithdrawal": false,
        "inTransaction": {
          "addressType": "PAY_IN",
          "addressId": "d479f3e4-8671-4028-9dee-0f0cdaea463d",
          "address": "0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f",
          "txId": "0x123456...",
          "amount": "200",
          "status": "processed"
        },
        "outTransactions": {
          "address": "0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f",
          "txId": "0x123456...",
          "amount": "200",
          "status": "processed",
          "feeAmount": "1.2",
          "feeAmountUSD": "1.22",
          "withdrawalId": "f9efce42-a7a8-4117-b65d-8795152189fa",
          "createdAt": "2024-10-16T16:11:27.596Z"
        },
        "createdAt": "2024-10-15T16:11:27.596Z"
      }
    ]
  }
}

Last updated