Skip to main content
Every Jupico API response includes an HTTP status code and a JSON body. Your integration should evaluate both — the HTTP status alone does not tell you whether the operation succeeded.

Response header

Response body

Most responses follow this shape:
Save the X-Request-ID from every response — it is the fastest way for Jupico support to locate a specific call.

Success response

A successful operation returns success: true and code: "0".

Application-level error response

Some business outcomes — such as card declines — return HTTP 200 while success is false.
For customer-facing payment flows, these messages are generally safe to present in the UI. Treat the operation itself as unsuccessful.

Transport or server-side error response

HTTP 400, 401, 403, 404, 500, and 503 responses require server-side handling.
Do not surface these directly to end users. Log them, map them to safe user-facing copy, and preserve the X-Request-ID for support.

Status Codes

Map HTTP status codes to the outcome your integration should handle.

Transaction Status Handling

React to succeeded, declined, and failed transaction outcomes.

Error Handling

Client- and server-side patterns for handling API errors.

Error Codes

Full reference of code values by category.
Last modified on July 15, 2026