Skip to Content

Invoice status

XML: GetInvoice · JSON: GET /invoices/{id}, GET /invoices?merchant_order_id=…

Returns the invoice state and the list of payment transactions. The invoice is looked up by InvoiceID or by MerchantOrderID.

Processing delay simulation: for the first 6 seconds after the first GetInvoice an authorized invoice stays Active / NOT_PAID. Then comes the billing outcome: Processed / PAID, or Failed / NOT_PAID with ExpectedBillingResult=Failed.

Request and response (JSON)
// GET /api/v3/projects/1001/invoices/{invoice_id} // or GET /api/v3/projects/1001/invoices?merchant_order_id=ORDER-001 // 200 OK { "success": true, "data": { "invoice_id": "1624505c-0031-00cf-7d54-4cf1ce08cb30", "status": "Processed", "payment_status": "PAID", "merchant_order_id": "ORDER-001", "transactions": [{ "transaction_id": "B4DA05E2-1D77-40C9-85AC-0BB3835DE8B5", "status": "SUCCESS", "result_code": 0, "total_paid": { "amount": "99.00", "currency": "RUB" } }] } }