commercetools icon

commercetools

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

Actions671

Cart → Merge Cart

AI-generated

Summary

Merge an anonymous cart into a customer's cart on commercetools by specifying customer ID, anonymous cart identifier, and merge options.

Inputs

  • Customer ID (required) — The ID of the customer whose cart will be the merge target.
  • Anonymous Cart › Type Id — The type ID of the anonymous cart to merge.
  • Anonymous Cart › Id — The ID of the anonymous cart to be merged into the customer's cart.
  • Merge Mode (required) — The mode to use when merging carts, affecting how items are combined.
  • Update Product Data (required) — Boolean flag to indicate whether product data should be updated during the merge.

Output shape

a single JSON object representing the merged cart data returned by the commercetools API

The output will include the merged cart resource information. Errors during the merge will be thrown unless 'Continue On Fail' is enabled in the node settings.

Links

Discussion