ecommerce/cart/add
options
Any property name prefixed by an underscore will be treated as encrypted.
Required Properties
The options object may contain the following properties:-
orderID: number || string //if _orderID
customerID: number || string //if _customerID
productID: number // product to add
variantID: variant to add
data: collection //items to add
sku: string // will be looked up if not provided
Optional Properties
price: money
weight: number
image: string // asset file name of the product image
productTitle: string
productTable: string; the table containing the items being transacted.
If not provided the app config product table will be used. If not configured the table name “products” will be used.
variantTable: string; the default table containg variants of the items being transacted. If not provided,
isLocked: boolean // item cannot be modified
isPack: boolean // item is part of pack
linkedID: number // lineItemID of the parent the item is locked to
countryCode
ecommerce/cart/remove
Required Properties
The options object may contain the following properties:-
order_id: number
item_id: number