Skip to main content

List of possible M4 API errors

You can use this data to control the logic of your application, analyze and solve problems, output messages to the user, and for any other purpose. For example, if you received error_code: 11 in the response, then most likely you incorrectly specified the value of the shop_id parameter in the request body. If you receive result: false in the response, this means that an error occurred, and the transaction was either not created ( for example, in case of request body validation error), or ended with an error (for example, the payment system returned an error when trying to perform a transaction). If the error code is not fatal, then you need to wait for the server notification (applies to invoice or refund transactions) or after a certain time start requesting the status of the transaction (applies to payout transactions) (for 2 hours at 30-second intervals). If the error code is fatal the communication with our API is over. If you receive result: true in response, it means that the transaction was created successfully. If the transaction status in the synchronous response is not final (or is absent for some types of transactions), then you need to wait for the server notification or after a certain time start requesting the status of the transaction (applies only to payout transactions). After receiving the final status of the transaction, the communication with our API is over.