This request must be made Server-side. Otherwise, it would be possible to view the secret API key with a browser.
{
"@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"
}
}
}