Error codes · Limits

Spending cap reached

Codespending_limit_exceeded
Status429
If this was an orderThis request bought nothing
Send it again unchanged?No — change something first
.NET SDKLimitExceededException

What it means

HTTP 429, spending_limit_exceeded: this order would exceed the application’s spending cap for the current window, across the application or for this wallet. The order was not placed and nothing was charged. Anis staff set the cap; a new application defaults to 5,000 LYD per day across all its wallets.

What to do

  • Retry-After gives the seconds until the spending window resets. Windows follow UTC: a one-day window starts at 00:00 UTC, which is 02:00 in Libya.
  • Do not resend the same order immediately or retry it in a loop. The refusal is recorded: after the window resets, place a new order with a new operation id.
  • Ask Anis staff to change the cap if your application needs a different allowance.

Where you can meet it

Example

The body of the refusal. Its type is the address of this page.

{
  "type": "https://developers.anis.ly/errors/spending-limit-exceeded",
  "title": "Spending cap reached",
  "status": 429,
  "code": "spending_limit_exceeded",
  "requestId": "01J9R2K8T4V6XQ0M3B7C5D9E1F"
}