Listening for Events

Your app may need to be notified when specific events occur on a BigCommerce store (for example, when an order is created). Your app can programmatically subscribe to such events via webhooks. We’ll briefly introduce webhooks in this article (for visibility); to take a deeper dive, see Webhooks Overview.

Available webhooks

The following resources have webhooks events available to apps:

Learn more about webhook events.

Creating webhooks

To create a webhook, send a POST request to /stores/{{STORE_HASH}}/v2/hooks.

POST https://api.bigcommerce.com/stores/{{STORE_HASH}}/v2/hooks
X-Auth-Token: {{ACCESS_TOKEN}}
Content-Type: application/json
Accept: application/json

{
  "scope": "store/order/updated",
  "destination": "https://665b65a6.ngrok.io/webhooks",
  "is_active": true
}

Open in Request Runner

Learn more about creating webhooks.

Next steps

Resources

Related articles

Sample apps

Tools

Blog posts