Errors

Diagnose failed requests and handle errors returned by the Lithic API.

Use this information to diagnose failed requests and fine-tune your exception handling.

400 Bad request

MessageDescription
[query] is not a valid parameterA parameter in the query given in the request does not match the valid queries for the endpoint

401 Unauthorized

MessageDescription
User has not been authenticatedInvalid or missing API key
API key is not activeThe API key used is no longer active
Could not find API keyThe API key provided is not associated with any user
Please provide API key in Authorization headerThe 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 requiredWrite access requires an Issuing API key. Contact support.lithic.com
Insufficient privileges to create virtual cards.Creating virtual cards requires an additional privilege. Contact support.lithic.com

422 Unprocessable entity

MessageDescription
Authorization failed (in simulation)An authorization fails when simulating an authorization

429 Too many requests

MessageDescription
Rate limited, too many requests per secondUser has exceeded their per second rate limit

See Rate limits for limits per resource and retry guidance.

5xx Server errors

Lithic APIs may return HTTP 5xx errors in case of issues on Lithic's side. This always indicates a server-side error, and the specific HTTP error should not matter to the caller. The recommended action is to retry the request. If the issue persists, check our Status Page and contact support.lithic.com.

CodeNameDescription
500Internal Server ErrorThere was a processing error on the server-side.
502Bad GatewayThere was a processing error on the server-side due to network configuration
503Service UnavailableThere was a processing error on the server-side due to unavailability of an internal service
504Gateway TimeoutThere was a processing error on the server-side due to network timeout

Did this page help you?