Logo
Ecartapi.com Public API Documentation

Webhook

POST https://api.ecartapi.com/api/v2/webhooks

Request to create new webhooks

 

Body PARAM

Key Datatype Required Description 



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" } }



Curl
curl -X POST 'https://api.ecartapi.com/api/v2/webhooks' -H 'Authorization: access_token' -H 'Content-Type: application/json' -d '{"webhook":{"resource":"orders","action":"create","url":"https://webhook.site/9fabe058-0fa7-4ee8","auth":"Token will be send on the authorization header to the url"}}'

ENDPOINTS