Get Customer Account

Get Customer details by ID

Headers

X-API-KEY must be provided when making the request to get a Customer. This authorizes you to access the API.

Request

GET https://book.imin.co/api/v2/customer-accounts/:customerIdentifier

This request must be made Server-side. Otherwise, it would be possible to view the secret API key with a browser.

Response

An example 200 response looks like:

{
  "@context": "https://openactive.io/",
  "@type": "CustomerAccount",
  "@id": "https://book.imin.co/api/v2/customer-accounts/abc",
  "identifier": "abc"
  "customer": {
    "@type": "Person",
    "email": "geoffcapes@example.com",
    "telephone": "020 811 8055",
    "givenName": "Geoff",
    "familyName": "Capes",
    "birthDate": "1970-01-01",
    "gender": "https://schema.org/Female",
    "imin:is13OrOver": true,
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "Raynes Park High School, 46A West Barnes Lane",
      "addressLocality": "New Malden",
      "addressRegion": "London",
      "postalCode": "NW5 3DU",
      "addressCountry": "GB"
    },
    "emergencyContact": {
      "@type": "Person",
      "name": "Ralph Capes",
      "telephone": "020 811 8055"
    }
  },
  // 👇 Optional. These will be included if they have been set
  "accessPass": {
    "@type": "Barcode",
    "text": "ABC123DEF"
  },	
  "entitlement": {
    "@type": "Entitlement",
    "expires": "2021-05-10T10:45:33+00:00",
    "entitlementType": {
      "id": "https://meta.imin.co/v2/globex-broker/entitlements#8dfbad55-fdb5-4479-86a4-b873b18ecff1",
      "type": "Concept",
      "prefLabel": "Adult Resident"
    }
  }
}

Last updated