Transaction Status Handling

Overview

Jupico transactions can return any of the following statuses:

  • succeeded
  • declined
  • failed

Succeeded Transaction

When an operation request completes successfully, the response will include an HTTP 200 status code, and response.success will be true.

Declined Transaction

If an operation request ends with an HTTP 200 status code but response.success is false, it indicates a “declined” transaction. The error.code and error.message fields will provide additional information about the reason for the decline.

As mentioned earlier, HTTP 200 error messages can be directly displayed in the user interface.

Failed Transaction

An operation request that concludes with an HTTP 400 status code, response.success set to false, and a status of “failed” indicates that the transaction did not complete as expected due to an indeterminate issue. In such cases, a rollback operation is required.

Note: Failed transactions are not visible in the Backoffice nor accessible through the Query API. These transactions are monitored by Jupico’s system, which promptly alerts the support team for necessary analysis and assistance.