As part of any good integration you must handle exceptions. Many of these are obvious in how they should be handled, and some are covered in the User Experience section of this document. For the others please read the below section. The sections following cover logging and enablement of the zip payment method.
OK - Everything worked correctly.
Bad Request - The request was unacceptable, often due to missing a required parameter.
Unauthorised - No valid API key provided.
Request Failed - The parameters were valid but the request failed.
Forbidden - The API key doesn't have permissions to perform the request.
Not Found - The requested resource doesn't exist.
Conflict - The request conflicts with another request (possibly due to using the same idempotency key).
Too Many requests - Too many requests hit the API too quickly.
Server Errors - Something has gone wrong on Zip's End.
There will inevitably be times when no response is received due to connection issues or similar. When this occurs, Zip expects transactions to be re-attempted until a valid response is received or until a timeout period expires.
Updated about 2 months ago