Rate limits
Per-key, per-second, plus a monthly quota.
| Plan | Burst | Sustained | Monthly |
|---|---|---|---|
| Barcode package | 10/s | 5/s | package quantity |
| Pro | 100/s | 50/s | 250,000 |
| Team | negotiated | negotiated | unlimited |
Headers
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Burst ceiling |
X-RateLimit-Remaining | Requests left in window |
X-RateLimit-Reset | Unix seconds until window clears |
X-Quota-Remaining | Symbols left this month |
Retry-After | Seconds to wait, on 429 only |
Batching
There is no batch endpoint. For runs over 10,000, drive concurrency to the sustained rate and no higher — burst is a short-window allowance, not a working rate.
from concurrent.futures import ThreadPoolExecutor
with ThreadPoolExecutor(max_workers=50) as pool:
results = list(pool.map(encode_one, records))Rate limit versus quota
The two limits answer different questions. The per-second limit protects the service from
a burst and is measured over a short sliding window. The quota answers how many symbols
the account may produce in a period. Hitting the first returns 429 until the window
clears; hitting the second returns 429 until the period resets or the plan changes. Both
use the same status, so read X-Quota-Remaining before assuming which one you
hit.
A package is a quantity, not a period. It has a per-second limit and no reset date, and the remaining count is the number of barcodes left in the package. A Pro or Team quota resets on the billing anniversary. If a batch is planned for the last day of a period, check the remaining count before the run rather than during it.
Backoff that works
Read Retry-After and wait exactly that long, then retry once. If the retry
also returns 429, double the wait. Do not retry in a tight loop and do not increase
concurrency when requests start failing: both extend the window. A queue that drains at
the sustained rate finishes sooner than a queue that keeps tripping the burst ceiling.
Quota exhaustion
At zero the API returns 429 with X-Quota-Remaining: 0. A volume plan quota resets on the billing anniversary, not the calendar month, and upgrades apply immediately and pro-rate. A barcode package has no reset: it is a quantity, and it does not expire.