# Error Handling

#### Example of failed response

{% tabs %}
{% tab title="Shell" %}

```sh
{
  "success": false,
  "message": "Invalid ContentType or json format",
  "signature": "kfnf3-njdfsd-fdsfkdsf"
}
```

{% endtab %}

{% tab title="Python" %}

```python
{
  "success": false,
  "message": "Invalid ContentType or json format",
  "signature": "kfnf3-njdfsd-fdsfkdsf"
}
```

{% endtab %}
{% endtabs %}

#### Description of failed responses

| Value in "message" parameter                      | Response description                                                                                                                                                                                                                                                         |
| ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Invalid signature`                               | This error occurs when the request signature does not match the expected signature. Please verify the correctness of the signature                                                                                                                                           |
| `Please verify data and merchant is enabled`      | Please verify data and ensure that "mercahnt\_id" is correct. This can happen if the merchant data is incorrect or if the merchant is not activated                                                                                                                          |
| `Contact dev team with provided request data`     | Please verify data and ensure that "site\_id" is correct. If it's correct, but you encounter this issue, reach out to the development team for further assistance                                                                                                            |
| `Invalid ContentType or json format`              | Make sure you are using the correct content type (e.g., “application/json”) and a valid JSON format                                                                                                                                                                          |
| `This payment method is not allowed`              | Please verify data and ensure that "method" is correct. Available values: 'card', 'sbp', 'WalletM10', 'local\_banks', 'binance', 'cash', 'MTS', 'sbp\_qr', 'emanat'. If it's correct, but you encounter this issue, reach out to the development team for further assistance |
| `[Payment method] is not found`                   | Please verify data and ensure that "method" is correct. Available values: 'card', 'sbp', 'WalletM10', 'local\_banks', 'binance', 'cash', 'MTS', 'sbp\_qr', 'emanat'                                                                                                          |
| `IP is not in allowed IP whitelist`               | This error occurs when the IP address is not included in the allowed IP whitelist                                                                                                                                                                                            |
| `Site_id does not match to merchant`              | Please verify data and ensure that "site\_id" is correct. If the "site\_id" does not match the merchant, it can lead to this error                                                                                                                                           |
| `Request id should be unique for current site_id` | If the "request\_id" is not unique, it can result in an error. Please use unique "request\_id"                                                                                                                                                                               |
