Skip to content

Webhooks

Auth Set-up

To ensure that a webhook is being called by imin, we’ll set up an API key that imin will use to call your API.

We’ll pre-arrange this API key and then use it in our webhooks.

Please only allow calls with the known API Key.

Customer Detail Change

POST https://yourapihere.com/path/of/your/choosing

Headers

NameTypeRequiredDescription
X-Api-Keystringnoimin’s API Key for using your API

Body parameters

NameTypeRequiredDescription
@idstringnoURL of the GET Customer Account endpoint for this customer
identifierstringnoCustomer Identifier

Response 204 — Webhook has been successfully received

Example request:

{
"@context": "https://openactive.io/",
"@type": "CustomerAccount",
"@id": "https://book.imin.co/api/v2/customer-accounts/abc",
"identifier": "abc"
}

This webhook will be called in the following cases:

When this webhook is received, call Get Customer Account in order to find out what has changed. A single webhook can indicate any number of the changes listed above, so it is recommended that all notifications are processed every time a webhook is received.