Update line items

Updates multiple line items in a cart based on details provided in the request body.The cart ID is passed as a mandatory parameter.
This API validates the following during runtime:

  • Validation constraint rules with multiple condition statements and action statements on product group and product family.
  • Validation constraint rules with multiple condition statements and action statements across different option groups belonging to different bundles.
  • Validation constraint rule for the Check on Finalization action on a product.
  • Message validation constraint rule on a product. For example, a message is displayed based on a product selection.
  • The minimum and maximum options for an option group are also checked when adding options to a bundle. For example, while creating the product option group, if the MaxOptions is set to 1, and if you add more than one option product in the cart, then an error message indicating the option ID or option group ID is displayed.
    This API updates the following inside a bundle:
  • The quantity of an option inside a bundle
  • The optional flag of an option inside a bundle
  • The editable line item field of an option inside a bundle
  • The quantity of a sub-bundle inside a bundle
  • The optional flag of a sub-bundle inside a bundle
  • The editable line item field of a sub-bundle inside a bundle
    Line items cannot be updated in a cart with Finalized, Superseded, or Deleted statuses. If line items are updated in such a cart, the API displays an error.
Language
Credentials
Bearer
JWT
URL
Click Try It! to start a request and see the response here!