Webhooks
Receive updates related to your brand or store.
Webhooks are used to automatically send real-time notifications to external systems when specific events occur, such as product updates or order changes. When triggered, BFG sends an HTTP POST request to your configured URL.
When you are subscribed to a BFG webhook, you will receive automatic updates about the following events:
- Products
- Minimum Advertised Price (MAP) policies
- MAP promotions and its products
- Federal firearms licenses and its files
Requirements
To manage webhooks, you must have the following:
- Your bearer key authentication from BFG.
- Manage, view, create, and delete permissions in your API credential. For details, go to Groups and permissions.
- An endpoint that can receive a JSON call or an HTTP POST.
Creating a webhook
- In the sidebar, select Settings.
- On the Settings page, click Webhooks.
- On the All Webhooks page, click Create New.
- On the Create A Webhook page, specify the following:
- Title: Your webhook name.
- URL: Your endpoint.
- Events: The BFG activity or update you want to receive alerts for. You can select multiple events.
- Optionally, if you don't want to activate the webhook immediately, select the Pause checkbox.
- Click Save.
Editing a webhook
- On the All Webhooks page, click Edit in the row of a webhook.
- On the Edit Webhook page, edit the information you want.
- Click Update.
Deleting a webhook
- On the All Webhooks page, select a checkbox of a webhook.
- Click Delete Webhook.
- In the Are you sure? dialog, click Yes.
Updated 3 months ago