insufficient_credits
402 Insufficient credits. Retry: Not as it is: change the request first. It can also end a job that has started, as the job’s error.code; failed jobs cost nothing.
When it happens
The job needs more credits than the organization has left. Credits are held when a job starts and charged only if it succeeds. A conversion priced per page or minute holds one page or minute at first, and the rest once its file is counted: a job whose pages or minutes need more than is left ends with this code, at no charge.
What to do
Wait for the monthly grant, or buy a credit pack or move to a bigger plan on the dashboard’s Billing page. On an API plan whose subscription carries overage, it also means the month’s overage has reached its cap. Test keys don’t spend credits.
Example
{ "type": "https://formatjet.com/docs/errors/insufficient_credits", "title": "Insufficient credits", "status": 402, "code": "insufficient_credits", "detail": "…", "request_id": "req_01JBXA3Q6P0R2S4T6V8W0X2Y4Z"}Endpoints
- Make a job
POST /v1/jobs - Convert a file
POST /v1/convert