Add Item
addItem
endpoint adds an item from the merchant's store to the customer's shopping cart. The customer may select the item, type in the quantity he wants to order, and click on the "add to cart" button. This sends the product to the shopping cart, and then the customer may continue to shop for other items.TIP
Payload
AddItemPayload
id
number
required
quantity
number
required
Default:
1
options
array [object {2}]
optional
id
number
optional
Example:
98789
value
string | number | array[number]
optional
Example:
10
notes
string
AddItemPayload.notes
file
string | object
BinaryType
Response
Success
Error
cart.addItem.success
success
boolean
success
status
enum<number>
status
Allowed values:
200201202
data
object
data
cart
object
CartSummary
offer
object
array[Offer]
Usage
addItem
adds an item into the cart, the developer may call the method addItem
as follows:Simple Product
Variable product
Events
onItemAdded
onItemAddedFailed
Modified at 2025-03-04 12:54:02