Create a shipping option
Create a shipping option. Requires the WRITE_SHIPPING scope.
auto options a validated pickup address and coordinates are required so live courier rates can be fetched. Requires the WRITE_SHIPPING scope.Authorizations
Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.
Body
Display name of the shipping option.
Description shown to shoppers.
One of auto or manual. Defaults to custom.
Flat shipping price (minimum 0). Defaults to 0.
How triggers combine: all or any. Defaults to all.
Courier codes to restrict the option to. Defaults to [].
Eligibility rules. Each has type (totalAmount|country|state|city|zipCode|distance|custom), operator (=|!=|>|<|>=|<=|in|notIn|contains|notContains), value, and optional unit, source, coordinates, metadata. Defaults to [].
Whether the option is active. Defaults to true.
Pickup address string (required for auto options).
Pickup coordinates { lat, lng } (required for auto options).
Response
Create a shipping option.
Standard Salesive response envelope. The operation-specific payload is carried in data.

