Carts update
Event Group | Event Identification |
---|---|
carts | carts/update |
Triggered when the shopping cart is updated
Request Headers
- X-Shopline-Topic string requiredEvent operation identificationExample:
orders/edited
- X-Shopline-Hmac-Sha256 string requiredSignatureExample:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
- X-Shopline-Shop-Domain string requiredShop domainExample:
shophub.myshopline.com
- X-Shopline-Shop-Id string requiredShop IDExample:
1610418123456
- X-Shopline-Merchant-Id string requiredMerchant IDExample:
2000001234
- X-Shopline-API-Version string requiredVersionExample:
v20210901
- X-Shopline-Webhook-Id string requiredMessage IDExample:
b54557e48a5fbf7d70bcd043
Request Body
- created_at stringCreation time
discount_codesobject[]
Promo code listingamount doublePromo code amountcode stringPromo codetype integerPromo code type- id stringShopping cart idExample:
1234
line_itemsobject[]
Shopping cart listingsgiftCard booleanWei or not for gift cardsgrams stringProduct weight units gid stringProduct row idoriginal_line_price doubleProduct line price ( pre Discount )original_price doubleIndividual item prices ( before Discount )price doubleIndividual item prices ( before Discount )product_id stringProduct spupropertiesobject[]
Product attributes informationname stringAttribute nameshow booleanTo be displayed on the front end or noturls arrayUrl listExample: ``value stringAttribute valuequantity integerProduct row Product quantitysku stringProduct code, barCodetaxable booleanTax or not?title stringProduct titlevariant_id stringProduct SKU serial number- token stringShopping cart token
- total_amount doubleShopping cart sub total ( minus various Discount )
- updated_at stringUpdate time
Response
After receiving a webhook notification from SHOPLINE, you must respond with the following format:
HTTP/1.1 200 OK
For more information about how to subscribe to webhooks and webhook response rules, refer to Webhook overview.
Was this article helpful to you?