commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Shipping-method → Create ShippingMethod

AI-generated

Summary

Create a new shipping method in commercetools by specifying its name, localized description, tax category identifiers, zone rates, and whether it is the default shipping method.

Inputs

  • Name (required) — The name of the shipping method to create.
  • Localized Description (required) — A JSON object specifying the localized descriptions of the shipping method, typically keyed by locale code (e.g., "en").
  • Tax Category › Type Id — The type ID of the tax category to associate with the shipping method.
  • Tax Category › Id — The ID of the tax category to associate with the shipping method.
  • Zone Rates (required) — A JSON array defining the zone rates with prices and shipping zones for the shipping method.
  • Is Default (required) — Boolean indicating if this shipping method should be set as the default.

Output shape

a single record

Returns the created shipping method object as JSON. Errors during creation will throw a NodeApiError unless 'Continue on Fail' is enabled, in which case error information is returned alongside the input item.

Links

Discussion