Skip to main content

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.

Required scope: orders:write

Grant 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​

Accepted

Response Headers
    Content-Type