Merchant errors
The enrollment and the status check return errors as JSON, with a PAR code and an HTTP status that indicates the kind of failure.
Format
Error response
{
"code": -107,
"description": "Invalid service ID"
}
- Name
code- Type
- integer
- is Required
- REQUIRED
- Description
Error code. It is the value your integration should use to decide what to do.
- Name
description- Type
- string
- is Required
- REQUIRED
- Description
Informative text that accompanies the code. It may change, so do not use it to make decisions.
Catalog
Browser errors
The login and the voucher are not called by your server but by the cardholder's browser, so they do not answer JSON:
- If the token is missing, does not exist, was already used, expired or was revoked, PAR answers
403and shows an error page. - If the login fails for another reason, PAR shows the cardholder a page telling them the session could not be started.
In both cases, request a new token and send the cardholder again.