Skip to main content

Update Label Batch Item

PATCH 

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

Fixes one item: its own package and/or service. The item goes back to pending (its quote and failure are cleared), so rate the batch again to price it.

Required scope: orders:write

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

Body (all optional):

  • package_override (object, or null to clear): length, width, height (> 0, max 1000), dimension_unit (in, cm), weight (> 0, max 5000) and weight_unit (lb, oz, kg, g; optional, lb when omitted). A weight here replaces the weight worked out from the products.
  • service_override (service token, max 191, or null to clear): buy this item with this service instead of the batch's choice.
  • service_override_integration_instance_id (label account ID, nullable): the label account for service_override (from List Label Batch Item Rates). Cleared when service_override is cleared. For a marketplace label's rate this is the Walmart or Amazon store's integration instance.
  • service_override_provider (nullable): the rate's provider from List Label Batch Item Rates — easypost, shippo, shipstation, starshipit, shiprush, shiptheory, shippit, walmart_sww or amazon_buy_shipping. Send it for a marketplace label's rate (walmart_sww, amazon_buy_shipping) so the item is bought through the marketplace. Cleared when service_override is cleared.

Returns the updated item. 422 when the item already has a bought label, the label account is not connected, or service_override_provider is not a known provider. 409 while a rate or buy job holds the batch. The item must belong to the batch (404 otherwise).

Requires the orders write scope and the fulfillment_orders.index and fulfillment_orders.ship permissions.

quoted.amount is null (and quoted.priced / quoted_priced false) for a service booked without an upfront price (Shiptheory). purchased.cost is null (and cost_reported false) when the provider reported no cost for the label.

Request​

Responses​

OK

Response Headers
    Content-Type