Multi Edit Cart Line Items
Multi Edit Cart Line Items API allows the user to update multiple items present in the cart in a single transaction. It could be to update all modified attributes and fields at once across line items.
This API follows an all or nothing approach such that either the changes made to all line items are applied to the cart or none are applied at all.
PATCH
multiEditCartItems
| Parameter | Description |
|---|---|
namespace | vlocity_cmt |
cart_ID | The unique ID of the cart, which is the ID of the opportunity, quote, or order |
| Parameter | Description |
|---|---|
price | Execute the pricing service and price the affected items. |
validate | Execute the context rules and advance rules for the affected items. |
In order to update quantity for the multiple line item, it requires to update the Quantity fields under corresponding rootItemId and assetReferenceId for the line item as per above JSON format, and send a PATCH request for update.
The API does not provide a complete response after each modification. It’s just success or failure. In order to fetch the updated cart info, customers are required to execute the getCartItems API further.
Success Scenario
Failure Scenario