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
| Name | Type | Required | Description |
|---|---|---|---|
X-Api-Key | string | no | imin’s API Key for using your API |
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
@id | string | no | URL of the GET Customer Account endpoint for this customer |
identifier | string | no | Customer 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:
- Seller Account has been disconnected.
- Customer details updated in a Seller Account.
- Access Pass updated in a Seller Account.
- Hidden Entitlement change in a Seller Account
- Entitlement removal following rejected Evidence Request
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.