addLineItems - Cart Module Reference
This documentation provides a reference to the addLineItems
method. This belongs to the Cart Module.
addLineItems(data): Promise<CartLineItemDTO[]>
This method adds a line item to a cart
Example
Parameters
The line item to create and add to the cart.
The cart is specified in the cart_id
field.
cart_id
field.Returns
The added line item.
addLineItems(data): Promise<CartLineItemDTO[]>
This method adds line items to carts.
Example
Parameters
The line item to create and add to the carts.
The cart is specified in the cart_id
field.
cart_id
field.Returns
The added line items.
addLineItems(cartId, items, sharedContext?): Promise<CartLineItemDTO[]>
This method adds line items to a cart.
Example
Parameters
cartId
stringRequiredThe cart's ID.
The line items to be created and added.
Returns
The added line items.
Was this section helpful?