Skip to main content
Infinity uses conventional HTTP status codes to indicate whether a request succeeded. Codes in the 2xx range indicate success. Codes in the 4xx range indicate a problem with the request as sent, such as a missing parameter, an invalid amount or insufficient funds; the body tells you exactly what. Codes in the 5xx range indicate a problem on Infinity’s side and are rare. Every error returns the same body:

The error object

All attributes are always present.

HTTP status codes

To avoid confirming that another account’s objects exist, an ID belonging to a different account returns the same 404 as an ID that doesn’t exist.

Error codes

Infinity may add error codes. Handle an unrecognised code by its HTTP status and type.

General

Authentication

Payouts and quotes

Payees and payee addresses

Account, wallets, deposits, webhooks and events

Sandbox

Errors versus payout failures

Error responses describe requests that Infinity couldn’t accept. A payout that was accepted can still fail later, at the network or the payee’s bank; that isn’t an error response but a status change to failed or returned, with a failure_code. See Failure codes.