Issuer errors
The token request returns errors in the same XML message as success, with a code in Coderror and a text in Descerror.
Format
Error response
<?xml version="1.0" encoding="UTF-8"?>
<Mensaje>
<Coderror>1</Coderror>
<Descerror>Wrong user or password.</Descerror>
</Mensaje>
- Name
Coderror- Type
- string
- is Required
- REQUIRED
- Description
Result code. It is the value your integration should use to decide what to do.
- Name
Descerror- Type
- string
- is Required
- REQUIRED
- Description
Informative text that accompanies the code, up to 80 characters. In validation errors it names the field that failed. It may change, so do not use it to make decisions.
Error responses use HTTP 200, except when the request limit is exceeded, which answers HTTP 429.
Catalog
In validation errors (100 and 1007), Descerror describes the specific problem, for example The DatosUsuario.RutUsuario field is required. Each response reports a single problem; fix it and send the request again.
Login errors
The login is done by the cardholder's browser, so its errors do not answer XML:
- If the token is missing, does not exist, was already used, expired or was revoked, PAR answers
403and shows an error page. - If a form URL is invalid or does not belong to an authorized origin, the login is rejected.
- If the login fails, PAR sends the cardholder to your
direccionError, when you sent it and it is valid. Otherwise, it shows them a page telling them the session could not be started.
In all cases, request a new token and send the cardholder again.