Webhooks allow you to react on your own servers whenever an event occurs on the Reserve In-store servers.
Topic | Description |
reservations/create | When a new reservation is fulfilled by an admin, a customer or a third party system. |
reservations/update | When a new reservation is updated by an admin, a customer or a third party system. |
reservations/delete | When a new reservation is deleted by an admin, a customer or a third party system. |
reservations/fulfilled | When a new reservation is fulfilled by an admin or third party system. |
When your webhook is hit you will receive a POST body containing JSON of the model data. In the case of a reservation, you will get the reservation data (id, customer info, items reserved, etc). Here's how it might look:
{"id": 1,"location_id": 3,"customer": {"name": "John Doe","email": "john.doe@example.com","phone": "1231231231231","instructions": "I'll be there on Monday by 3pm."},"cart": {"items": [{"product_id": "9423387917","variant_id": "34639503181"}]},"fulfilled": false,"created_at": "2019-05-10T18:37:48.260Z","updated_at": "2019-05-10T22:11:50.739Z"}