Webhooks
Webhooks tell your system about order changes, so you do not have to ask. We send a signed POST request to your https address.
Add an endpoint
Section titled “Add an endpoint”- Open Settings > API and webhooks.
- Under Webhooks, select Add endpoint.
- Enter the Endpoint URL. It must be a public https address on port 443, such as
https://hooks.yourshop.com/zavomark. Internal and private addresses do not work. - Add a Description if you like.
- Pick the Events.
- Add the endpoint, then Copy secret.
The signing secret is shown once. Use it to check the ZavoMark-Signature header of every delivery. Keep it on your server only. If it leaks, delete the endpoint and add it again.
A webhook needs a key with the orders:read scope on your workspace.
Events
Section titled “Events”| Event | When |
|---|---|
order.status_changed |
An order changes status |
order.shipped |
An order ships, or gets a new tracking number |
order.needs_action |
An order needs you: design check, address issue or label needed |
Creating an order sends no event. The answer to your request is the confirmation.
Retries and the log
Section titled “Retries and the log”If your server does not answer with a success code, we try again after 1, 2, 4, 8 minutes and so on, up to 8 tries. Open Deliveries for an endpoint to see each delivery, its HTTP code and the number of tries. You can have up to 10 endpoints.
Reference
Section titled “Reference”Payload examples and how to verify the signature are in the API reference.