Skip to main content

Get Pack Session Shipping Rates

GET 

/api/v2/pack/sessions/:packSession/rates

Quote Shippo rates for the session's cartons, one parcel per carton, from the warehouse to the order's ship-to address. The session must be packed_ready (cartons set).

Required scope: warehouses:read

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

Authentication: Requires Bearer token. Scope: warehouses:read. Permission: packing.pack.

Response data: shipment_object_id, rates[] (as Get Shipping Rates in the Shippo integration), messages[] from the carriers, is_complete, is_test, integration_instance_id, and preselected_rate_id — the rate for the order's requested shipping method when one can be bought, else the first purchasable rate. Pass the chosen rate's object_id as rate_id (and echo shipment_object_id and the rate) to Complete Pack Session.

Errors: 422 {message} when the session is not ready; 422 {message, reason} when the order cannot buy a Shippo label (for example an international address); 422 {message, messages[]} when Shippo refuses the request; 502 when Shippo cannot be reached.

The quote is remembered on the session (its shipment and the cartons it priced). Buying a label needs a quote for the current cartons.

Request​

Responses​

OK

Response Headers
    Content-Type