API · Invoices

Get invoice by id

Protocol: JSON v3 · XML 2.9GET/api/v3/projects/YOUR_PROJECT_ID/invoices/{invoiceId}
← All operations

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: 2
  • SignatureVersion: 3

Request and response

Examples come from OpenAPI and are read-only here. Run requests in the Sandbox section.

GET/api/v3/projects/YOUR_PROJECT_ID/invoices/{invoiceId}PRODUCTION
GET request: no body required.
Request
curl -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" 
Read-only example. Runnable examples are available in the Sandbox section.
200
{  "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 fieldsTypeReq.Description
GetInvoiceRequestobject & objectrequired
ProjectIDinteger (int32)required

Project ID in the Platform system. Assigned during project setup.

InvoiceInfoobjectoptional

Invoice reference by InvoiceID or MerchantOrderID. At least one must be provided.

+2
Headerobjectrequired

Request header with authentication. Included in every API request.

Authenticationobjectrequired

Request authentication data. All three fields are mandatory for every request.

+3
RequestAttemptinteger (int32)optional

Ordinal invoice request number (for idempotency). Starting from 0.

Gatewayobjectoptional+3

Parameters and headers

NameInRequiredDescription
projectIdpathyesProject ID assigned by the platform during onboarding.
invoiceIdpathyesInvoice UUID assigned by the platform.

Responses

200
Invoice foundexample
400
401
403
500
503

Full error codes are in Error codes.