Errors
Payzor returns JSON errors with an HTTP status code:Status codes
Policy rejections are 200s (sometimes)
One nuance worth knowing: when an agent pays a charge and its policy blocks or pauses the payment, the endpoint still answers200 with a structured outcome rather than an error code:
Designing your integration around errors
- Branch on the three payment outcomes, not just success/failure.
- Parse budget errors:
excede_presupuesto_restante_350embeds the exact remaining cents. - Retry on 5xx only. 4xx means your input or state is wrong; repeating won’t help.
- Log
referencevalues from successful payments; they match across merchant charges and agent audit trails.