Create a shipping method
Creates a new shipping method with geographic targeting, pricing, and optional bundling rules for multi-item orders. Bundling rules define quantity-based pricing tiers using either range (from–to) or max (up to N) logic.
Body Parameters
Display name for the shipping method.
Base shipping price in smallest currency unit (e.g. cents).
ISO currency code.
Whether this shipping method is available for selection.
Country or region codes where shipping is available (ISO 3166-1 alpha-2).
State/province restrictions within destinations.
Postcode restrictions (up to 10 characters each).
Quantity-based pricing tiers for multi-item orders. Each rule is
either a range (from–to) or a max (up to N items) type.
Only one max rule is allowed. Ranges must not overlap.
Shipping cost for this tier (smallest currency unit).
unit — cost per item; fixed — flat rate for the tier.
unitfixedrange — quantity between from and to; max — quantity up to max.
rangemaxMaximum quantity (required when type is max, null otherwise).
Starting quantity (required when type is range, null otherwise).
Ending quantity (required when type is range, null otherwise).
Responses
Shipping method created
Validation or business-logic error.
| Code | Description |
|---|---|
1003 | A max bundling rule already exists |
1004 | Bundling rule starting range is greater than ending range |
1005 | Bundling rules have conflicting or overlapping ranges |
10239 | Shipping method quota reached (fair use limit) |
Missing or invalid API key