Post Webhook Create
POST {{baseUrl}}/webhook.create.json?entity=<string>&action=<string>&callback=<string>&label=<string>&fields=<string>&active=<boolean>&store_id=<string>
Create webhook on the store and subscribe to it.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
entity | string | Specify the entity that you want to enable webhooks for (e.g product, order, customer, category) | |
action | string | Specify what action (event) will trigger the webhook (e.g add, delete, or update) | |
callback | string | Callback where the webhook should send the POST request when the event occurs | |
label | string | The name you give to the webhook | |
fields | string | Fields the webhook should send | |
active | string | Webhook status | |
store_id | string | Defines store id where the webhook should be assigned |