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
5753f227-0f8a-4951-8b73-a149d5eb0859
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": "5753f227-0f8a-4951-8b73-a149d5eb0859"
}
200Success
{
"success": true,
"response": {
"id": "5753f227-0f8a-4951-8b73-a149d5eb0859",
"externalId": "merchantExternalId123",
"externalUserId": "10099",
"payerEmail": "[email protected]",
"orderId": "ceff4073-10b6-474e-a235-b73427202c16",
"orderLink": "https://payment.domain/ceff4073-10b6-474e-a235-b73427202c16",
"invoiceLink": "https://invoices.domain/5753f227-0f8a-4951-8b73-a149d5eb0859",
"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-09T11:38:56.566Z",
"createdAt": "2025-06-09T11:38:26.566Z",
"currencies": [
{
"currency": "USDT",
"networks": [
{
"name": "ethereum",
"amount": "25"
}
]
}
]
}
}
Last updated