Skip to main content

List Label Batch Item Rates

GET 

/api/shipping-label-batches/:shippingLabelBatch/items/:item/rates

Every rate for one item's order, cheapest first, across the batch's label accounts (every connected label account for a fixed-service batch) and the order's marketplace label program (Ship with Walmart for a Walmart order, Amazon Buy Shipping for an Amazon order). The batch's allowed services and max delivery days are not applied, so you can pick any of them. To use one, send its service_token as service_override and its integration_instance_id as service_override_integration_instance_id to Update Label Batch Item, then rate the batch again.

Required scope: orders:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Each rate: integration_instance_id and integration_instance_name (the label account, or the Walmart / Amazon store for a marketplace label), provider and provider_label, is_marketplace (a Ship with Walmart or Amazon Buy Shipping rate), service_token, service_name, carrier, amount, currency, delivery_days, benefits (protections the rate comes with, e.g. claims_protected for Amazon A-to-z claim protection) and excluded_benefits (protections it lacks, each {benefit, reasons}), and is_test. The order's marketplace label is quoted alongside the label accounts unless the batch's marketplace_labels is exclude; a tie in price lists the marketplace rate first. For a marketplace rate, also send its provider as service_override_provider to Update Label Batch Item.

422 when the order cannot be rated at all: incomplete ship-from or ship-to address, an international order, a product without a weight, no connected label account, or every provider failed (errors.rates carries the providers' messages). The item must belong to the batch (404 otherwise).

Requires the orders read scope and the fulfillment_orders.index permission.

Priced rates come first, cheapest first. Services booked without an upfront price (Shiptheory) follow with amount: null and priced: false.

unavailable (beside data) lists the label accounts and marketplace label programs that offered nothing for this order, each with provider, provider_label, integration_instance_id and a plain reason — for an international order, accounts that can't send customs forms say "domestic labels only". An international order whose customs declaration is incomplete is refused with 422 and the error under customs; one with no account that can send customs forms under customs_accounts.

Request​

Responses​

OK

Response Headers
    Content-Type