Clone cart line items

Clones line items based on the primary line numbers passed in the request body. This API creates an exact copy of the lines along with the saved configuration. The cartId parameter is required.
This API validates the following during runtime:

  • All the selected primary line items for both standalone and bundle are cloned at once.
  • Bundle line items are cloned along with all secondary line items.
    • The product is copied with its configuration, including options.
    • Pricing is re-evaluated to price the newly created line.
  • After cloning, all pricing calls are executed and the summary group is updated based on the latest pricing information.
  • All cloned lines are added as new lines at the end of the cart.
  • Any custom fields on the line items are also copied.
  • Any price rules or price matrices included as part of pricing are also executed.
  • Any manual adjustments applied to the line items are not copied.
Language
Credentials
Bearer
JWT
URL
Click Try It! to start a request and see the response here!