Admin API / Queries
shippingRateEstimates
Estimates carrier rates for one parcel before a shipment exists. Each estimate spans representative postal codes of the destination, plus the origin postal code when both are in one country. Lowest minPrice first. Supports US, CA and ROW; another destination fails with VALIDATION_ERROR. When the marketplace bills labels to its own Shippo account and that account has no usable connection, the query fails with SHIPPING_QUOTE_UNAVAILABLE, and extensions.reason is NOT_CONNECTED or DEAUTHORIZED. Each estimate is a USPS, UPS, FedEx or Canada Post service level.
Requires a client key with one of these scopes:
admin:products:readRequires this member role or higher: SELLERshippingRateEstimates(
containsHazmat: Boolean = false
destination: ShippingCountry!
origin: ShippingOriginInput!
parcel: ParcelInput!
): [ShippingRateEstimate!]!Arguments
| Argument | Type | Description |
|---|---|---|
containsHazmat | Boolean | True when the parcel holds hazardous material. Limits the USPS services. Default: false. |
destination | ShippingCountry! | Where the parcel ships to. |
origin | ShippingOriginInput! | Where the parcel ships from. |
parcel | ParcelInput! | The parcel to price. |