Checkouts creation
Event Group | Event Identification |
---|---|
checkouts | checkouts/create |
Triggered when the settlement page is created
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 on other applications on single stageamount 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
Billing 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 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 stringCurrency
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 stringFull nameemail stringMailboxfirst_name stringLast nameid stringBuyer IDlast_name stringFirst namephone stringMobile phone numberdiscount_codesobject[]
Discount informationamount doubleDiscount amounttitle stringDiscount nametype integerDiscount type 1 = indicate 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 discounttarget_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 Product titleprice doubleSelling priceproduct_id stringProduct serial numberpropertiesobject[]
Product attributesname stringAttribute nameshow booleanShow or noturls arrayProperties urlExample: ``value stringAttribute valuequantity integerProduct quantityrequires_shipping booleanRequest shipping or notsku stringProduct code barCodetax_linesobject[]
Tax informationprice doubleTax pricetax_no stringTax numbertitle stringTax nametype stringExpress_tax shipping tax , product_tax merchandise taxtaxable booleanTax or not?title stringHeadlineuser_id stringUser IDvariant_id stringProduct SKU serial numbervariant_price doubleProduct original price- name stringName
- note stringNotes
note_attributesobject[]
Additional informationname stringNamevalue stringValue- phone stringMobile phone number
- phone_area_code stringCell phone no .Example:
86
- presentment_currency stringCurrent currency
shipping_addressobject
Shipping 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 codeshipping_linesobject[]
Shipping informationcode stringShipping method namedelivery_name stringShipping method namedelivery_seq stringShipping methodlogistics_amount doubleShipping amountphone stringPhone- sub_total_price doubleSub total
- taxes_included booleanIncl . or not
- token stringcheckout token
- total_discount doubleTotal discount amount
- total_duties stringTotal duty
- total_price doubleTotal price
- total_tax doubleTotal 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?