Documentation Index
Fetch the complete documentation index at: https://docs.m4psp.com/llms.txt
Use this file to discover all available pages before exploring further.
Order ID in your system. Must be unique for each new invoice.
255"5b0efa8a-153b-4421-abac-2aba4d772a86"
Unique shop identifier in the M4 system.
1520
Invoice status:
success — paid and credited;rejected — rejected by the client or the payment system;hold — held.success, hold, rejected "success"
Unique identifier of the issued invoice in M4 system
12
Additional information from the payment system in the JSON Lines format.
Mandatory field - payer's account ps_payer_account.
Other fields depend on the payment system.
In case of payment tokens, the payment_token parameter will also be represented in this field.
"{\"ps_payer_account\": \"412103XXXXXX7701\", \"bill_id\": \"7766\", \"amount\": \"190.99\", \"status\": \"success\"}"
Payway in M4 system used by the user for payment
150^[A-Za-z_,\[\]]+$Payment description
"Invoice for shop_id=1520"
Invoice creation date and time
"2026-05-24T16:35:42"
Invoice status change date and time (payment or rejection)
"2026-04-21T20:09:02"
Date and time of invoice transfer to the final status
"2026-04-21T20:09:03"
Invoice amount, in the invoice currency
359.01
Amount paid by the client, in the payment system currency.
365
M4 API error code. 0 in cases there is no any error. Other codes can be found here: Description of error codes
0
Amount credited to the shop's balance. If there is no transactional conversion, the balance currency is equal to the account currency (shop_currency).
In case of transactional conversion of turnover, the currency of the shop balance (settlement_currency) and the exchange rate (settlement_rate) will be sent in the notification additionally
User parameters sent by the shop when creating an invoice in JSON Lines format.
Request signature