Get Label Batch
GET/api/shipping-label-batches/:shippingLabelBatch
One label batch with exact counters and totals. counts: total (excluding removed items), pending, rated, purchasing, purchased, failed (failed + no_rate), no_rate, voided (voided + void_pending), void_pending, test (labels bought on a test account) and unrecorded (live labels bought whose shipment was never recorded; the next buy records them without buying again). failure_codes counts the failed and no-rate items per failure code. quoted_total sums the rates of the rated, purchasing and purchased items, buyable_quoted_total the rates of exactly what a buy without item_ids takes: the rated items plus those still purchasing (failed rows are retried only by id), buyable_by_provider splits that buy by label provider (provider, provider_label, is_marketplace, count, protected_count = rates with A-to-z claim protection, total, currency; null on the list endpoint), purchased_total the cost of the bought labels; currency is null when the labels are in more than one currency. warehouse.address_complete is false (with address_missing_fields) when the ship-from address cannot be used for rating. created_by names the user who created the batch.
orders:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Batch fields: status (draft, rating, rated, purchasing, completed, completed_with_failures) and is_busy (true while a rate or buy job holds the batch, see active_tracked_job_log_id); rate_strategy (cheapest = cheapest rate across integration_instance_ids, optionally limited to allowed_service_tokens and max_delivery_days; fixed_service = one label account and service_token for every order); package (mode from_products = weigh each order from its products plus tare_weight; fixed = one weight for every order; dimensions optional); label_format (pdf or zpl); marketplace_labels (how the batch uses marketplace labels — Ship with Walmart and Amazon Buy Shipping — for the orders that can have one: include = the marketplace rate joins the rate shop like any label account, prefer = use the marketplace label whenever the order can have one and fall back to the label accounts, exclude = never), with its marketplace_labels_label; amazon_prefer_protected (when preferring Amazon Buy Shipping, take only rates with A-to-z claim protection); source (batch, or single for the one-order batch behind Buy Fulfillment Order Label); ship_date; and rates_stale (options changed after rating, so buying asks for new rates first).
Requires the orders read scope and the fulfillment_orders.index permission.
unpriced_count is the number of rows with no known price: rated on a provider that quotes none (Shiptheory — the cost is recorded after purchase) or bought with no cost reported. The totals leave those rows out.
Request
Responses
- 200
- 401
- 403
- 404
- 429
OK
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
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.