commercetools icon

commercetools

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

Actions671

Cart → Create Cart

AI-generated

Summary

Create a new cart in commercetools with a required currency parameter.

Inputs

  • Currency (required) — The currency code for the cart (e.g., USD, EUR). This parameter is mandatory to specify the currency in which the cart will be created.

Output shape

a single record containing the created cart's details as JSON

The output returns the full JSON response from the commercetools API representing the newly created cart. Errors during creation will throw exceptions unless 'Continue on Fail' is enabled, in which case error information will be returned per item.

Links

Discussion