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: SELLER
shippingRateEstimates(
  containsHazmat: Boolean = false
  destination: ShippingCountry!
  origin: ShippingOriginInput!
  parcel: ParcelInput!
): [ShippingRateEstimate!]!

Arguments

ArgumentTypeDescription
containsHazmatBooleanTrue when the parcel holds hazardous material. Limits the USPS services. Default: false.
destinationShippingCountry!Where the parcel ships to.
originShippingOriginInput!Where the parcel ships from.
parcelParcelInput!The parcel to price.

Return type

[ShippingRateEstimate!]!