Order creation
Event Group | Event Identification |
---|---|
orders | orders/create |
After the order have been created successfully, you will receive this notification.
For details on how to subscribe to Webhooks and how to respond after receiving a Webhook, please refer to the Webhook overview.
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
- adjust_price stringThe amount discrepancy due to rounding adjustments in POS transactions, expressed in the store currency.Example:
8.00
adjust_price_setobject
The amount discrepancy due to rounding adjustments in POS transactions, displayed in both the buyer's order currency and the store currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
billing_addressobject
The address for sending billing invoices.address1 stringThe first line of the address. This typically includes information such as the street address or a post office box number.Example:Address 1
address2 stringThe second line of the address. This typically includes information such as apartment, suite, or unit number.Example:Address 2
city stringThe city in the address.Example:New York
company stringThe company name of the billing recipient.Example:new company
country stringThe country or region in the address.Example:USA
country_code stringA two-letter country or region code that follows the ISO 3166-1 standard, used to identify a specific country or region in the address. For example,US
.Example:US
first_name stringThe first name of the billing recipient.Example:Tom
last_name stringThe last name of the billing recipient.Example:Washington
name stringThe name of the billing recipient.Example:Tom Washington
phone stringThe phone number of the billing recipient.Example:19872653123
province stringThe province in the address.Example:California
province_code stringThe code for the province in the billing address, which can be a custom code or a two-digit ISO 3166-2 international code.Example:4500006
zip stringThe postal code information of the address.Example:65432
- browser_ip stringMerchant's reason for order cancellation.Example:
157.119.232.35
- buyer_note stringBuyer's message.Example:
Notes
- cancel_reason stringMerchant's reason for order cancellation.Example:
I don't want to buy it.
- cancelled_at stringThe date and time when the order is canceled. Format: ISO 8601.Example:
2024-08-31T02:20:26+08:00
Example:2012-05-01T14:22:25-04:00
- cart_token stringThe unique identifier for shopping cart data.Example:
c2c4a58186b9d96395d7e6b5c2969577
- checkout_id stringAbandoned checkout ID.Example:
2404785166526352972864
- checkout_token stringThe unique identifier for abandoned order data.Example:
c2c4a58186b9d96395d7e6b5c2969577
client_detailsobject
Client details.browser_ip stringBrowser IP.Example:157.119.232.35
session_hash stringMember session encryption information.Example:90c6724a-cf0d-4517-bd61-5c2727c2f886
user_agent stringClient proxy.Example:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Sa
uuid stringThe unique identifier before the user is registered.Example:11111223
companyobject
The buyer's company information.id stringCompany ID.Example:1005619945158043247856
location_id stringLocation ID.Example:3005619945158043247856
tax_registration_id stringTax registration ID.Example:213213
- contract_seq stringSubscription contract ID.Example:
3005619945158043247856
- created_at stringThe date and time when the order was created. Format: ISO 8601.Example:
2024-08-31T02:20:26+08:00
Example:2012-05-01T14:22:25-04:00
credit_limitobject
Credit payment information.credit_limit_currency stringThe currency of the credit payment, same as the store currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
is_credit_limit booleanIndicates whether the order used credit payment.true
: usedfalse
: not used
Example:true
outstanding_credit_limit stringThe total occupied credit amount. Initially equal to thetotal_credit_limit
, it decreases accordingly if there are subsequent actions such as repayments.Example:1.00
total_credit_limit stringThe total credit amount used, indicating how much credit was utilized to pay for this order.Example:1.00
- currency stringSettlement currency of the order. A three-letter currency code that follows the ISO 4217 standard. For example,
USD
.Example:USD
- current_subtotal_price stringThe total amount of the products, calculated as the product of the unit price and quantity, displayed in the store's currency.Example:
8.00
current_subtotal_price_setobject
The total amount of the products, calculated as the product of the unit price and quantity, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
- current_total_discounts stringThe total discount amount, rounded to two decimal places, is the sum of marketing discounts and custom discounts, displayed in the store's currency.Example:
8.00
current_total_discounts_setobject
The total discount amount, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
current_total_duties_setobject
The total customs duties for the products, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
- current_total_price stringThe total order amount, displayed in both the buyer's currency and the store's currency.Example:
8.00
current_total_price_setobject
The total order amount, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
- current_total_tax stringThe total tax amount, displayed in the store's currency.Example:
8.00
current_total_tax_setobject
The total tax amount, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
customerobject
Buyer information.addressesobject
Shipping address.address1 stringThe first line of the address. This typically includes information such as the street address or a post office box number.Example:Address 1
address2 stringThe second line of the address. This typically includes information such as apartment, suite, or unit number.Example:Address 2
city stringThe city in the shipping address.Example:New York
country stringThe country or region in the shipping address.Example:USA
country_code stringA two-letter country or region code that follows the ISO 3166-1 standard, used to identify a specific country or region in the address. For example,US
.Example:US
first_name stringThe buyer's first name.Example:Tom
last_name stringThe buyer's last name.Example:Washington
name stringThe buyer's name.Example:Tom Washington
phone stringThe buyer's phone number.Example:19872334222
province stringThe province in the shipping address.Example:California
province_code stringThe code for the province in the shipping address, which can be a custom code or a two-digit ISO 3166-2 international code.Example:4200006
zip stringThe postal code for the shipping address.Example:510000
area_code stringPhone area code.Example:+86
created_at stringThe date and time when the customer was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00
Example:2022-11-04T10:18:46+00:00
currency stringThe currency used by the buyer to place an order. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
email stringThe buyer's email.Example:test1001@Gmail.com
first_name stringThe buyer's first name.Example:Tom
id stringBuyer ID.Example:4201057495
last_name stringThe buyer's last name.Example:Washington
phone stringBuyer's mobile phone number.Example:19872334222
- customer_locale stringBuyer's country, language code + country name abbreviation.Example:
enCA
Example:enCN
- deduct_member_point_amount stringThe order amount deducted using membership points, displayed in the store's currency.Example:
8.00
deduct_member_point_amount_setobject
The order amount deducted using membership points, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
discount_applicationsobject[]
Discount information.allocation_method stringDiscount range. Valid values are: :across
: Discount based on the total quantity purchased.each
: Discount applied to each individual item separately.
Example: For a purchase of 3 identical items with a discount of 10 units.across
means the 10 units are applied to the total of all 3 items together.each
means 10 units are applied to each individual item.Example:across
code stringDiscount code.Example:1Q3UMQM8RBP5
description stringDetailed description of the activity.Example:Detailed description of the activity
target_selection stringDiscount distribution method for line items. Valid values are:explicit
: discount is assigned to explicitly selected line itemsall
: discount is assigned to all line itemsentitled
: discount is assigned only to line items for which it has permission
Example:explicit
target_type stringDiscount target type. Valid values are:line_item
: discount applied to the productshipping_line
: discount applied to the shipping fee
Example:line_item
title stringThe title of discount activity.Example:Detailed description of the activity
type stringDiscount type. Valid values are:manual
: manual discountautomatic
: automatic discountdiscount_code
: discount applied through a discount code
Example:manual
value stringDiscount value.Example:20
value_type stringThe type of value. Valid values are:fix_amount
: fixed amount discountpercentage
: percentage discount
Example:fixed_amount
discount_codesobject[]
Promo code information.amount stringThe value is rounded to two decimal places.Example:8.00
amount_setobject
The discount amount, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
code stringPromo code.Example:KIN4GNAB2FRH
type stringTypes of discounts. Valid values are:AMOUNT_DISCOUNT
PERCENTAGE_DISCOUNT
FREE_SHIPPING
MARKUP_DISCOUNT
ANY_ N_ITEMS_DISCOUNT
BUNDLE_DISCOUNT
GIFT
FIX_AMOUNT_DISCOUNT
LOWEST_PRICED_ITEM_FREE
BUNDLE_PRICE
NTH_ITEM_DISCOUNT
BUY_X_GET_Y
CUSTOMER_DISCOUNT
Example:Reduction amount
- draft_order_seq stringThe draft order ID.Example:
2506031660544058504339
- email stringBuyer's email.Example:
test1001@Gmail.com
- exist_subscription booleanWhether there exists merchandise within the sales plan.
true
:existsfalse
:do not exist
Example:true
- financial_status stringOrder payment status. Valid values are:
unpaid
: order not paidauthorized
: order payment has been authorized.pending
: order payment in progresspartially_paid
: order partially paidpaid
: order paidpartially_refunded
: order partially refundrefunded
: order refund
Example:unpaid
- fulfillment_status stringShipping status. Valid values are:
fulfilled
: order shippedpartial
: order partially shippednull
: order not shipped
Note: the returned enum value is different from the query enumeration value of the input parameter.Example:fulfilled
fulfillmentsobject[]
A list of fulfillment.created_at stringThe date and time when the fulfillment was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00
Example:2022-11-04T10:18:46+00:00
id stringFulfillment ID.Example:22046737798141702810214336
line_itemsobject[]
A list of product line.attribute stringProduct attributes: name - attribute value. Multiple separated by comma ",". For example,color - red, size - X
.Example:red
bundle_parent_variant_id stringParent product variant ID associated with the bundle child product.Example:18056761559984840457934011
fulfillable_quantity integerThe remaining quantity of products that can be fulfilled at the product line dimension.Example:2
fulfillment_quantity integerThe quantity of products that have been shipped.Example: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. Valid values are:fulfilled
: products shippedpartial
: products partially shippednull
: products not shipped
Example:fulfilled
grams doubleProduct weight, unit: g.Example:100
id stringThe ID of the product snapshot table, generated by the system, uniquely confirms a product with the order number.Example:417
image_url stringProduct picture.Example:https://d2n979dmt31clo.cloudfront.net/image/store/4211449909/1667384795847/63928f08a7174ab2958c6a969
is_bundle booleanwhether the product is a bundle product.Example:true
is_bundle_component booleanwhether the product is a bundle component product.Example:true
location_id stringLocation ID.Example:5327026538935748524
name stringSKU title.Example:testProduct1001
price stringProduct selling price. The value is rounded to two decimal places.Example:8.00
priceSetobject
The product price, displayed in both the store's currency and the buyer's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
product_id stringSPU serial number.Example:16056761559984840457934011
quantity integerQuantity of products in the order.Example:2
requires_shipping booleanIndicates whether the product is subject to shipping.true
:Shipping is required.false
:Shipping is not required.
Example:true
sku stringSKU number.Example:18056761559987524812644011
tax_linesobject[]
List of tax.price stringThe tax amount, displayed in the store's currency.Example:8.00
price_setobject
The tax amount, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
rate doubleTax rate.Example:1
title stringTax name.Example:Tax
taxable booleanIndicates whether the product is taxable.true
: taxablefalse
: not taxable
Example:true
title stringProduct title.Example:Beautiful skirt
variant_id stringProduct SKU serial number.Example:18056761559987524812644011
variant_title stringCommodity attribute value, multiple divided by " / ".Example:155 / red / large
Example:big
vendor stringSupplier.Example:Supplier
order_id stringThe order ID.Example:21056577640603870897253153
shipment_status stringLogistics delivery status. Valid values are:success
: shipment successfulcancelled
: shipment has been canceled
Example:fulfilled
status stringLogistics delivery status. Valid values are:success
: shippedcancelled
: cancelled
Example:success
tracking_company stringLogistics company name.Example:Sf international
tracking_number stringThird-party logistics tracking number.Example:yun0001
tracking_url stringLogistics company URL.Example:https://www.sf-international.com/
updated_at stringThe date and time when the fulfillment was updated. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00
Example:2022-11-04T10:18:46+00:00
- hidden_order booleanIndicate whether it is an archived order. Valid values are:
true
: archived orderfalse
: unarchived order
Example:true
- id stringSystem order number.Example:
21050224312121887324667162
- landing_site stringLanding page.Example:
https://www.url.com
line_itemsobject[]
A list of product line.attribute stringProduct attributes: name - attribute value. Multiple separated by comma ",".Example:color - red, size - X
Example:red
bundle_parent_variant_id stringParent product variant ID associated with the bundle child product.Example:18056761559984840457934011
discount_allocationsobject[]
Discount details.amount stringThe value is rounded to two decimal places.Example:8.00
amount_setobject
The discount amount, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
discount_application_index integerPosition in discount details.Example:1
dutiesobject[]
Tariff information.country_code_of_origin stringCountry code of origin or shipping point.harmonized_system_code stringCustoms code.id stringTariff number.priceobject
Tariff, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
tax_linesobject[]
List of tax.price_setobject
The tax amount, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
rate doubleTax rate.rate_percentage doubleTax rate (percentage value, i.e. rate * 100).title stringTax name.fulfillable_quantity integerThe remaining quantity of products that can be fulfilled at the product line dimension.Example:3
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. Valid values are:fulfilled
: products shippedpartial
: products partially shippednull
: products not shipped
Example:fulfilled
giftCard booleanIndicates whether the product is a gift card item.true
:gift card itemfalse
:not a gift card item
grams doubleProduct weight, unit: g.Example:100
id stringThe ID of the product snapshot table, generated by the system, uniquely confirms a product with the order number.Example:413
image_url stringProduct picture.Example:https://d2n979dmt31clo.cloudfront.net/image/store/4211449909/1667384795847/63928f08a7174ab2958c6a969
is_bundle booleanwhether the product is a bundle product.Example:true
is_bundle_component booleanwhether the product is a bundle component product.Example:true
location_id stringLocation ID.Example:5327026538935748524
name stringSKU title.Example:testProduct1001
price stringProduct selling price. The value is rounded to two decimal places.Example:8.00
product_id stringSPU serial number.Example:16056761559984840457934011
propertiesobject[]
Customize additional fields for products.additional stringCustomize additional fields for products. For example, whenname
is "text",additional
can include attributes like font size, font style, color, etc.Example:Expand
name stringProduct customization information name.Example:Custom properties
type stringTypes of customized product information. Valid values are:text
:text typepicture
:picture typelink
:link type
Example:text
urls arrayProduct customization information link.Example:https://www.url.comhttps://www.url.com
value stringProduct customization information content.Example:Custom properties
quantity integerQuantity of products in the order.Example:1
requires_shipping booleanIndicates whether the product is subject to shipping.true
:Shipping is required.false
:Shipping is not.
Example:true
sku stringSKU number.Example:18056761559987524812644011
tags stringProduct tags, multiple commas separated.Example:watch
tax_linesobject[]
List of tax.price stringThe tax amount, displayed in the store's currency.Example:8.00
price_setobject
The tax amount, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
rate doubleTax rate.Example:1
title stringTax name.Example:Tax
type stringTax fee type, used to distinguish between commodity tax and freight tax. Valid values are:product_tax
: commodity taxshipping_tax
: freight tax
Example:shipping_tax
taxable booleanIndicates whether the product is taxable.true
: taxablefalse
: not taxable
Example:true
title stringProduct title.Example:Beautiful skirt
variant_id stringProduct SKU serial number.Example:18056761559987524812644011
variant_title stringCommodity attribute value, multiple divided by " / ".Example:155 / red / large
Example:big
vendor stringSupplier.Example:Supplier
locationsobject[]
Product location information.location_id stringLocation ID.Example:5327026538935748524
name stringLocation name.Example:US.street
type stringLocation types. Valid values are:posLocation
: The store location where the order was created through the POS channel (it is recommended to useposLocationId
, as it will replace this in the future).pickupLocation
: The store location for pickup when the order's delivery method is self-pickup.productLocation
: The inventory location of the products in the order (it is recommended to use thelocation
information in the product line, as it will be deprecated in the future).
Example:pickupLocation
- name stringOrder number. Different from the order ID, this number can have a custom prefix set in the SHOPLINE Admin.Example:
test1001
- note stringMerchant remark content, multiple separated by commas.Example:
Notes
note_attributesobject[]
Merchant note content.create_time stringThe date and time when the remark was updated. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00
Example:2022-11-04T10:18:46+00:00
name stringRemark source, merchant ID.Example:Note source
value stringRemark content.Example:Notes
- order_at stringThe date and time when the order was completed. Format: ISO 8601.Example:
2024-08-31T02:20:26+08:00
Example:2021-08-16T08:27:57+00:00
- order_source stringThe order source channel.Example:
pos
- order_status_url stringOrder status page URL.Example:
https://shoptest.myshopline.com/trade/thank_you?mainOrderMark=xxx&mainOrderSeq=200565776406008509
payment_detailsobject[]
A list of payment order.create_time stringThe date and time when the payment order was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00
Example:2021-08-16T08:27:57+00:00
pay_amount doublePayment amount.Example:8
pay_channel_deal_id stringPayment serial number: the payment number generated by the payment channel.Example:pi_3MI897Hezv8FxjBO1uGxMPhX
pay_seq stringPayment network payment order number, the unique number request number of the payment order defined internally in SL.Example:23057287797738260472676128
pay_status stringPayment order status. Valid values are:unpaid
: payment order unpaidpending
: payment order in processrisking
: payment order under risk controlpaid
:payment order paidpaid_overtime
: payment order payment timeoutpaid_failed
: payment order failed
Example:unpaid
processed_at stringThe date and time when the payment order was completed. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00
Example:2023-04-12T22:59:52+08:00
status_code stringPayment status code.Example:RISK_PENDING
status_msg stringPayment order status code description.Example:PENDING_REVIEW
- payment_gateway_names arrayPayment method list, payment method list used for this order:
SLpayments
Paypal
Oceanpay
TwoCheckout
AsiaBill
Stripe
Pacypay
WorldPay
COD
CUSTOM
adjustPay
Xendit
XenditOther
Example:Paypal
payment_termsobject
Payment terms.created_at stringThe date and time when the payment term was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00
Example:2024-06-05 08:00:00
due_in_days integerWhen the terms type isNET
, the payment is due after how many days if the payment is not made.Example:2
id stringThe unique identifier for the payment term.Example:6497210673894431747
overdue booleanIndicates whether the payment terms are overdue.true
: overduefalse
: not overdue
Example:true
payment_schedulesobject[]
A set of schedules associated with the payment terms.completed_at stringThe date and time when the payment was completed. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00
Example:2024-06-05 08:00:00
due_at stringExpected payment date. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00
Example:2024-06-05 08:00:00
issued_at stringThe time when the payment terms are triggered. When the type isFIXED
, it is the saved time (if the draft order becomes an order, the order inherits the draft order time); when the type isFULFILLMENT/RECEIPT
, it is the effective time of the condition; when the type isNET
, it is the saved time (if the draft order becomes an order, the order inherits the draft order time).Example:2024-06-05 08:00:00
payment_terms_name stringThe name of the payment terms template used to create the payment terms.Example:Due on receipt
payment_terms_type stringThe type of payment terms template used to create the payment terms. Valid values are:FIXED
: Merchant specified date.FULFILLMENT
: Fulfillment completion date.NET
: Fixed condition date.RECEIPT
: Billing sent date.UNKNOWN
: Unknown type.
Example:RECEIPT
updated_at stringThe date and time when the payment term was updated. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00
Example:2024-06-05 08:00:00
- phone stringBuyer's mobile phone number.Example:
19872334222
- po_number stringPurchase order number recorded on the order in B2B scenarios.
- pos_location_id stringPOS trading location.Example:
5327026538935748524
- presentment_currency stringBuyer side currency.Example:
USD
- processed_at stringThe date and time when the order was completed. Format: ISO 8601.Example:
2024-08-31T02:20:26+08:00
Example:2023-04-12T22:59:52+08:00
- processed_user_id stringOrder creator.Example:
4201057495
- referring_site stringExternal link.Example:
https://www.url.com
refundsobject[]
A list of refund.created_at stringThe date and time when the refund was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00
Example:2021-08-16T08:27:57+00:00
id stringRefund ID.Example:2605659027312156877634
note stringRefund notes.Example:Notes
order_id stringOrder ID.Example:21056577640603870897253153
processed_at stringThe date and time when the refund was updated. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00
Example:2021-08-16T08:27:57+00:00
user_id stringUser ID.Example:4201057495
- serivce stringShipping method type. Valid values are:
Pickup
: pick up in storenull
: not pick up in store
Example:Pickup
shipping_addressobject
Shipping address.address1 stringThe first line of the address. This typically includes information such as the street address or a post office box number.Example:Address 1
address2 stringThe second line of the address. This typically includes information such as apartment, suite, or unit number.Example:Address 2
city stringThe city in the shipping address.Example:New York
company stringThe company name of the recipient.Example:Company
country stringThe country or region in the shipping address.Example:USA
country_code stringA two-letter country or region code that follows the ISO 3166-1 standard, used to identify a specific country or region in the address. For example,US
.Example:US
delivery_store_code stringStore ID.Example:1001
delivery_store_name stringStore name.Example:Store
district stringThe district of the shipping address.Example:Manhattan
district_code stringThe code for the district in the shipping address, custom identifier.Example:NY
first_name stringThe buyer's first name.Example:Tom
last_name stringThe buyer's last name.Example:Washington
latitude stringLatitude of shipping address.Example:23.35773
longitude stringLongitude of shipping address.Example:116.4151
name stringThe buyer's name.Example:Tom Washington
phone stringThe buyer's phone number.Example:13100000000
province stringThe province in the shipping address.Example:California
province_code stringThe code for the province in the shipping address, which can be a custom code or a two-digit ISO 3166-2 international code.Example:4200006
zip stringThe postal code for the shipping address.Example:521000
shipping_linesobject[]
Logistics information.code stringLogistics number.Example:SF534535555324556
discount_allocationsobject[]
Discount details.amount stringDiscount amount. The value is rounded to two decimal places. For example,88.98
.Example:8.00
amount_setobject
The discount amount, rounded to two decimal places, is displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
discount_application_index integerPosition in discount details.Example:1
discounted_price stringDiscount amount. The value is rounded to two decimal places. For example,88.98
.Example:8.00
discounted_price_setobject
Discount amount, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
phone stringPhone number.Example:13100000000
price stringThe shipping fee amount. The value is rounded to two decimal places.Example:8.00
price_setobject
The shipping fee amount, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shipping_price stringThe original freight amount value should be rounded to two decimal places.Example:8.00
source stringLogistics type.Example:SHOPLINE
tax_linesobject[]
The logistics tax information.price stringTax amount, displayed in the store's currency.Example:8.00
price_setobject
The tax amount, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
The value is rounded to two decimal places.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
rate doubleTax rate.Example:1
title stringTax name.Example:Tax
title stringLogistics name.Example:Sf international
- source_identifier stringThe ID used to identify business processing.Example:
-
- source_name stringMarketing referral code when a customer clicks on a link to visit the store. The following URL parameters are supported:
ref
,resource
, orr
. For example, if the URL ismyshopline.com/products/slide?ref=22dd9dctg
, the value is22dd9dctg
.Example:-
- source_url stringAttribution URL, the customer clicks the link and jumps to the online store.Example:
https://www.url.com
- status stringOrder status. Valid values are:
open
: processingcancelled
: cancelled
Example:open
- store_id stringStore ID.Example:
1644828244663
- subtotal_price stringThe total price after product discounts is calculated as the total product price minus discounts and custom discounts, displayed in the store's currency.
subtotal_price_setobject
The total price after product discounts is displayed in both the buyer's currency and the store's currency, calculated as the total product price minus discounts and custom discounts.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
- tags stringOrder label.Example:
watch
tax_linesobject[]
The order tax information.price stringThe order tax amount, displayed in the store's currency.Example:8.00
price_setobject
The order tax amount, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
rate doubleTax rate.Example:1
title stringTax name.Example:Tax
- tax_number stringTIN. Tax identification number.Example:
111111
- tax_type stringTypes of tax ID.Example:
Type
- taxes_included booleanWhether the total amount includes the tax amount.
true
:includingfalse
:not including
Example:true
- total_discounts stringThe total discount amount, rounded to two decimal places, is the sum of marketing discounts and custom discounts, displayed in the store's currency.Example:
8.00
total_discounts_setobject
The total discount amount, rounded to two decimal places, is the sum of marketing discounts and custom discounts, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
- total_line_items_price stringThe total original price of the products, rounded to two decimal places, is displayed in the store's currency.Example:
8.00
total_line_items_price_setobject
The total original price of the products, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
- total_outstanding stringThe total unpaid amount, rounded to two decimal places, is displayed in the store's currency.Example:
8.00
total_outstanding_setobject
The total unpaid amount, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
total_shipping_price_setobject
The total shipping fee for the order, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
- total_tax stringThe total tax amount, rounded to two decimal places, is displayed in the store's currency.Example:
8.00
total_tax_setobject
The total tax amount, displayed in both the buyer's currency and the store's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
- total_tip_received stringThe tip amount, rounded to two decimal places, is displayed in the store's currency.Example:
8.00
total_tip_received_setobject
The tip amount, displayed in both the store's currency and the buyer's currency.presentment_moneyobject
Buyer's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
shop_moneyobject
Store's currency.amount stringThe value is rounded to two decimal places.Example:8.00
currency_code stringA three-letter currency code that follows the ISO 4217 standard. For example,USD
.Example:USD
- total_weight doubleTotal product weight, unit: g.Example:
100
- updated_at stringThe date and time when the order was updated. Format: ISO 8601.Example:
2024-08-31T02:20:26+08:00
Example:2022-11-04T10:18:46+00:00
- user_id stringBuyer ID.Example:
4201057495
- utm_parameters stringAdvertising business specific parameters.Example:
-
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?