Get account's available spend limits
Account Token
Response Structure
200 OK
{
"available_spend_limit": {
"daily": integer,
"lifetime": integer,
"monthly": integer
},
"spend_limit": {
"daily": integer,
"lifetime": integer,
"monthly": integer
},
"spend_velocity": {
"daily": integer,
"lifetime": integer,
"monthly": integer
}
}
401 Errors
| Error | Description |
|---|---|
| User has not been authenticated | Invalid or missing API key |
| API key is not active | The API key used is no longer active |
| Could not find API key | The API key provided is not associated with any user |
| Please provide API key in Authorization header | The Authorization header is not in the request |
| Please provide API key in the form Authorization: [api-key] | The Authorization header is not formatted properly |
| Insufficient privileges. Issuing API key required | Write access requires an Issuing API key. Reach out at lithic.com/contact |
| Insufficient privileges to create virtual cards. | Creating virtual cards requires an additional privilege |
404 Error
The specified resource was not found.
409 Error
Client is not authorized to call the endpoint.
429 Errors
| Error | Description |
|---|---|
| Rate limited, too many requests per second | User has exceeded their per second rate limit |
| Rate limited, reached daily limit | User has exceeded their daily rate limit |
| Rate limited, too many keys tried | One IP has queried too many different API keys |
API Request Example
curl --request GET \
--url https://sandbox.lithic.com/v1/accounts/account_token/spend_limits \
--header 'accept: application/json'
Example Response
{
"available_spend_limit": {
"daily": 100000,
"lifetime": 300000,
"monthly": 200000
},
"spend_limit": {
"daily": 500000,
"lifetime": 500000,
"monthly": 500000
},
"spend_velocity": {
"daily": 40000,
"lifetime": 20000,
"monthly": 30000
}
}