Event GroupEvent Identification
themesthemes/publish
Occurs whenever a theme is successfully published.
Request Headers
  • X-Shopline-Topic string required
    The unique identifier for the event.
    Example: orders/edited
  • X-Shopline-Hmac-Sha256 string required
    The 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 required
    The store domain.
    Example: example.myshopline.com
  • X-Shopline-Shop-Id string required
    The store ID.
    Example: 1610418123456
  • X-Shopline-Merchant-Id string required
    The merchant ID.
    Example: 2000001234
  • X-Shopline-API-Version string required
    The API version.
    Example: v20250601
  • X-Shopline-Webhook-Id string required
    The ID of this Webhook event.
    Example: b54557e48a5fbf7d70bcd043
Request Body
  • create_at string
    The creation time of the theme. Format: ISO 8601.
    Example: 2022-07-19T13:12:26+0800
  • eventType string
    The theme event type. Always returns PUBLISH, meaning a theme is published.
  • id string
    The unique ID of the theme.
    Example: 619f3dd6f7742b5a41db32b1
  • name string
    The name of the theme.
    Example: Arise
  • original_theme_id string
    If the theme is the default installed theme or downloaded from the theme shop, returns the unique ID of the corresponding official theme; otherwise returns null.
    Example: 612f228e9286d074924cf9ad
  • role string
    The status of the theme. Valid values are:
    • published: Published theme
    • unpublished: Unpublished theme
    • development: Theme in development
  • store_id string
    The unique ID of the store.
    Example: 11234567891
  • theme_type_version string
    The version identifier of the theme.
    Example: 2.1
  • update_at string
    The update time of the theme. Format: ISO 8601.
    Example: 2022-07-19T13:12:26+0800
Status Codes
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?