B2B Edition Webhooks
B2B Edition is BigCommerce’s all-in-one solution that offers enterprise-level B2B functionality to businesses of all types and sizes. It enables business owners to facilitate their B2B operations online and to provide customers with self-service account capabilities and seamless transactions.
This page is a reference for B2B Edition webhooks and it assumes that you’re familiar with webhooks. For a general introduction to webhooks, see Webhooks Overview.
Note: B2B Edition currently does not support storefront channel-specific webhooks.
Creating a webhook
To create a webhook, send a request to the Create a webhook endpoint. You must use a BigCommerce store- or app-level API account to authenticate the request; it does not support the API tokens created in your B2B Edition API Account settings. Your API account must have the B2B Edition scope set to modify.
The following example creates a webhook that subscribes to creation events for Company accounts.
- The
destinationURL must be served on port 443; custom ports are not currently supported. - It can take up to one minute for a newly created webhook to work.
For information on creating a webhook, consult the creating a webhook section of the Webhooks Overview.
Callback structure
For information on webhook callback payload properties, see Webhook Events.
Companies
The following webhooks fire in response to changes to Company account records. You can use them to track new Company account requests across your storefront channels, updates to Company information, or changes in a Company’s activity status.
Company Users
The following webhooks fire in response to changes to Company users. These are B2B customers with a Buyer Portal account connected to a Company. Changes to B2C customers, guest shoppers, and Super Admins do not trigger these webhooks.
Company Addresses
The following webhooks fire in response to changes to addresses saved to Company accounts. Changes to addresses on B2C customer accounts use Customers webhooks instead.
Super Admins
The following webhooks fire in response to changes to Super Admins, sales staff who assist Company users from the Buyer Portal.
Quotes
The following webhooks fire in response to changes to quotes. You can use them to track quote lifecycle events such as creation, updates, status changes, and deletions.