success field. Always inspect both — an HTTP 200 can still represent a declined payment or an application-level error.
HTTP status code summary
HTTP 200 does not always mean success
For payment operations, a request can return HTTP 200 and still represent a declined transaction or application-level error.
Recommended response handling
HTTP 200
HTTP 200
- If
response.successistrue, treat the operation as successful. - If
response.successisfalse, treat the response as an application-level decline or user-correctable error.
HTTP 400, 401, 403, or 404
HTTP 400, 401, 403, or 404
Handle server-side. Do not expose raw details in the UI. Log the response and the
X-Request-ID.HTTP 500
HTTP 500
For transaction operations, run rollback handling. See Timeout Handling.
HTTP 503
HTTP 503
Retry later. Do not perform a reversal solely because the response was
503.Transaction status values
Transaction responses resolve to one of three high-level outcomes:
See Transaction Status Handling for implementation guidance for each outcome.

