commercetools icon

commercetools

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

Actions671

Cart → Replicate cart

AI-generated

Summary

Replicate an existing cart in commercetools by providing the reference id and type id of the source cart.

Inputs

  • Reference › Id (required) — The unique identifier of the cart to replicate.
  • Reference › Type Id (required) — The type id indicating the resource type of the reference, typically 'cart'.

Output shape

a single JSON object representing the newly created replicated cart

Returns the full JSON representation of the replicated cart as returned by the commercetools API.

Examples

Example 1: Replicate a cart by specifying the source cart's id and type id

Set Reference › Id to the cart ID to copy; set Reference › Type Id to 'cart'.

Links

Discussion