setLineItemAdjustments - Cart Module Reference
This documentation provides a reference to the setLineItemAdjustments
method. This belongs to the Cart Module.
This method set the line item adjustments of line items in a cart. The existing line item adjustments, except those included in the specified list, of an item are removed and replaced with the specified adjustments.
Example
Parameters
cartId
stringRequiredThe cart's ID.
The line item adjustments to add to the line items.
The line item is specified by the item_id
field. If the id
field is specified, the adjustment
is kept in the line item's adjustment and its attributes can be updated.
item_id
field. If the id
field is specified, the adjustment
is kept in the line item's adjustment and its attributes can be updated.Returns
The added line item adjustments.
Was this section helpful?