Admin API / Mutations
quoteShipmentLabelRates
Gets carrier rates for the label of one shipment. Works in every status, charges nothing and changes no status. Needs a parcel. A route from outside the US to the US gets ShipmentNotLabelableError with ROUTE_UNAVAILABLE. A US origin gets USPS and UPS rates, a Canada origin Canada Post rates, and another origin USPS rates. A marketplace that connected its own Shippo account gets the rates of every carrier on that account that ShipmentCarrier names. Such a marketplace quotes only the shipments of its owners. The route and parcel checks run first. Then a shipment that needs a customs declaration and has no sold item gets a success with no rates. After these checks, another seller's shipment gets ShippoAccountUnavailableError with SELLER_NOT_OWNER. Rates of other carriers do not show. Rates with no transit estimate or no USD price are left out. Rates are ordered by price, with USPS Media Mail last. Each call gives new rate tokens.
admin:shipments:readRequires this member role or higher: SELLER A member below this role, or an inactive member, who has outstanding seller obligations can also call it.quoteShipmentLabelRates(
input: QuoteShipmentLabelRatesInput!
): QuoteShipmentLabelRatesPayload!Arguments
| Argument | Type | Description |
|---|---|---|
input | QuoteShipmentLabelRatesInput! | The shipment to quote. |