Запрос получения информации об инвойсе

Метод позволяет получить информацию об инвойсе

Запрос получения информации об инвойсе

post
Header parameters
x-api-public-keystringOptional

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

x-api-signaturestringOptional

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

Content-typestringOptional

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

Example: application/json
Body

Тело запроса получения информации об инвойсе

invoiceIdstringOptional

Идентификатор инвойса

Example: c02b226c-07f9-4a1a-bedb-1087fab230a6
Responses
200Success
application/json
post
POST /api-gateway/get-invoice HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 52

{
  "invoiceId": "c02b226c-07f9-4a1a-bedb-1087fab230a6"
}
200Success
{
  "success": true,
  "response": {
    "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"
          }
        ]
      }
    ]
  }
}

Last updated