Ошибки API

Здесь перечислены все возможные ошибки, которые могут быть получены в ответ при запросах к maib e-commerce API.

В случае возникновения ошибок или неясностей во время интеграции/тестирования, пожалуйста, более детально изучите документацию API или обратитесь в службу поддержки, предоставив как можно больше данных об ошибке (HTTP статус-код, errorCode, errorMesage, дата/время запроса) и информацию о e-commerce (ID проекта, название Мерчанта, название веб-сайта/приложения, URL веб-сайта).

Формат ошибки

{
  "errors": [
    {
      "errorCode": "10000",
      "errorMessage": "Описание ошибки {{erroArg}}",
      "errorArgs": {
        "errorArg": "Динамическая часть описания ошибки"
      }
    }
  ],
  "ok": false
}

Таблица ошибок

Error CodeError Message Error Arguments HTTP Status Code

10000

Internal error encountered. Please try again or report if error persists

500

11001

Invalid credentials. Please check 'projectId' and 'projectSecret' parameters

401

11002

Please provide 'projectId' and 'projectSecret' credentials or 'refreshToken'

401

11101

Unregistered Project IP: {{ip}}

  1. ip

403

12001

Parameter '{{parameter}}' is invalid

  1. parameter

400

12002

Provided request is invalid: {{error}}

  1. error

400

12004

Parameter 'language' must have {{length}} characters

  1. parameter

  2. length

400

12005

Parameter 'currency' is invalid. Possible values: {{values}}

  1. parameter

  2. values

400

12006

Parameter 'phone' must not exceed {{maxLength}} characters

  1. parameter

  2. maxLength

400

12007

Parameter 'email' must not exceed {{maxLength}} characters

  1. parameter

  2. maxLength

400

12008

Parameter 'email' has invalid format

  1. parameter

400

12011

Parameter 'payId' is required

  1. parameter

400

12012

Parameter 'confirmAmount' must be in range from {{minValue}} to {{maxValue}}

  1. parameter

  2. minValue

  3. maxValue

400

12013

Parameter 'confirmAmount' must have no more than {{maxScale}} decimal places

  1. parameter

  2. maxScale

400

12014

Parameter 'amount' must be in range from {{minValue}} to {{maxValue}}

  1. parameter

  2. minValue

  3. maxValue

400

12015

Parameter 'amount must have no more than {{maxScale}} decimal places

  1. parameter

  2. maxScale

400

12016

Parameter 'delivery' must be in range from {{minValue}} to {{maxValue}}

  1. parameter

  2. minValue

  3. maxValue

400

12017

Parameter 'delivery' must have no more than {{maxScale}} decimal places

  1. parameter

  2. maxScale

400

12018

Parameter 'clientIp' is required

  1. parameter

400

12019

Parameter 'clientIp' has invalid format. Only IPv4 is allowed

  1. parameter

400

12020

Parameter 'description' must not exceed {{maxLength}} characters

  1. parameter

  2. maxLength

400

12021

Parameter 'clientName' must not exceed {{maxLength}} characters

  1. parameter

  2. maxLength

400

12022

Parameter 'okUrl' has invalid format

  1. parameter

400

13023

Parameter 'failUrl' has invalid format

  1. parameter

400

12024

Parameter 'callbackUrl' has invalid format

  1. parameter

400

12025

Parameter 'orderId' must not exceed {{maxLength}} characters

  1. parameter

  2. maxLength

400

12026

'items' array must not exceed {{maxCount}} elements

  1. parameter

  2. maxCount

400

12028

Parameter 'refundAmount' must be in range from {{minValue}} to {{maxValue}}

  1. parameter

  2. minValue

  3. maxValue

400

12029

Parameter 'refundAmount' must have no more than {{maxScale}} decimal places

  1. parameter

  2. maxScale

400

12032

Parameter 'billerId' is required

  1. parameter

400

12033

Parameter 'billerExpiry' is required

  1. parameter

400

12034

Parameter 'billerExpiry' has invalid format. Valid format is 'MMYY'

  1. parameter

400

12035

Parameter 'billerExpiry' must contain current or future date. Current date: {{currentDate}}

  1. parameter

  2. currentDate

400

12036

Parameter 'items[{{itemIndex}}].id' must not exceed {{maxLength}} characters

  1. parameter

  2. maxLength

  3. itemIndex

400

12037

Parameter 'items[{{itemIndex}}].name' must not exceed {{maxLength}} characters

  1. parameter

  2. maxLength

  3. itemIndex

400

12038

Parameter 'items[{{itemIndex}}].price' must be in range from {{minValue}} to {{maxValue}}

  1. parameter

  2. minValue

  3. maxValue

  4. itemIndex

400

12039

Parameter 'items[{{itemIndex}}].price' must have no more than {{maxScale}} decimal places

  1. parameter

  2. maxScale

  3. itemIndex

400

12040

Parameter 'items[{{itemIndex}}].quantity' must be more than zero

  1. parameter

  2. itemIndex

400

12041

Please provide 'projectId' and 'projectSecret' credentials or 'refreshToken'

400

13002

Payment ID '{{paymentId}}' not found

  1. paymentId

404

13003

Biller ID '{{billerId}}' not found"

  1. billerId

404

13101

Processing error: {{processingError}}

  1. processingError

409

13102

Refund amount cannot be greater than {{amount}}

  1. refundAmount

  2. amount

409

13103

Refund amount cannot be greater than {{confirmAmount}}

  1. refundAmount

  2. confirmAmount

409

13004

Confirm amount cannot be greater than {{amount}}

  1. confirmAmount

  2. amount

409

13106

Payment does not require completion

409

13107

OK URL is not set

409

13108

FAIL URL is not set

409

13109

CALLBACK URL is not set

409

13110

Partial refund is not supported for payments in Hold status

409

13111

Biller ID '{{billerId}}' is inactive

  1. billerId

409

13112

Biller ID '{{billerId}}' is not allowed for this payment type

  1. billerId

409

13113

{{paymentType}} payment type in {{currency}} currency is not allowed for this Project

  1. paymentType

  2. currency

409

13114

Refund is not possible for payment with a zero amount

409

13115

Complete is supported only for payments in Hold status

409

13116

Payment is already refunded

409

13117

Refund is not allowed for payment in {{statusPay}} status

  1. statusPay

409

Last updated