Order updated
| Event Group | Event Identification |
|---|---|
| orders | orders/updated |
Occurs whenever an order is updated.
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - X-Shopline-Topic string requiredThe unique identifier for the event.Example:
orders/edited - X-Shopline-Hmac-Sha256 string requiredThe signature of the request. Upon receiving the request, you must verify the signature to confirm the authenticity and integrity of the data.Example:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM= - X-Shopline-Shop-Domain string requiredThe store domain.Example:
example.myshopline.com - X-Shopline-Shop-Id string requiredThe store ID.Example:
1610418123456 - X-Shopline-Merchant-Id string requiredThe merchant ID.Example:
2000001234 - X-Shopline-API-Version string requiredThe API version.Example:
v20250601 - X-Shopline-Webhook-Id string requiredThe ID of this Webhook event.Example:
b54557e48a5fbf7d70bcd043
Request Body
- adjust_price stringThe amount discrepancy due to rounding adjustments in POS transactions, expressed in the store currency.
adjust_price_setobject
The amount discrepancy due to rounding adjustments in POS transactions, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.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.address2 stringThe second line of the address. This typically includes information such as apartment, suite, or unit number.city stringThe city in the address.company stringThe company name of the billing recipient.country stringThe country or region in the address.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.Example:USfirst_name stringThe first name of the billing recipient.last_name stringThe last name of the billing recipient.name stringThe full name of the billing recipient.phone stringThe phone number of the billing recipient.province stringThe province in the address.province_code stringThe code for the province or region in the address, automatically generated by the system.standard_province_code stringThe code for the province or region in an address, represented by the last two or three characters of the ISO 3166-2 standard, such asRIorENG.zip stringThe postal code information of the address.- browser_ip stringThe IP address of the customer's browser used during order placement.
- buyer_note stringBuyer's message.
- cancel_reason stringMerchant's reason for cancellation.
- cancelled_at stringThe date and time when the order was canceled. Format: ISO 8601.Example:
2024-08-31T02:20:26+08:00 - cart_token stringThe unique identifier for shopping cart data.
- checkout_id stringAbandoned checkout ID.
- checkout_token stringThe unique identifier for abandoned checkout data. After a customer initiates the checkout process, an abandoned checkout is generated.
client_detailsobject
Client details.browser_ip stringThe IP address of the customer's browser used during order placement.session_hash stringMember session encrypted information.user_agent stringUser agent.uuid stringThe customer's client-side ID, provided by SHOPLINE.companyobject
The buyer's company information as presented at the time the order was placed.id stringCompany ID.location_id stringLocation ID.tax_registration_id stringTax registration ID.- created_at stringThe date and time when the order was created. Format: ISO 8601.Example:
2024-08-31T02:20:26+08: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.is_credit_limit booleanIndicates whether the order used credit payment.true: usedfalse: not used
outstanding_credit_limit stringThe current occupied credit amount, initially equal tototal_credit_limit. This value decreases with actions like repayments.total_credit_limit stringThe total credit amount used to pay for this order.- currency stringThe transaction currency. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard.Example:
USD - current_subtotal_price stringThe total amount of products, calculated by multiplying the unit price by the quantity and displayed in the store currency.
current_subtotal_price_setobject
The total amount of products, calculated by multiplying the unit price by the quantity and displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.- current_total_discounts stringThe total discount amount in the store currency. It is calculated by adding marketing discounts and custom discounts, with the resulting amount rounded to two decimal places.
current_total_discounts_setobject
The total discount amount displayed in both the buyer currency and the store currency. It is calculated by adding marketing discounts and custom discounts, with the resulting amount rounded to two decimal places.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.current_total_duties_setobject
The total customs duties for the products, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.- current_total_price stringThe total order amount, displayed in the store currency.
current_total_price_setobject
The total order amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.- current_total_tax stringThe total tax amount, displayed in the store currency.
current_total_tax_setobject
The total tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.customerobject
Buyer information.addressesobject
Buyer address information.address1 stringThe first line of the address. This typically includes information such as the street address or a post office box number.address2 stringThe second line of the address. This typically includes information such as apartment, suite, or unit number.city stringThe city in the address.country stringThe country or region in the address.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.Example:USfirst_name stringThe first name of the buyer.last_name stringThe last name of the buyer.name stringThe full name of the buyer.phone stringThe phone number of the buyer.province stringThe province in the address.province_code stringThe code for the province or region in the address, automatically generated by the system.zip stringThe postal code information of the address.area_code stringThe international dialing code for the buyer's phone number.created_at stringThe date and time when the buyer information was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00currency stringA three-letter currency code that follows the ISO 4217 standard.email stringThe email of the buyer.first_name stringThe first name of the buyer.id stringBuyer's ID.last_name stringThe last name of the buyer.phone stringThe phone number of the buyer.- customer_locale stringFormed by combining a language code (ISO 639) with a country or region code (ISO 3166-1), for example,
enUS.Only the country or region code is returned if language information is unavailable, for example,US. - deduct_member_point_amount stringThe amount deducted from the order using member points, displayed in the store currency and rounded to two decimal places.
deduct_member_point_amount_setobject
The amount deducted from the order using member points, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.discount_applicationsobject[]
Discount information.allocation_method stringThe discount scope. Valid values are:across: The discount is applied to the total product amount.each: The discount is applied to each product individually.
For example, for a purchase of three identical products with a discount amountvalueof 10 dollars. If theallocation_methodisacross, the total amount of the three products is reduced by 10 dollars. If theallocation_methodiseach, the amount of each product is individually reduced by 10 dollars.code stringDiscount code.description stringCustom discount description.target_selection stringDiscount allocation method for line items. Valid values are:explicit: The discount is allocated only to the explicitly specified line items.all: The discount is allocated to all line items.entitled: The discount is allocated only to the line items that are entitled to use the discount.
target_type stringDiscount target type. Valid values are:line_item: discount applied to the productshipping_line: discount applied to the shipping fee
title stringAutomatic discount title.type stringDiscount type. Valid values are:manual: manual discountautomatic: automatic discountdiscount_code: discount applied through a discount code
value stringThe specific value of the discount, in the store currency.- When
value_typeisfix_amount, this field value represents a specific discount amount. For example, if the value is10and the store currency is USD, it means a discount of 10 dollars. - When
value_typeispercentage, the value of this field represents a specific discount percentage. For example,10means 10% off of the order amount.
value_type stringThe type of discount value. Valid values are:fix_amount: Fixed amount discount. For example, ifvalueis10in USD, it means a discount of 10 dollars.percentage: Percentage-based discount. For example, ifvalueis10, it means 10% off of the order amount.
discount_codesobject[]
A list of promo code information.amount stringDiscount amount in the store currency. The value is rounded to two decimal places.amount_setobject
The discount amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.code stringPromo code.type stringType of discount. Valid values are:减金额: amount reduction打折: offer a discount免运费: free shipping加价品: add-on purchase deal任意N件优惠价: discount for purchasing any N itemsA+B组合优惠价: discount for purchasing the product A and B combo赠品: free gift固定售价: fixed price最低价商品免费: lowest-priced product free打包价: package price第N件打折: discount on the Nth item买x送y: buy x and get y free自定义: custom discount
DEPRECATED: The returned enum values are in Chinese. This parameter is deprecated from API version v20250601.- email stringBuyer's email.
- financial_status stringOrder payment status. Valid values are:
unpaid: order not paidauthorized: order payment has been authorizedpending: order payment in progresspartially_paid: order partially paidpaid: order paidpartially_refunded: order partially refundedrefunded: order refunded
- fulfillment_status stringShipping status. Valid values are:
fulfilled: order shippedpartial: order partially shippednull: order not shipped
fulfillmentsobject[]
A list of fulfillment information.created_at stringThe date and time when the fulfillment was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00id stringFulfillment ID.line_itemsobject[]
Product list.attribute stringThe option information of the product variant, composed of the variant name and the option value.Example:color - redfulfillable_quantity integerThe remaining quantity of the product that can be shipped.fulfillment_quantity integerThe quantity of products that are actually shipped.fulfillment_service stringLogistics company name.fulfillment_status stringShipping status. Valid values are:fulfilled: order shippedpartial: order partially shippednull: order not shipped
grams doubleThe weight of the product in grams(g).id stringThe ID of the line item snapshot table, generated by the system. Combined with the order ID, it uniquely identifies a line item.image_url stringThe URL address that stores the product image.location_id stringThe unique ID of the pickup location.name stringSKU title, same astitle.price stringThe product price in the store currency. The value is rounded to two decimal places.price_setobject
The product price, displayed in both the store currency and the buyer currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.product_id stringThe unique identifier for the product corresponding to the variant.quantity integerQuantity of products in the order.requires_shipping booleanIndicates whether the product is subject to shipping.true: Shipping is required.false: Shipping is not required.
sku stringThe product SKU.tax_linesobject[]
Tax information.price stringThe title for the tax description, for display only.price_setobject
The tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.rate doubleThe tax rate as a decimal value, rounded to four decimal places. For example, a 2% tax rate is represented as0.0200. This field value is for display only.title stringTax name.taxable booleanWhether the product is subject to tax.true: Tax is required.false: No tax is required.
title stringProduct title.variant_id stringThe unique identifier for the variant.variant_title stringProduct variant value. Multiple values are separated by/.vendor stringSupplier.name stringFulfillment code.order_id stringOrder number.shipment_status stringFulfillment shipping status. Valid values are:out_for_delivery: out for deliverydelivered: deliveredfaliure: delivery failedpicked_up: picked up
status stringFulfillment status. Valid values are:success: shipment dispatchedcancelled: shipment canceled
tracking_company stringLogistics service provider.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_list.tracking_info_listobject[]
A list of tracking information.tracking_company stringLogistics service provider.tracking_number stringThe tracking number provided by the logistics service provider.tracking_url stringThe domain name of the logistics company.tracking_number stringThe delivery tracking number provided by the logistics service provider.DEPRECATED:This parameter is deprecated from API version v20250601. Refer totracking_info_list.tracking_url stringThe domain name of the logistics company.DEPRECATED: This parameter is deprecated from API version v20250601. Refer totracking_info_list.updated_at stringThe date and time when the fulfillment was updated. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00- hidden_order booleanIndicates whether it is an archived order.
true: archived orderfalse: unarchived order
- id stringOrder ID, a system-defined number.
line_itemsobject[]
A list of order product snapshots.attribute stringThe option information of the product variant, composed of the variant name and the option value.Example:color - reddiscount_allocationsobject[]
The discount amount, displayed in both the buyer currency and the store currency.amount stringThe discount amount. The value is rounded to two decimal places.amount_setobject
The discount amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.discount_application_index integerThe position of the discount applied to the product within thediscount_applicationslist.dutiesobject[]
A list of duty information.country_code_of_origin stringCountry or region code indicating the place of origin or shipping origin. Format: ISO 3166-1.Example:USharmonized_system_code stringHarmonized system code, used to categorize a product in international trade.id stringTariff number.priceobject
The duty amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.tax_linesobject[]
A list of tax information.price_setobject
The tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.Example:8.88shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.rate doubleThe tax rate as a decimal value, rounded to four decimal places. For example, a 2% tax rate is represented as0.0200. This field value is for display only.rate_percentage doubleThe tax rate as a percentage numerical value, rounded to two decimal places. For example, a 2% tax rate is represented as2.00. This field value is for display only.title stringThe title for the tax description, for display only.fulfillable_quantity integerThe remaining quantity of the product that can be shipped.fulfillment_service stringLogistics company name.fulfillment_status stringShipping status. Valid values are:fulfilled: order shippedpartial: order partially shippednull: order not shipped
gift_card booleanWhether the product is a gift card.true: gift cardfalse: not a gift card
grams doubleThe weight of the product in grams(g).id stringThe ID of the line item snapshot table, generated by the system. Combined with the order ID, it uniquely identifies a line item.image_url stringThe URL address that stores the product image.location_id stringLocal delivery location number or standard delivery location number.name stringSKU title, same astitle.price stringThe product price in the store currency. The value is rounded to two decimal places.price_setobject
The product price, displayed in both the store currency and the buyer currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.product_id stringThe unique identifier for the product corresponding to the variant.propertiesobject[]
A list of product customization information.additional stringAdditional custom fields for products. For example, ifnameistext,additionalcan include attributes such as font size, font style, and color.name stringCustom attribute name.type stringCustom information type. Valid values are:text: text typepicture: picture typelink: hyperlink type
urls arrayURL list.
Iftypeispicture, thumbnails are retrieved via theurlsvalues.
Iftypeislink, the hyperlink is the first URL in theurlsvalues.value stringCustom attribute value.quantity integerQuantity of products in the order.requires_shipping booleanIndicates whether the product is subject to shipping.true: Shipping is required.false: Shipping is not required.
sku stringThe product SKU.tags stringProduct tags. Multiple tags are separated by commas.tax_linesobject[]
Tax details list.price stringTax in the store currency. The value is rounded to two decimal places.price_setobject
The tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.rate doubleThe tax rate as a decimal value, rounded to four decimal places. For example, a 2% tax rate is represented as0.0200. This field value is for display only.title stringThe title for the tax description, for display only.type stringTax type. Valid values are:product_tax: product taxshipping_tax: shipping tax
taxable booleanWhether the product is subject to tax.true: Tax is required.false: No tax is required.
title stringProduct title.variant_id stringThe unique identifier for the variant.variant_title stringProduct variant value. Multiple values are separated by/.vendor stringSupplier.locationsobject[]
A list of product pickup location addresses.location_id stringUnique code of the pickup location.name stringPickup location name.type stringLocation type. Valid values are:posLocation: The store location where this order was created through the POS channel. It is recommended to usepos_location_id, as this field will be deprecated.pickupLocation: When the order's fulfillment method is self-pickup, this indicates the store location for pickup.productLocation: The inventory location of the items in the order. It is recommended to use thelocation_idinformation in the line items, as this field will be deprecated.
- name stringStore custom order number, starting from 1001. You can set a prefix for this value, such as
test1001. - note stringMerchant notes.
note_attributesobject[]
A list of merchant note logs.name stringMerchant ID, indicating the note source.value stringNotes.- order_source stringThe order source channel handle. The handle is a semantic identifier.
- order_status_url stringOrder status page URL.
payment_detailsobject[]
A list of order payment information.create_time stringThe date and time when the payment was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00pay_amount doublePayment amount in the store currency. The value is rounded to two decimal places.pay_channel_deal_id stringPayment serial number from the external channel.pay_seq stringPayment order number.pay_status stringPayment status. Valid values are:unpaid: unpaidpending: payment in processrisking: under risk controlpaid:paidpaid_overtime: payment timeoutpaid_failed: payment failed
status_code stringPayment gateway standard status code.status_msg stringThe description ofstatus_code.- payment_gateway_names arrayPayment method list. Valid values are:
SLpaymentsPaypalOceanpayTwoCheckoutAsiaBillStripePacypayWorldPayCODCUSTOMadjustPayXenditXenditOther
payment_termsobject
Payment terms and payment information.created_at stringThe date and time when the payment terms were created.Format: ISO 8601.Example:2024-08-31T02:20:26+08:00due_in_days integerThe number of days between the invoice date and the due date, as defined in the selected payment terms template. Provided when thepayment_terms_typeisNET.id stringThe unique identifier for the payment terms.overdue booleanIndicates whether the payment terms have expired.true: Expiredfalse: Not expired
payment_schedulesobject[]
A set of schedules associated with the payment terms.completed_at stringThe date and time when the payment completion is recorded.due_at stringThe date and time when the payment terms are due.
When the value ofpayment_terms_typeisFIXED,due_atmust have a value.
When the value ofpayment_terms_typeisNET, the value ofdue_atis equal toissued_atplusdue_in_days.
When the value ofpayment_terms_typeisFULFILLMENT, it has a value only when the order is shipped.issued_at stringThe date and time when the payment terms take effect.
When the value ofpayment_terms_typeisFIXED, ifissued_atis empty, thenissued_atequalsdue_at.
When the value ofpayment_terms_typeisNET,issued_atmust have a value.
When the value ofpayment_terms_typeisFULFILLMENT, it has a value only when the order is shipped.
When the value ofpayment_terms_typeisRECEIPT, it has a value only when the invoice is sent.Example:2024-08-31T02:20:26+08:00payment_terms_name stringThe name of the payment terms template used to create the payment terms.payment_terms_type stringThe type of payment terms template used to create the payment terms. Valid values are:FIXED: Full payment by the specified date.FULFILLMENT: Full payment when the order is fulfilled.RECEIPT: Full payment when the invoice is sent.NET: NET.
updated_at stringThe date and time when the payment terms were last updated.Format: ISO 8601.Example:2024-08-31T02:20:26+08:00- phone stringBuyer's mobile phone number.
- po_number stringPurchase order number for a B2B order.
- pos_location_id stringPOS trading location ID.
- presentment_currency stringBuyer currency, the same as the store currency. A three-letter currency code that follows the ISO 4217 standard.Example:
USD - processed_user_id stringThe ID of the order creator.
refundsobject[]
Refund list.created_at stringThe date and time when the refund was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00id stringRefund ID.note stringMerchant's refund notes.order_id stringOrder number.refund_line_itemsobject[]
A list of refund details for each item line.id stringRefund order number.line_item_id stringThe ID of the line item snapshot table, generated by the system. Combined with the order ID, it uniquely identifies a line item.quantity stringThe quantity of refunded products.restock_type stringInventory return type. Valid values are:no_restock: not returnedcancel: canceledreturn: returned
subtotal stringThe total amount of the refund in the store currency. It is calculated as the product of the unit price and quantity.subtotal_setobject
The total amount of the refund displayed in both the buyer currency and the store currency. It is calculated as the product of the unit price and quantity.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.total_tax_setobject
The total tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.user_id stringBuyer ID.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.address2 stringThe second line of the address. This typically includes information such as apartment, suite, or unit number.city stringThe city in the address.company stringThe company name of the recipient.country stringThe country or region in the address.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.delivery_store_code stringStore code for the "Deliver to Store" delivery method in Taiwan.delivery_store_name stringStore name for the "Deliver to Store" delivery method in Taiwan.district stringThe district in the address.district_code stringThe district code in the address.first_name stringThe first name of the recipient.last_name stringThe last name of the recipient.latitude stringThe latitude where the address is located.longitude stringThe longitude where the address is located.name stringThe full name of the recipient.phone stringThe phone number of the recipient.province stringThe province in the shipping address.province_code stringThe code for the province or region in the address, automatically generated by the system.standard_province_code stringThe code for the province or region in an address, represented by the last two or three characters of the ISO 3166-2 standard, such asRIorENG.zip stringThe postal code information of the address.shipping_linesobject[]
A list of shipping fees.code stringOnly local delivery shipping methods will return a value, displayed asLocal delivery.discount_allocationsobject[]
A list of discount details.amount stringThe discount amount in the store currency. The value is rounded to two decimal places.amount_setobject
The discount amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.discount_application_index integerThe position of the discount applied to the product within thediscount_applicationslist.discounted_price stringDiscount amount. The value is rounded to two decimal places and displayed in the store currency.discounted_price_setobject
The discount amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.phone stringThe phone number of the buyer.price stringThe shipping fee amount in the store currency. The value is rounded to two decimal places.price_setobject
The shipping fee amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.shipping_price stringThe original shipping fee in the store currency, excluding any discounts. The value is rounded to two decimal places.source stringLogistics carrier type. Valid values are:Shipper: Shipper logisticsOneship: Oneship logisticsApi: logistics carriers added via open API capabilitiesnull: system logistics or custom logistics
tax_linesobject[]
A list of tax information.price stringTax in the store currency. The value is rounded to two decimal places.price_setobject
The tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.rate doubleThe tax rate as a decimal value, rounded to four decimal places. For example, a 2% tax rate is represented as0.0200. This field value is for display only.title stringTax name.title stringLogistics company name.- status stringOrder status. Valid values are:
open: order in processcancelled: order canceled
- store_id stringStore ID.
- subtotal_price stringThe final price after discounts, calculated as the total product price minus any marketing discounts and custom discounts. The amount is displayed in the store currency.
subtotal_price_setobject
The final price after discounts, calculated as the total product price minus any marketing discounts and custom discounts. This field contains amounts displayed in both the buyer and store currencies.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.- tags stringOrder tags.
tax_linesobject[]
A list of tax information.price stringTax in the store currency. The value is rounded to two decimal places.price_setobject
The tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.rate doubleThe tax rate as a decimal value, rounded to four decimal places. For example, a 2% tax rate is represented as0.0200. This field value is for display only.title stringThe title for the tax description, for display only.- tax_number stringTax ID.
- tax_type stringThe type of tax applicable to the order. Valid values are:
product_tax: product taxshipping_tax: shipping tax
- taxes_included booleanIndicates whether this order includes taxes.
true: including taxesfalse: excluding taxes
- total_discounts stringThe total order discount, calculated as the sum of marketing discounts and custom discounts. The amount is rounded to two decimal places and displayed in the store currency.DEPRECATED:This parameter is deprecated from API version v20210901.Example:
3.25 total_discounts_setobject
The total order discount, calculated as the sum of marketing discounts and custom discounts. This field contains amounts displayed in both the buyer and store currencies.DEPRECATED:This parameter is deprecated from API version v20210901.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.- total_line_items_price stringThe total original price of the products, rounded to two decimal places and displayed in the store currency.
total_line_items_price_setobject
The total original price of the products, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.- total_outstanding stringThe total unpaid amount in the store currency. The value is rounded to two decimal places.
total_outstanding_setobject
Unpaid amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.total_shipping_price_setobject
The total shipping fee for the order, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.- total_tax stringThe total tax amount in the store currency. The value is rounded to two decimal places.
total_tax_setobject
The total tax amount, displayed in both the buyer currency and the store currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.- total_tip_received stringThe tip amount in the store currency. The value is rounded to two decimal places.
total_tip_received_setobject
The tip amount, displayed in both the store currency and the buyer currency.presentment_moneyobject
The amount displayed to the buyer.amount stringThe monetary value, rounded to two decimal places.shop_moneyobject
The amount recorded by the merchant.amount stringThe monetary value, rounded to two decimal places.- total_weight doubleThe total weight of products in grams(g).
- updated_at stringThe date and time when the order was updated. Format:ISO 8601.Example:
2024-08-31T02:20:26+08:00 - user_id stringBuyer ID.
Status Codes
After receiving a webhook notification from SHOPLINE, you must respond with the following format:
HTTP/1.1 200 OKFor more information about how to subscribe to webhooks and webhook response rules, refer to Webhook overview.
Was this article helpful to you?