Create Webhook
POST {{baseUrl}}/webhooks
Add webhook to receive events.
Request Body
{"data"=>{"webhook"=>{"webhook_events"=>["PRODUCT_CREATE", "PRODUCT_UPDATE"], "webhook_url"=>"https://myserver.com/send/callback/here"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"api_version":"3.4.0","data":{"kind":"webhook","webhook":{"webhook_created":"1949-10-10T05:22:00.900Z","webhook_created_email":"cashier@prioticket.com","webhook_created_name":"Cashier Name","webhook_events":["ORDER_CREATE","ORDER_CREATE"],"webhook_id":"de1829d0-e144-11ea-bc09-f935c77bef95","webhook_status":"ENABLED","webhook_version":"3.4.0","webhook_url":"https://myserver.com/send/callback/here","webhook_email":"api-notifications@prioticket.dev"}}}