Get invoice by id
/api/v3/projects/YOUR_PROJECT_ID/invoices/{invoiceId}Description
Returns detailed invoice information including payment transactions.
v4 signature payload: {invoice_id}
XML 2.9 description
Returns detailed invoice information including payment transactions. XML request type: <GetInvoiceRequest>.
This method is used by Merchant to get status about a previously created invoice. It is possible to get status by using either InvoiceID or MerchantOrderID parameter in the request.
HTTP Headers:
Callisto-Protocol-Version: 2SignatureVersion: 3
Request and response
Examples come from OpenAPI and are read-only here. Run requests in the Sandbox section.
/api/v3/projects/YOUR_PROJECT_ID/invoices/{invoiceId}PRODUCTIONcurl -X GET "https://pay-api.digitalspb.com/api/v3/projects/YOUR_PROJECT_ID/invoices/{invoiceId}" \ -H "Content-Type: application/json" \ -H "X-Login: YOUR_LOGIN" \ -H "X-Timestamp: YOUR_TIMESTAMP" \ -H "X-Signature-Version: 3" \ -H "X-Signature: YOUR_SIGNATURE" { "success": true, "data": { "invoice_id": "1624505c-0031-00cf-7d54-4cf1ce08cb30", "status": "processed", "payment_status": "PAID", "authorization": { "type": "BY_CONTRACT", "is_authorized": true }, "price": { "amount": "25.00", "currency": "RUB", "vat_included": true }, "merchant_order_id": "order_123", "created_at": "2025-03-29T20:00:10Z", "expires_at": "2025-03-29T22:00:10Z", "billing_channel": "CPA", "customer": { "type": "mobile_phone", "msisdn": "79600000000", "country": "RU", "network": { "id": 3, "name": "Beeline" }, "operator": { "id": 42, "name": "Beeline" } }, "transactions": [ { "transaction_id": "B4DA05E2-1D77-40C9-85AC-0BB3835DE8B5", "part_number": 1, "sequence_number": 1, "status": "SUCCESS", "result_code": 0, "result_description": "OK", "paid_at": "2025-03-29T20:00:10Z", "price": { "amount": "25.00", "currency": "RUB", "vat_included": true }, "partner_profit": { "amount": "7.50", "currency": "RUB", "vat_included": true }, "total_paid": { "amount": "25.00", "currency": "RUB", "vat_included": true }, "total_remaining": { "amount": "0.00", "currency": "RUB", "vat_included": true }, "billing_channel": "CPA", "service_number": "1234" } ] }}XML 2.9 request fields
getInvoice| Request fields | Type | Req. | Description |
|---|---|---|---|
GetInvoiceRequest | object & object | required | |
ProjectID | integer (int32) | required | Project ID in the Platform system. Assigned during project setup. |
InvoiceInfo | object | optional | Invoice reference by InvoiceID or MerchantOrderID. At least one must be provided. |
InvoiceID | string | optional | |
MerchantOrderID | string | optional | Order ID in Merchant's system |
Header | object | required | Request header with authentication. Included in every API request. |
Authentication | object | required | Request authentication data. All three fields are mandatory for every request. |
Login | string | required | Merchant Login assigned by the Platform |
NowUtc | string | required | Current UTC time in yyyyMMddHHmmss format. Must not differ from platform system time by more than 20 minutes. |
Signature | string | required | HMAC request signature. Calculated as: LOWERCASE(HMACSHA256(Password, Login + LOWERCASE(HMACSHA256(Password, NowUtc)))) |
RequestAttempt | integer (int32) | optional | Ordinal invoice request number (for idempotency). Starting from 0. |
Gateway | object | optional | +3 |
Signature | string | optional | |
ContractInfo | object | optional | +1 |
DesiredExpirationTimeUtc | string (date-time) | optional |
Parameters and headers
| Name | In | Required | Description |
|---|---|---|---|
projectId | path | yes | Project ID assigned by the platform during onboarding. |
invoiceId | path | yes | Invoice UUID assigned by the platform. |
Responses
exampleFull error codes are in Error codes.