Cart update
Triggered when a shopping cart item is updated.
Requires the order access scope. Minimum supported version: 202201.
Request headers
The event that triggered this delivery, e.g. orders/create
orders/createBase64-encoded HMAC-SHA256 signature of the request body, generated with your app's Client Secret. Use it to verify the request comes from Shoplazza
The domain of the store that generated the event
example.myshoplaza.comThe API version used to serialize the payload
2025-06Deduplication ID for this delivery. It stays the same across retries of the same event—use it for idempotency
Request body
- Schema
- Example
cart object
created_atstringCart creation time
currency_codestringCurrency code
discount_applications object[]
Cart-level discount details
Array [apply_methodstringApplication method for automatic-activity lines
codestringDiscount code (present only for discount-code activities)
discount_amountnumberDiscount amount
discount_idstringDiscount ID
discount_messagestringDiscount prompt text
discount_textstringDiscount text (may be the title or a label)
discount_typestringDiscount-code discount type: percentage or fixed amount (discount codes only)
entitled_product_listundefined[]List of products the discount applies to
extentsobjectExtension fields (string-to-string key-value pairs; keys vary)
extents.application_timestringApplication time
extents.business_custom_datastringBusiness-defined custom data
extents.discount_apply_typestringDiscount application type
extents.discount_codestringDiscount code
extents.discount_rule_infostringDiscount rule information
extents.old_discount_idstringLegacy discount ID
extents.use_with_otherstringWhether the discount can be combined with others
iconstringIcon
is_free_giftbooleanWhether the entitled-product list are free gifts
messagestringInput-box prompt text
propertiesstringAdditional discount-code fields
statusstringDiscount-code application status: success (applied), undetermined (pending), fail (not applied)
subtypestringMarketing-activity subtype: discount_rebate (spend-threshold discount), discount_code (discount code), discount_coupon (coupon), discount_flashsale (flash sale), automatic (automatic discount), buy_x_get_y (buy X get Y)
target_selectionstringDiscount target selection method
target_typestringDiscount target: shipping_line (shipping), line_item (line item), payment_line (payment method)
titlestringDiscount name
typestringMarketing-activity type: discount_rebate (spend-threshold discount), discount_code (discount code), discount_coupon (coupon), discount_flashsale (flash sale), automatic (automatic discount)
value_typestringDiscount value type
]extra object
Additional information about the cart change
client_idstringClient ID
item_countintegerNumber of items
line_items object[]
List of items in the cart
Array [add_quantitystringQuantity added
availablebooleanWhether the product is available for sale
available_quantityintegerAvailable quantity
can_buybooleanWhether the item can be purchased
compare_at_pricestringCompare-at (strikethrough) unit price
cost_pricestringCost price
custombooleanWhether this is a custom line item
discount_applications object[]
Discount details for this line item
Array [allocation_methodstringAllocation method
codestringDiscount code
discount_amountstringDiscount amount
discount_idstringDiscount ID
discount_quantityintegerDiscounted quantity
discount_textstringDiscount text (may be the title or a label)
discount_typestringDiscount-code discount type
extentsobjectExtension fields (key-value pairs; keys vary)
extents.business_custom_datastringBusiness-defined custom data
extents.old_discount_idstringLegacy discount ID
extents.raw_input_line_item_pricestringRaw input line item price
groupsundefined[]Discount application groups
iconstringIcon
is_free_giftbooleanWhether this product list are free gifts
is_need_splitbooleanWhether splitting is allowed
subtypestringMarketing-activity subtype (values as listed under discount_applications)
target_selectionstringDiscount target selection method
target_typestringDiscount target (values as listed under discount_applications)
titlestringDiscount name
total_discount_amountstringTotal discount amount
typestringMarketing-activity type (values as listed under discount_applications)
valuestringDiscount value
value_typestringDiscount value type
]discount_totalstringTotal discount amount
final_line_pricestringFinal line price
final_pricestringFinal unit price
fixed_discount_totalstringFixed discount total
idstringCart line item ID
imageobjectProduct image
image.heightintegerImage height
image.pathstringImage path
image.srcstringImage URL
image.widthintegerImage width
inventory_policystringInventory policy (continue: keep selling when out of stock / deny: stop selling when out of stock / auto_unpublished: auto-unpublish when out of stock)
inventory_quantityintegerInventory quantity
inventory_trackingbooleanWhether inventory tracking is enabled
item_idstringItem ID
line_pricestringLine price
mixed_wholesalebooleanWhether mixed wholesale is supported
options object[]
List of product option attributes
Array [namestringOption name
valuestringOption value
]origin_pricestringOriginal price
original_line_pricenumberOriginal line price
parts_pricestringParts price
pricestringSelling unit price
product_handlestringProduct handle
product_idstringProduct ID
product_tagsundefined[]Product tags
product_titlestringProduct title
product_typestringProduct type
product_urlstringProduct URL
propertiesstringProduct option properties (key-value pairs)
publishedbooleanWhether the product is published (listed)
published_atstringProduct publish time
quantitystringPurchase quantity
requires_shippingbooleanWhether shipping is required
retail_pricestringRetail price
saved_priceintegerAmount saved
skustringVariant SKU
taxablebooleanWhether the item is taxable
trunk_pricestringTrunk price
variant_idstringVariant ID
variant_titlestringVariant title
vendorstringVendor
weightstringProduct weight
weight_unitstringWeight unit
wholesale_price object[]
Wholesale prices (list)
Array [min_quantityintegerMinimum quantity
pricestringPrice
]]total_discountstringTotal discount amount of the cart
total_pricestringTotal amount of items in the cart
updated_atstringCart update time
user_idstringUser ID
user_signstringUser signature (guest identifier)
{
"cart": {
"created_at": "string",
"currency_code": "string",
"discount_applications": [
{
"apply_method": "string",
"code": "string",
"discount_amount": 0,
"discount_id": "string",
"discount_message": "string",
"discount_text": "string",
"discount_type": "string",
"entitled_product_list": [
null
],
"extents": {},
"extents.application_time": "string",
"extents.business_custom_data": "string",
"extents.discount_apply_type": "string",
"extents.discount_code": "string",
"extents.discount_rule_info": "string",
"extents.old_discount_id": "string",
"extents.use_with_other": "string",
"icon": "string",
"is_free_gift": true,
"message": "string",
"properties": "string",
"status": "string",
"subtype": "string",
"target_selection": "string",
"target_type": "string",
"title": "string",
"type": "string",
"value_type": "string"
}
],
"extra": {
"client_id": "string"
},
"item_count": 0,
"line_items": [
{
"add_quantity": "string",
"available": true,
"available_quantity": 0,
"can_buy": true,
"compare_at_price": "string",
"cost_price": "string",
"custom": true,
"discount_applications": [
{
"allocation_method": "string",
"code": "string",
"discount_amount": "string",
"discount_id": "string",
"discount_quantity": 0,
"discount_text": "string",
"discount_type": "string",
"extents": {},
"extents.business_custom_data": "string",
"extents.old_discount_id": "string",
"extents.raw_input_line_item_price": "string",
"groups": [
null
],
"icon": "string",
"is_free_gift": true,
"is_need_split": true,
"subtype": "string",
"target_selection": "string",
"target_type": "string",
"title": "string",
"total_discount_amount": "string",
"type": "string",
"value": "string",
"value_type": "string"
}
],
"discount_total": "string",
"final_line_price": "string",
"final_price": "string",
"fixed_discount_total": "string",
"id": "string",
"image": {},
"image.height": 0,
"image.path": "string",
"image.src": "string",
"image.width": 0,
"inventory_policy": "string",
"inventory_quantity": 0,
"inventory_tracking": true,
"item_id": "string",
"line_price": "string",
"mixed_wholesale": true,
"options": [
{
"name": "string",
"value": "string"
}
],
"origin_price": "string",
"original_line_price": 0,
"parts_price": "string",
"price": "string",
"product_handle": "string",
"product_id": "string",
"product_tags": [
null
],
"product_title": "string",
"product_type": "string",
"product_url": "string",
"properties": "string",
"published": true,
"published_at": "string",
"quantity": "string",
"requires_shipping": true,
"retail_price": "string",
"saved_price": 0,
"sku": "string",
"taxable": true,
"trunk_price": "string",
"variant_id": "string",
"variant_title": "string",
"vendor": "string",
"weight": "string",
"weight_unit": "string",
"wholesale_price": [
{
"min_quantity": 0,
"price": "string"
}
]
}
],
"total_discount": "string",
"total_price": "string",
"updated_at": "string",
"user_id": "string",
"user_sign": "string"
}
}