Skip to main content

Enable Webhook Subscription

POST 

/api/temu/:integration_instance/webhooks/configurations/:event_code/enable

Subscribe the shop to a single TMC event code via bg.tmc.message.update and persist the local mirror row in temu_webhooks.

Path Parameters:

  • integration_instance - Integration instance ID
  • event_code - TMC event code. Either the raw form (e.g. bg.order.created) or the URL-safe triple-dash form (bg---order---created).

Response:

  • data.success
  • data.created - true if a new subscription was created, false if it already existed.
  • data.webhook - The local TemuWebhook row.

Request

Responses

Successful response