Получение списка счетов

Метод позволяет получить список счетов

Получение списка счетов

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

Массив для фильтрации ордеров по статусам

limitinteger

Количество элементов на странице

offsetinteger

Количество элементов для пропуска

Response
Body
success*boolean

Признак успешности запроса

response*GetInvoicesResponse (object)

Тело ответа запроса получения списка счетов

Request
const response = await fetch('https://app.apollopayment.io/api-gateway/get-invoices', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "success": false,
  "response": {
    "invoices": [
      {
        "id": "2bc0fabc-09df-4619-9786-8523ccb7bbd2",
        "advancedBalanceId": "368e742d-5780-412a-a406-d290a23f1e3b",
        "externalId": "merchantExternalId123",
        "orderId": "572f160a-d457-406b-b97f-158332df9270",
        "orderLink": "https://payment.domain/572f160a-d457-406b-b97f-158332df9270",
        "invoiceLink": "https://invoices.domain/2bc0fabc-09df-4619-9786-8523ccb7bbd2",
        "status": "INIT",
        "order": "Order #123456",
        "description": "Payment by order #123456",
        "currency": "USD",
        "amount": "20",
        "receivedNetwork": "USDT",
        "receivedCurrency": "USDT",
        "receivedAmount": "100.32",
        "receivedAmountInInvoiceCurrency": "100.94",
        "rate": "100.32",
        "includeFee": false,
        "additionalFees": [
          "SEPA_WITHDRAWAL"
        ],
        "insurancePercent": "1",
        "slippagePercent": "2",
        "paymentTolerancePercent": "1.5",
        "webhookURL": "https://merchant.domain/webhooks/invoice",
        "returnUrl": "https://merchant.domain/",
        "expiresAt": "2024-09-24T12:09:38.857Z",
        "createdAt": "2024-09-24T12:09:08.858Z",
        "currencies": [
          {
            "currency": "USDT",
            "networks": [
              {
                "name": "ethereum",
                "amount": "25"
              }
            ]
          }
        ]
      }
    ],
    "total": "900"
  }
}

Last updated