LIQUID Documentation

Documentation library

Limits and errors

Rate limits (sandbox)

Limit Value
Per client 60 requests a minute. This is the real control.
All traffic (shared safety limit) 6,000 requests a minute
Calls without a token (checking a pay order), shared 600 a minute

Every answer carries x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset. Over the limit you get 429: wait for the reset.

Errors

Errors are JSON with one plain sentence:

{ "error": "Your bank hasn't approved your organisation yet." }
Status Meaning
400 Something in the request is missing or not valid
401 No token, or the token is wrong, expired or for another audience
403 Your role or organisation can't do this
404 Not found, or not yours to see, or not part of the public API
409 It conflicts with the current state (for example, already released)
429 Rate limit reached
502, 503 A bank or service did not answer. Retry reads with backoff. For a write, look up the original reference before resubmitting.

Every answer has an x-request-id. Quote it when you ask us about a call.

Retrying

Reads are safe to retry. A 429 is safe to retry after the reset: the gateway refused the call before anything happened.

Idempotency-Key is not de-duplicated yet (program#148). Send one on every payment, but the same request sent twice creates two requests. Before you retry a write after a timeout or a 5xx, check the list (for example your payments or approvals) so you don't prepare the same thing twice.