Create shipping method (V2)

Creates a shipping method for the subzone with the given subzone id, within the v2 shipping zone with the given zone id, from the given name, calculation type, and rates, plus an optional delivery time range and shipping group. Returns the created method.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The site's unique name (its ID), returned when the site is created.

string
required

The shipping zone's ID.

string
required

The shipping subzone's ID.

Body Params

A shipping method owned by a subzone of a v2 shipping zone. Unlike
Snipcart.Api.Web.External.Dtos.Requests.Shipping.ExternalCreateShippingMethodRequestDto it can be scoped to a shipping group, so a zone can
quote different methods for different products.

string
required
length ≥ 1

Display name for the method at checkout.

string
enum
required

Calculation type of the shipping method. Dictates validation rules for the array of rates.

Allowed:
rates
array of objects
required

Array of rates. Min one required except for type FREE (none). Max one for type FLAT_RATE.

rates*
int32 | null
0 to 2147483647

Customer facing minimum delivery time in days. Optional.

int32 | null
1 to 2147483647

Customer facing maximum delivery time in days. Optional. Cannot be 0 or lower or equal to min. Can be set
when min is null.

string | null

Shipping group this method is offered for. Null or blank, the default, offers it for every product
belonging to no group. Anything else must be an existing shipping group id.

Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json