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

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

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

post
Header parameters
x-api-public-keystringOptional

Публичный API-ключ

x-api-signaturestringOptional

Подпись тела запроса приватным API-ключем

Content-typestringOptional

Тип тела запроса

Example: application/json
Body

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

limitintegerOptional

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

offsetintegerOptional

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

Responses
200Success
application/json
post
POST /api-gateway/get-invoices HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 40

{
  "status": [
    "INIT"
  ],
  "limit": 1,
  "offset": 1
}
200Success
{
  "success": true,
  "response": {
    "invoices": [
      {
        "id": "c02b226c-07f9-4a1a-bedb-1087fab230a6",
        "externalId": "merchantExternalId123",
        "externalUserId": "10099",
        "payerEmail": "[email protected]",
        "orderId": "4b3399ee-3690-4984-8c39-a911c8b0aad4",
        "orderLink": "https://payment.domain/4b3399ee-3690-4984-8c39-a911c8b0aad4",
        "invoiceLink": "https://invoices.domain/c02b226c-07f9-4a1a-bedb-1087fab230a6",
        "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": true,
        "additionalFees": [
          "SEPA_WITHDRAWAL"
        ],
        "insurancePercent": "1",
        "slippagePercent": "2",
        "paymentTolerancePercent": "1.5",
        "webhookURL": "https://merchant.domain/webhooks/invoice",
        "returnUrl": "https://merchant.domain/",
        "expiresAt": "2025-06-09T13:18:41.525Z",
        "createdAt": "2025-06-09T13:18:11.525Z",
        "currencies": [
          {
            "currency": "USDT",
            "networks": [
              {
                "name": "ethereum",
                "amount": "25"
              }
            ]
          }
        ]
      }
    ],
    "total": "900"
  }
}

Last updated