Invoice information request
The method allows you to get information about the invoice
Header parameters
x-api-public-keystringOptional
Public API-key
x-api-signaturestringOptional
Signing the request body with a private API-key
Content-typestringOptionalExample:
Request content type
application/json
Body
The body of the request for obtaining information about the invoice
invoiceIdstringOptionalExample:
Invoice ID
2076e88f-547a-4437-9ece-68c99731ab42
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": "2076e88f-547a-4437-9ece-68c99731ab42"
}
200Success
{
"success": true,
"response": {
"id": "2076e88f-547a-4437-9ece-68c99731ab42",
"externalId": "merchantExternalId123",
"externalUserId": "10099",
"payerEmail": "[email protected]",
"orderId": "602f03ec-ed7e-458a-b61a-6b05b0f1a5af",
"orderLink": "https://payment.domain/602f03ec-ed7e-458a-b61a-6b05b0f1a5af",
"invoiceLink": "https://invoices.domain/2076e88f-547a-4437-9ece-68c99731ab42",
"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-07-15T10:51:16.078Z",
"createdAt": "2025-07-15T10:50:46.078Z",
"currencies": [
{
"currency": "USDT",
"networks": [
{
"name": "ethereum",
"amount": "25"
}
]
}
]
}
}
Last updated