Webhooks
Send itsPOS events to your own systems as they happen.
| About | Details |
|---|---|
| What it does | Tells your own systems or a developer's app about sales, refunds, orders, shifts and stock changes as they happen, instead of asking the API again and again. |
| What itsPOS sends | The events you choose (sales, refunds, orders, shifts, stock and label changes, customer erasures, cancelled baskets and no-sales at the tills), with ids, shop codes, amounts and quantities. No customer names or contact details. |
| Where Webhooks keeps it | Wherever your own endpoint is: you choose the address. |
| Set up for | One connection for the whole account. |
| Plan | Part of your plan's webhooks. |
| Who can change it | Owners and admins. Each endpoint has its own signing secret, shown once. |
| When the internet is down | Events wait in itsPOS and are sent again for about two days if your endpoint is down. You can also fetch the last 30 days from the events list. |
If something goes wrong
| What you see | What to do | Who to call |
|---|---|---|
| This address points inside a private network. | Use a public https address. | You can fix this |
| This isn't a valid https address. | Use a full address starting https://. | You can fix this |
| We couldn't find this address. | Check the address is spelled right and its domain is live. | You can fix this |
| Your endpoint's secure connection didn't work. | Check its https certificate is valid and not expired. | You can fix this |
| We couldn't reach your endpoint. | Check your server is running and open to the internet. | You can fix this |
| Your endpoint didn't answer within 15 seconds. | Answer with 2xx straight away and do the work afterwards. | You can fix this |
| Your endpoint answered with a redirect. itsPOS doesn't follow redirects. | Use the final address of your endpoint. | You can fix this |
| Your endpoint said it no longer exists. | Check the address, or remove this endpoint. | You can fix this |
| Your endpoint refused the message. | Check it accepts itsPOS's signature with this endpoint's secret. | You can fix this |
| Your endpoint didn't accept the message. | Check your endpoint's logs for why. | You can fix this |
| Your endpoint had an error. | Check your endpoint's logs. itsPOS tries again. | You can fix this |
Anything else shows "Something went wrong at Webhooks. We've been told." and reaches itsPOS support.
Webhooks tell your own systems, or an app a developer builds for you, about what happens in itsPOS as it happens: a sale, a refund, an order, a closed shift, a stock change. Instead of asking itsPOS again and again, your system gets a message within seconds.
Who can set it up: the owner or an admin, in the back office under Integrations › Webhooks. It is part of the Premier and Enterprise plans.
What itsPOS sends
Only the events you choose for each address, with ids, shop codes, amounts and quantities. No customer names, emails, phone numbers or staff names are ever sent.
How to set it up
- Ask your developer for the address (it starts
https://) where their system receives messages. - Open Integrations › Webhooks and tap Add an endpoint.
- Enter the address, choose the events and the shops, then save.
- Copy the signing secret shown once and give it to your developer. It proves a message came from itsPOS.
- Tap Send a test. Your developer should see the test message arrive.
If something goes wrong
- "This address points inside a private network": itsPOS only sends to public internet addresses. Ask your developer for a public https address.
- Needs attention: your endpoint didn't accept messages for about two days. Fix the endpoint, then tap Retry on the messages, or Resend from a date (up to 3 days back).
- Your developer can also fetch every event of the last 30 days from the events list, so nothing is lost.
When the internet is down
Messages wait in itsPOS and are sent again for about two days.
For your developer
- Messages follow Standard Webhooks: a JSON
POSTwithid,type,version,timestamp,location_idanddata, and the headerswebhook-id,webhook-timestampandwebhook-signature(v1,+ base64 HMAC-SHA256 ofid.timestamp.bodywith the secret's bytes afterwhsec_). Any Standard Webhooks library checks it. During a new secret's first 24 hours, two signatures are sent: accept either. - Answer 2xx within 15 seconds. Redirects are not followed;
410 Gonestops the tries. - The same message may arrive twice: use
webhook-idto spot repeats. - Missed something?
itspos.api.webhooks.events_sincelists the last 30 days with a cursor, with the owner's session or an API key (it sees only what the key may read).