Skip to content
cuppa.

Tutorial

Automate provisioning with webhooks.

Your server receives an event, finds the booking or employee by reference, and updates that record. The handler should be safe to run twice.

Code and responses on this page are illustrative. They show the shape of an integration. Confirm the production schema in your Cuppa account before you ship.

A small handler

Verify the event is one you expect, persist it, then update status and installation details if they are included. Return a success once the event is stored. A later retry with the same fulfilment id should not send a second email or create a second row.

What not to do in the handler

Do not provision a replacement eSIM because a status was delayed. Do not trust a reference you did not create. If you cannot match the reference, store the event and alert a person.