ShippingZone
You can use the ShippingZone resource to view shipping zones and their countries, provinces, and shipping rates. A shipping zone belongs to a delivery profile, which provides shops with the ability to create shipping rates per product variant and per location. For example, the merchant might want to use a shipping rate that applies only to fragile products. When querying the ShippingZone resource, each shipping zone is returned with its corresponding profile ID, location group ID, and countries. Its possible for the same country to exist in multiple shipping zones, if the shipping zones with overlapping countries have different delivery profiles.
What you can do with ShippingZone
The Shopify API lets you do the following with the ShippingZone resource. More detailed versions of these general actions may be available:
ShippingZone properties
id | plain "id": 132 The unique numeric identifier for the shipping zone. |
---|---|
name | plain "name": "North America" The name of the shipping zone, specified by the user. |
profile_id | plain "profile_id": 163945 The ID of the shipping zone’s delivery profile. Shipping profiles allow merchants to create product-based or location-based shipping rates. |
location_group_id | plain "location_group_id": 32873 The ID of the shipping zone’s location group. Location groups allow merchants to create shipping rates that apply only to the specific locations in the group. |
countries | plain "countries": { "id": 189, "shipping_zone_id": 132, "name": "Canada", "tax": 0.5, "code": "CA", "tax_name": "GST", "provinces": [] } A list of countries that belong to the shipping zone.+ id: The unique numeric identifier for the country. + code: The ISO 3166-1 alpha-2 two-letter country code for the country. The code for a given country will be the same as the code for the same country in another shop. + shipping_zone_id: The unique numeric identifier for the shipping zone. + name: The full name of the country, in English. + tax: The tax value in decimal format. + tax_name: The name of the tax as it is referred to in the applicable province/state. For example, in Ontario, Canada the tax is referred to as HST. |
provinces | plain "provinces": { "code": "AB", "country_id": 879921427, "shipping_zone_is": 132, "id": 205434194, "name": "Alberta", "tax": 0.08, "tax_name": null, "tax_type": null, "tax_percentage": 8.0 } The sub-regions of a country. The term provinces also encompasses states.+ code: The two letter province or state code. + country_id: The unique numeric identifier for the country. + shipping_zone_id: The unique numeric identifier for the shipping zone. + id: The unique numeric identifier for the particular province or state. + name: The name of the province or state. + tax: The tax value in decimal format. + tax_name: The name of the tax as it is referred to in the applicable province/state. For example, in Ontario, Canada the tax is referred to as HST. + tax_type: A tax_type is applied for a compounded sales tax. For example, the Canadian HST is a compounded sales tax of both PST and GST. + tax_percentage: The tax value in percent format. |
carrier_shipping_rate_providers | plain "carrier_shipping_rate_providers": [] Information about carrier shipping providers and the rates used. |
price_based_shipping_rates | plain "price_based_shipping_rates": { "id": 882078077, "name": "$5 Shipping", "price": "5.00", "shipping_zone_id": 881877113, "min_order_subtotal": "40.0", "max_order_subtotal": null } Information about a price-based shipping rate.+ id: The unique numeric identifier for the shipping rate. + name: The name of the shipping rate. + price: The price of the shipping rate. + shipping_zone_id: The unique numeric identifier for the associated shipping zone. + min_order_subtotal: The minimum price of an order for it to be eligible for the shipping rate. + max_order_subtotal: The maximum price of an order for it to be eligible for the shipping rate. |
weight_based_shipping_rates | plain "weight_based_shipping_rates": { "id": 882078078, "name": "Canada Air Shipping", "price": "25.00", "shipping_zone_id": 881877113, "weight_low": 0.0, "weight_high": 11.02 } Information about a weight-based shipping rate.+ id: The unique numeric identifier for the shipping rate. + name: The name of the shipping rate. + price: The price of the shipping rate. + shipping_zone_id: The unique numeric identifier for the associated shipping zone. + weight_low: The minimum weight of an order for it to be eligible for the shipping rate. + weight_high: The maximum weight of an order for it to be eligible for the shipping rate. |
Endpoints
GET/admin/api/2021-01/shipping_zones.json Get a list of all shipping zonesfields | comma-separated list of fields to include in the response |
---|---|
Show list of shipping zones
GET /admin/api/2021-01/shipping_zones.json