Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Error Codes (Admin & Merchant API)

All Admin & Merchant API errors are either HTTP status code 400 or 500, will have a State field of Failed, a Status field with the negative error code, and an Error field with a description of the error.

{
...
"State": "Error",
"Status": "-5",
"Error": "Transaction Failed - Not Authorised"
}
CodeError DescriptionExplanation
-1Validation / Verification ErrorsThe bearer token provided is invalid, the user does not exist, the community does not exist, etc.
-2Duplicate referenceThe transaction failed because the reference number used already exists.
-3Invalid requestThe request was in an invalid format.
-4Invalid MEIDThe StoreID was invalid.
-5Not AuthorisedThe actor is not authorized to perform this action in this community.
-6Invalid TIDThe TID (Transaction ID) was invalid.
-7Transaction Failed GeneralThe transaction failed for an unspecified reason.
-8Invalid CurrencyThe Currency code was invalid.
-12Transaction Failed Insufficient fundsThe transaction failed as there were insufficient funds available on the voucher.
-13Transaction Failed Wrong MerchantThe transaction failed as the voucher is not valid to be spent at this merchant.
-14Transaction Failed Incorrect Voucher NumberThe transaction failed as the voucher does not exist.