Create Webhook
POST https://api.ecartapi.com/api/v2/webhooks
Create Woocommerce webhooks with EcartAPI.
Find listed all the available resources for EcartAPI woocommerce Webhooks.
Resource. | Actions. |
---|---|
customers | create update delete |
products | create update delete |
orders | create update delete |
Request Body
{"webhook"=>{"resource"=>"orders", "action"=>"create", "url"=>"https://webhook.site/9fabe058-0fa7-4ee8-8cfd-c7848739ca6a", "auth"=>"Token will be send on the authorization header to the url"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |
RESPONSES
status: OK
{"success":true,"webhook":{"id":"5cffede5c932e70bd00adf56","resource":"products","action":"create","url":"http://example","name":"ecarapi.com","active":true,"createdAt":"2019-06-11 13:07:33"}}