Rate Label Batch
POST/api/shipping-label-batches/:shippingLabelBatch/rate
Gets rates for the batch's pending, rated, no-rate and failed items (or only item_ids) in the background. Returns 202 with a background job id (tracked_job_log_id); poll the job, then read the batch and its items. While the job runs the batch is rating and is_busy is true. Each item ends rated (see its quoted rate) or no_rate / failed with a failure_code. Rating clears rates_stale.
orders:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Body (optional):
item_ids(array of item IDs, 1-500): rate only these items. Omit to rate every rateable item.max_delivery_days(integer 1-30, nullable): a max-delivery-days limit for this run only; the batch's own setting is not changed.
409 when a job already holds the batch. 422 when there is nothing to rate or the ship date is more than 6 days ahead.
Requires the orders write scope and the fulfillment_orders.index and fulfillment_orders.ship permissions.
Request
Responses
- 202
- 401
- 403
- 404
- 409
- 422
- 429
Accepted
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Conflict
Response Headers
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.