---
title: "Create shipping zone method"
method: POST
path: "/site/{site_name}/ecommerce/shipping-zones/{zone_id}/shipping-methods"
---

# Create shipping zone method

`POST /site/{site_name}/ecommerce/shipping-zones/{zone_id}/shipping-methods`

## Request

- Base URL: `https://api-sandbox.duda.co/api/integrationhub/application`
- URL: `https://api-sandbox.duda.co/api/integrationhub/application/site/{site_name}/ecommerce/shipping-zones/{zone_id}/shipping-methods`
- Auth: none required

## Path parameters

- `site_name` string, required
- `zone_id` string, required

## Headers

- `Authorization` string
- `x-duda-access-token` string

## Request body

- object
  - `type` 'UNKNOWN' | 'FREE' | 'FLAT_RATE' | 'CART_PRICE_BASED' | 'CART_WEIGHT_BASED', required: Calculation type of the shipping method. This property will dictate the validation rules for the array of rates.
  - `name` string, required: Display name for the method at checkout.
  - `min_delivery_time_in_days` integer: Customer facing information about the estimated minimum delivery time in days for the specific method.
  - `max_delivery_time_in_days` integer: Customer facing information about the estimated maximum delivery time in days for the specific method.
  - `rates` object[], required: Array of rates for the shipping method.
    - `price` number, double: String decimal value of the price the customer must pay for shipping.
    - `min_cart_weight` integer: Minimum weight in grams of a cart for the rate to be valid.
    - `max_cart_weight` integer: Maximum weight in grams of a cart to have for the rate to be valid (can be left empty for the last rate to catch all carts above a defined weight).
    - `min_cart_value` number, double: Minimum value of the cart's subtotal for the rate to be valid.
    - `max_cart_value` number, double: Minimum value of the cart's subtotal for the rate to be valid.

## Response `201`

Created

- object

---

[API](https://skmtc.dev/duda/apis/partner-api.md) - [All operations](https://skmtc.dev/duda/apis/partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duda/apis/partner-api/revisions/b3190126015a?raw)
