Error codes · Limits
Spending cap reached
Code
spending_limit_exceededStatus429
If this was an orderThis request bought nothing
Send it again unchanged?No — change something first
.NET SDK
LimitExceededExceptionWhat 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-Aftergives 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
- POSTPlace an order
/v1/wallets/{walletId}/orders - POSTCharge a meter
/v1/wallets/{walletId}/meter-charges - POSTRequest a direct recharge product
/v1/wallets/{walletId}/direct-recharges
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"
}