Checkouts update
Event Group | Event Identification |
---|---|
checkouts | checkouts/update |
Triggered when the settlement page 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
- abandoned_checkout_url stringDiscard link
applied_discountsobject[]
Discount for single stage other applications ;amount stringDiscount amountapplication_type stringDiscount type : discount code , automatic discount , manual discount ;target_selection stringalltarget_type stringline_item、shipping_linetitle stringEvent titlevalue stringDiscount valuevalue_type stringFixed amount , percentagebilling_addressobject
Account addressaddress1 stringAddress 1address2 stringAddress 2city stringCitycountry stringCountrycountry_code stringCountry codefirst_name stringLast namelast_name stringFirst namename stringFull namephone stringMobile phone numberprovince stringProvinceprovince_code stringProvince-codingzip stringPostal code- buyer_accepts_marketing booleanSubscribe or not
- cart_token stringShopping cart token
- closed_at stringClosed time
- completed_at stringFinish time
- created_at stringCreation time
- currency stringCurrent currency
customerobject
Buyer informationaddressesobject
Address informationaddress1 stringAddress 1address2 stringAddress 2city stringCitycountry stringCountrycountry_code stringCountry codefirst_name stringLast namelast_name stringFirst namename stringFull namephone stringMobile phone numberprovince stringProvinceprovince_code stringProvince-codingzip stringPostal codecurrency stringCurrencyemail stringE-mailfirst_name stringLast nameid stringBuyer IDlast_name stringFirst namephone stringMobile phone numberdiscount_codesobject[]
Discount informationamount doubleDiscount amounttitle stringDiscount nametype integer1 : for price Discount- email stringMailbox
- id stringCheckout Token
line_itemsobject[]
Product informationapplied_discountsobject[]
Discount for Product line level applications ;amount stringDiscount amountapplication_type stringDiscount type : discount code , automatic discount , manual discount ;target_selection stringexplicit, ENTITLEDtarget_type stringline_itemtitle stringEvent titlevalue stringDiscount valuevalue_type stringFixed amount , percentagegift_card booleanWei or not for gift cardsgrams doubleWeightline_price doubleRows pricepresentment_title stringCurrent titleprice doublePriceproduct_id stringProduct serial numberpropertiesobject[]
Product attributesname stringAttribute nameshow booleanShow or noturls arrayProperties urlExample: ``value stringAttribute valuequantity integerProduct quantityrequires_shipping booleanShipping or notsku stringProduct code barCodetax_linesobject[]
Tax informationprice doublePricetax_no stringTax numbertitle stringTax nametype stringTax type product_tax item tax , express_tax shipping taxtaxable booleanTax or not?title stringHeadlineuser_id stringUser IDvariant_id stringProduct skuIDvariant_price doubleProduct original price- name stringFirst name
- note stringNotes
note_attributesobject[]
Additional informationname stringNamevalue stringValue- phone stringContact mobile phone number
- phone_area_code stringPhone area codeExample:
86
- presentment_currency stringCurrency
shipping_addressobject
Shipping addressaddress1 stringAddress 2address2 stringAddress 2city stringCitycountry stringCountrycountry_code stringCountry codefirst_name stringLast namelast_name stringFirst namename stringFull namephone stringContact mobile phone numberprovince stringProvinceprovince_code stringProvincial encodingzip stringPostal codeshipping_linesobject[]
Logistics informationcode stringLogistics namedelivery_name stringLogistics namedelivery_seq stringLogistics encodinglogistics_amount doubleShipping amountphone stringPhone- sub_total_price doubleSub total amount
- taxes_included booleanIncl . price
- token stringcheckout token
- total_discount stringTotal discount amount
- total_duties stringTotal duty
- total_price doubleTotal price
- total_tax stringTotal tax amount
- total_weight doubleTotal weight
- update_at stringUpdate time
- user_id stringUser ID
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?