- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
addLineItemAdjustments - Cart Module Reference
This documentation provides a reference to the addLineItemAdjustments
method. This belongs to the Cart Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
addLineItemAdjustments(data): Promise<LineItemAdjustmentDTO[]>#
This method adds line item adjustments to line items.
Example#
Parameters#
The line item adjustments to be created and added to line items.
The line item is specified by the item_id
field.
item_id
field.Returns#
Promise
Promise<LineItemAdjustmentDTO[]>The added line item adjustments.
Promise
Promise<LineItemAdjustmentDTO[]>addLineItemAdjustments(data): Promise<LineItemAdjustmentDTO[]>#
This method adds a line item adjustment to a line item.
Example#
Parameters#
The line item adjustment to be created and added to a line item.
The line item is specified by the item_id
field.
item_id
field.Returns#
Promise
Promise<LineItemAdjustmentDTO[]>The added line item adjustment.
Promise
Promise<LineItemAdjustmentDTO[]>addLineItemAdjustments(cartId, data): Promise<LineItemAdjustmentDTO[]>#
This method adds line item adjustments to line items in a cart.
Example#
Parameters#
cartId
stringThe cart's ID.
The line item adjustments to be created and added to line items.
The line item is specified by the item_id
field.
item_id
field.Returns#
Promise
Promise<LineItemAdjustmentDTO[]>The added line item adjustment.
Promise
Promise<LineItemAdjustmentDTO[]>Was this page helpful?