Create webhooks
POST https://api.ecartapi.com/api/v2/webhooks
Create a webhook service for get the notification of an resource
Request Body
{"webhook"=>{"action"=>"update", "resource"=>"fulfillments", "url"=>"https://webhook.site/ac56d9f9-9ecf-445e-a8a0-7cd53c0fa2cf"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"success":true,"webhook":{"id":"66606c372629362542f642f3","resource":"orders","action":"create","url":"https://webhook.site/ac56d9f9-9ecf-445e-a8a0-7cd53c0fa2cf","name":"ecartapi.com","active":true,"gdprReference":null,"createdAt":"2024-06-05T13:46:31.808Z"}}