Document Template 429 error

After producing several Quote and Invoice attachments (less than 20?) using the https://api.servicem8.com/platform_produce_document endpoint, I’m running into the following issue:

{“errorCode”:429,“message”:“Daily document quota exceeded”}

Hi Franco,

That 429 response means the Document Templates API has hit its document-generation quota, which is separate from the general ServiceM8 API request limits.

The endpoint you’re using combines ServiceM8 objects with document templates to produce PDF, DOCX or JPG output, and the Document Templates API is also the system ServiceM8 uses to produce quote and invoice documents for jobs.

The general ServiceM8 API request limits are 180 requests per minute and 20,000 requests per day per add-on per account, but the document-generation limit is a separate, lower threshold and isn’t a published figure.

Email support@servicem8.com with the add-on/app name, endpoint, approximate timestamp, and the 429 response so we can review it privately.

Thanks,
Cody

Hi Franco,

Quick update: we’ve lifted the document-generation limit for development partners.

You should start seeing the increased limit from next week. Thanks for flagging this.

Thanks,
Cody

Very much appreciated.

From that I’ll also infer normal customer accounts will continue to be rate-limited, so a solution will viable if the endpoint is used for < 20 documents/day (by my reckoning)

Hi Franco,

The limit is scaled based on the number of jobs booked per day, so test accounts will have a low limit, but it’s usually not an issue for active accounts.

Thanks,
Cody