Event GroupEvent Identification
order_transactionsorder_transactions/create
Occurs whenever an order payment is created.
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_time string
    The date and time when the order payment was created. Format: ISO 8601.
    Example: 2024-08-31T02:20:26+08:00
  • pay_amount double
    Payment amount in the store currency. The value is rounded to two decimal places.
  • pay_channel_deal_id string
    Payment serial number generated by the payment channel.
  • pay_seq string
    Payment order number, a unique ID for order payment defined internally by SHOPLINE.
  • pay_status string
    Payment status. Valid values are:
    • unpaid: unpaid
    • pending: payment in process
    • risking: under risk control
    • paid:paid
    • paid_overtime: payment timeout
    • paid_failed: payment failed
  • status_code string
    Payment channel standard status code.
  • status_msg string
    The description of status_code.
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?