Skip to main content
The shipping quote API lets your own checkout show your customers the shipping choices and prices you set up in Zippendo. You send the cart and the delivery address; Zippendo answers with one rate for each of your shipping rules that fits that cart.

When to use it

  • A custom or headless webshop with its own checkout
  • An app that needs shipping prices before it creates a shipment
  • A checkout where one flat rate is not enough
Shopify and WooCommerce don’t need this API: Zippendo serves their checkout rates for you. See Shipping quotes. Use the API when your own checkout needs the prices.

Request

Send the cart and destination to POST /orgs/{orgId}/shipping-quote:
price is the unit price in the smallest currency unit (øre for DKK, cents for EUR), and grams is the unit weight. Add totalPriceCents with the cart total after discounts if your shipping rules look at the order value.

Response

Zippendo checks each shipping rule whose Receiving countries include destination.country. Every rule whose Shipping conditions match the cart becomes one rate, named after the rule and priced by its matching condition (the lowest price, if several match). totalPrice is in the smallest currency unit, as a string. When no rule matches, you get { "rates": [] }, so show a fallback at checkout in that case. The full field list is in Shipping quotes and the API reference.

Requirements

  • At least one connected carrier
  • At least one shipping rule for the countries you ship to. The rules decide which rates appear and what they cost.
  • An API token with the read:shipping_rules permission. See the REST API quickstart.

Next steps

Shipping rules

Choose which carrier products are offered by weight, value and country.

API reference

Full request and response details, with a playground.