Creating Katana webhooks

Webhooks offer an easy way to receive programmatic notifications from Katana regarding changes to your data as they occur.

Learn more about how Katana webhooks work and what events our [API reference] supports ( or if you're entirely new to webhooks, take a look at this guide.

Create a webhook URL

We recommend setting up a test webhook URL to use while following this guide. You can use several free hosted services to create a temporary endpoint URL, such as

Set up a Katana webhook

Webhook registration request example

curl --request POST \
  --url \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer <Your api key>' \
  --header 'Content-Type: application/json'
  --data '{"url":"",
		"subscribed_events":[ "sales_order.updated"]}'

Response example

HTTP/1.1 200 OK
Content-Type: application/json


Testing events

See how requests are sent to your test URL by triggering an event. In this example, we subscribe to sales order updates.

Update a sales order by either:

  • Changing a sales order directly within the Katana UI. Try writing a comment to "Additional info" -or-
  • Sending a request via API:

Sales order update request example

curl --request PATCH '<your sales order ID>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <Your api key>' \
--data-raw '{