Order package creation
Event Group | Event Identification |
---|---|
fulfillments | fulfillments/create |
order package creation
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 (see IOS8601 for the format)Example:
2021-08-18T23:59:59+08:00
- id stringPackage numberExample:
1644828244663
line_itemsobject[]
Product listfulfillable_quantity integerAvailable quantityExample:3
fulfillment_quantity integerShipping quantityExample:1
fulfillment_service stringLogistics business name , if there are multiple different delivery providers in Product , then use separated by ','Example:Sf international
fulfillment_status stringThe shipping status of the product, shipping status, fulfilled-shipped; partial-partially shipped; null-unshipped;Example:fulfilled
gift_card booleanWei or not for gift cardsExample:true
grams doubleWeight ( grams )Example:100
id stringThe ID of the product snapshot table, generated by the system, uniquely confirms a product with the order numberExample:413
name stringSku titleExample:test-002
price stringProduct selling price double type stringExample:8.00
price_setobject
Product selling price , multi-currency informationpresentment_moneyobject
Buyer side amount informationamount stringAmountExample:8.00
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side amount informationamount stringAmountExample:8.00
currency_code stringCurrencyExample:USD
product_id stringSPU serial numberExample:16056761559984840457934011
quantity integerProduct quantityExample:3
requires_shipping booleanShipping or notExample:true
sku stringProduct yardsExample:18056761559987524812644011
tax_linesobject[]
Tax informationprice stringPriceExample:8.00
price_setobject
Multi-currency information of taxpresentment_moneyobject
Buyer side amount informationamount stringAmount , string in double formExample:8.00
currency_code stringCurrencyExample:USD
shop_moneyobject
Sell side amount informationamount stringAmount , string in double formExample:8.00
currency_code stringCurrencyExample:USD
rate doubleTax rateExample:1
title stringTax nameExample:Tax
taxable booleanTax or not?Example:true
title stringProduct titleExample:Beautiful skirt
variant_id stringProduct SKU serial numberExample:18056761559987524812644011
variant_title stringProduct attribute value , multiple divided by " / "Example:155 / red / large
vendor stringSupplierExample:Supplier
- name stringShipping shortExample:
1032-F2
- order_id stringOrder numberExample:
21050224312121887324667162
- shipment_status stringPackage trackingExample:
fulfilled
- status stringLogistics delivery status, success-shipped; cancelled-cancelled;Example:
success
- tracking_company stringLogistics company nameExample:
Sf international
- tracking_number stringThird party tracking numberExample:
yun001
- tracking_url stringLogistics company URLExample:
https://www.sf-international.com/
- updated_at stringUpdate time (see IOS8601 for the format)Example:
2021-08-18T23:59:59+08:00
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?