Getting a list of orders

The method allows you to get a list of orders

Getting a list of orders

POSThttps://app.apollopayment.io/api-gateway/orders
Header parameters
Body
statusarray of enum

Array for filtering orders by status

limitinteger

Number of elements per page

offsetinteger

Number of items to skip

Response
Body
success*boolean

Request success indicator

response*GetOrdersResponse (object)

The body of the response to the request for a list of orders

Request
const response = await fetch('https://app.apollopayment.io/api-gateway/orders', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "success": false,
  "response": {
    "orders": [
      {
        "status": "pending",
        "link": "https://payment.domain/572f160a-d457-406b-b97f-158332df9270",
        "amount": "123.12",
        "paymentTolerancePercent": "1.5",
        "advancedBalanceId": "368e742d-5780-412a-a406-d290a23f1e3b",
        "currency": "USDT",
        "network": "ethereum",
        "address": "0x00000005707Bf50EfA35a2db020eDe9Ac0780b9f",
        "addressId": "8c666a6f-63b4-464e-ad9a-091373f9b761",
        "tag": null,
        "orderId": "572f160a-d457-406b-b97f-158332df9270",
        "clientOrderId": "Order #123456",
        "description": "Payment by order #123456",
        "successWebhook": "https://merchant.domain/webhooks/success",
        "errorWebhook": "https://merchant.domain/webhooks/fail",
        "returnUrl": "https://merchant.domain/",
        "expiresAt": "2024-09-24T12:39:08.855Z",
        "createdAt": "2024-09-24T12:09:08.855Z"
      }
    ],
    "total": "1000"
  }
}

Last updated