2xx means success, 4xx means
a problem with the request, 5xx means a problem on Flowlix’s side. Every
error response carries a JSON body with a single error object:
A declined card is not an HTTP error. Card declines surface on the
Payment object as
status: "FAILED" with a failure_code — the create
request itself still returns 201. HTTP errors describe problems with the
request or the operation’s preconditions, not the issuer’s decision. See
Payment lifecycle.Error codes
Thecode field pinpoints the exact problem. It is normally present; if it is
missing or unknown, branch on the HTTP status family.
Handling errors
- Log
request_id(or theRequest-Idheader) for every failed call — it is the fastest path to a support resolution. - Treat unknown
codevalues according to the HTTP status family; new codes may be added over time without notice.