Event GroupEvent Identification
order_attributionorder_attribution/create
The order message is sent after the conversion information has been calculated. Please note that in rare cases, due to large data volumes or network delays, SHOPLINE may recalculate the order conversion attribution information. After recalculation, the order will be pushed again.
Request Headers
  • X-Shopline-Topic string required
    Event operation identification
    Example: orders/edited
  • X-Shopline-Hmac-Sha256 string required
    Signature
    Example: XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
  • X-Shopline-Shop-Domain string required
    Shop domain
    Example: shophub.myshopline.com
  • X-Shopline-Shop-Id string required
    Shop ID
    Example: 1610418123456
  • X-Shopline-Merchant-Id string required
    Merchant ID
    Example: 2000001234
  • X-Shopline-API-Version string required
    Version
    Example: v20210901
  • X-Shopline-Webhook-Id string required
    Message ID
    Example: b54557e48a5fbf7d70bcd043
Request Body
  • actionType string
    Event type, currently only supports: create
    Example: create
  • firstInteractRefererUrl string
    The first interaction source URL within 30 days before completing an order. Users entering your store from different off-site platforms or by clicking on different ads will have an interaction.
    Example: www.facebook.com
  • firstInteractSource string
    The first interaction source name within 30 days before completing an order.
    Example: Direct
  • firstInteractTime string
    The time (recorded in UTC+8:00) when the user generated the first interaction within 30 days before completing an order.
    Example: 2023-05-23T20:53:25.199
  • firstInteractUrl string
    The user generates the first interactive landing page URL within 30 days before placing an order.
    Example: www.facebook.com
  • isOffline string
    Identifies whether it is offline data.
    Example: false
  • key string
    Message distribution key.
    Example: 21059478554517401789150705
  • lastInteractRefererUrl string
    The last interaction source URL within 30 days before completing an order. Users entering your store from different off-site platforms or by clicking on different ads will have an interaction.
    Example: www.facebook.com
  • lastInteractSource string
    The last interaction source name within 30 days before completing an order.
    Example: Direct
  • lastInteractTime string
    The time (recorded in UTC+8:00) when the user generated the last interaction within 30 days before completing an order.
    Example: 2023-05-23T20:53:25.199
  • lastInteractUrl string
    The user generates the last interactive landing page URL within 30 days before placing an order.
    Example: www.facebook.com
  • orderSeq string
    Order id.
    Example: 21059478554517401789150705
  • storeId string
    store id.
    Example: 1637826610248
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?