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.
Path Params
string
required

The unique identifier of the cart

Query Params
filter
array of strings

Conditional filters in URI format to narrow down the search result

filter
includes
array of strings

List of related objects to include in the response

includes
boolean
Defaults to false

A boolean flag to indicate whether to skip the pricing process

boolean
Defaults to false

A boolean flag to indicate whether to skip the config process

Body Params

The line items to be added

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses
200

OK

202

Accepted

500

Internal Server Error

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json