Skip to main content
When a Payzah API request fails, the response includes a status: false flag alongside a code field and a human-readable message. Understanding these codes lets you build precise error handling — surfacing the right message to the customer, triggering the right fallback in your system, and knowing when to call support. Below you will find a complete listing of all error codes and all possible payment status values.
Log the raw code and message values from every failed API response in your server-side logs. When debugging integration issues, these codes allow Payzah support to pinpoint the problem quickly without needing to reproduce the request.

Error Codes

The following error codes may appear in the code field of any error response.

Handling the Most Common Errors

Certain error codes come up frequently during integration. Here is how to address each one: 10014 — Invalid token This means the Authorization header value does not match a valid account key. Double-check that you are Base64-encoding the key correctly and that you are using the right key for the environment (test vs. production). In PHP, use base64_encode($privateKey) with no extra whitespace in the key string. 10015 — No credit card permission Your account is not enabled for direct Credit Card payments. Either switch to payment_type=1 (K-Net) or payment_type=3 (transit, which includes credit card on the hosted page), or contact Payzah support to request the credit card permission for your account. 10002 — Missing Track ID and 10004 — Missing amount These validation errors mean a required field was not included in the request body. Review your request construction to confirm that trackid and amount are always present and correctly named (lowercase, no extra characters). 10013 — Post data missing Your request body did not reach the API or arrived empty. Confirm that your HTTP client is setting Content-Type: application/json and is serializing the body as a JSON string, not as form data.

Payment Status Values

The paymentStatus field returned by the Payment Status endpoint will contain one of the following values: