Region Code
Vista Digital Platform (V1)
- application/json
- text/json
- application/*+json
- application/json-patch+json
Member to create
Gets the credentials
Gets the club membership details
Gets a value indicating whether the member accepted the terms and conditions
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members
- cURL
- JavaScript
- Node.js
- application/json
- text/json
- application/*+json
- application/json-patch+json
curl -i -X POST \
https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members \
-H 'Connect-Region-Code: string' \
-H 'Content-Type: application/json' \
-d '{
"credentials": {
"username": "string",
"password": "string",
"pin": "string",
"email": "string"
},
"clubMembership": {
"clubId": 0,
"clubLevelId": 0
},
"personalDetails": {
"name": {
"givenName": "string",
"familyName": "string",
"middleName": "string"
},
"contactDetails": {
"phoneNumbers": [
{
"type": "Home",
"number": "string"
}
],
"address": {
"line1": "60 Khyber Pass Road",
"suburb": "Grafton",
"city": "Auckland",
"state": null,
"postCode": "1023",
"country": "New Zealand"
},
"pushNotificationToken": {
"id": "string",
"type": "Android"
}
},
"interestSubscriptions": [
{
"interestId": 0,
"interestContactMethodIds": [
0
]
}
],
"preferences": {
"sites": {
"pickupSiteId": "string",
"primarySiteId": "string",
"preferredSiteIds": [
"string"
]
},
"genres": {
"preferredGenreIds": [
"string"
]
},
"contact": {
"contactMethods": [
"Sms"
],
"mailerFrequency": "Never",
"allowThirdPartyContact": true
},
"customPreferences": [
{
"customPreferenceId": 0,
"customPreferenceOptionIds": [
0
]
}
],
"languageTag": "en-US",
"allowThirdPartyProfiling": true
},
"birthDate": "2019-08-24T14:15:22Z",
"maritalStatus": "NotSpecified",
"gender": "NotSpecified",
"educationLevelId": 0,
"occupationId": 0,
"householdPersonCount": 0,
"nationalId": "string",
"externalId": "string"
},
"acceptedTermsAndConditions": true,
"authenticationType": "None"
}'Success
Gets the member details entity
Gets the member entity
Gets the date that the membership started
Represents the authentication credentials of a member
Gets the club membership details
Gets the personal details
Gets the name
Gets the contact details
Gets the list of member interest subscription entities
Gets the unique identifier of the interest
Gets the preferences
Gets the site preferences
Gets the genre preferences
Gets the contact preferences
Gets the list of member custom preference entities
Gets the IETF (RFC 4646) language tag
Gets the date of birth, if known
Gets the marital status
Gets the gender
Gets the unique identifier of the education level, if known
Gets the unique identifier of the occupation, if known
Gets the number of people living in the household, if known
Gets the national unique identifier, if known
Gets the list of member card entities
Gets the list of member balance entities
Gets the unique identifier of the balance type
Gets the current available balance type units
Gets the list member balance expiry entities
Gets the list of member friend entities
Gets the name
Gets the subscription sharing details
Gets the related data for the member entity
Gets the list of related balance type entities for the member balance entities
Gets the name text, and its translations
Gets a value indicating whether this is the primary balance type
Gets the name of the balance units
Gets the conversion rate that applies when using balance units for an order member balance payment, if applicable
Gets the related club entity for the member club membership
Gets the name text, and its translations
Gets the related club level entity for the member club membership, if applicable
Gets the list of related custom preference entities for the member custom preference entities
Gets the name text, and its translations
Gets a value indicating the number of options that can be selected by a member
Gets a value indicating whether the quantity is unlimited
Gets the maximum quantity allowed
Gets the related education level entity for the member personal details, if applicable
Gets the list of related loyalty genre entities for the member genre preferences
Gets the name text, and its translations
Gets the list of related interest entities for the member interest subscription entities
Gets the name text, and its translations
Gets the list of related interest contact method entities for the member interest subscription entities
Gets the unique identifier
Gets the name text, and its translations
Gets the related occupation entity for the member personal details, if applicable
Gets the list of related loyalty site entities for the member site preferences
Gets the contact details
Gets the IANA time zone name
Gets the name text, and its translations
Gets a value indicating whether the site has any sellable item entities
Gets the list of related subscription entities for the member subscription entities
Gets the name text, and its translations
Gets the unique identifier of the club
Gets the minimum number of number of months required for the subscription term
{ "memberDetails": { "member": { … }, "relatedData": { … } }, "authenticationToken": { "access_token": "string", "token_type": "Bearer", "expires_in": 0, "refresh_token": "string" } }
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/transactions
- cURL
- JavaScript
- Node.js
curl -i -X GET \
'https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/transactions?limit=50&offset=0' \
-H 'Connect-Region-Code: string' \
-H 'loyaltySessionToken: string'Success
Gets the related data for the member transaction entities
Gets the list of related loyalty site entities
Gets the contact details
Gets the list of phone number entities
Gets the IANA time zone name
Gets the name text, and its translations
Gets the translations of the translatable Text in other languages
Gets a value indicating whether the site has any sellable item entities
Gets the list of related loyalty related film entities
Represents some customer-visible translatable Text in the default language, and a list of translation entities
Gets the translations of the translatable Text in other languages
Gets the list of related loyalty related showtime entities
Gets the list of related loyalty related ticket type entities
Represents some customer-visible translatable Text in the default language, and a list of translation entities
Gets the text in the default language
Gets the translations of the translatable Text in other languages
Gets the IETF (RFC 4646) language tag that the translation Text has been translated for
Gets the list of related loyalty item entities
Gets the name text, and its translations
Gets the translations of the translatable Text in other languages
Gets the list of related balance type entities
Gets the name text, and its translations
Gets the translations of the translatable Text in other languages
Gets a value indicating whether this is the primary balance type
Gets the name of the balance units
Gets the conversion rate that applies when using balance units for an order member balance payment, if applicable
Gets the list of results
Gets the date and time that the transaction was created
Gets the list of member transaction showtime entities
Gets the unique identifier of the loyalty related showtime
Gets the list of member transaction ticket line entities
Gets the list of member transaction item line entities
Gets the list of member transaction balance adjustment entities
Gets the unique identifier of the balance type
Gets the available balance type units after the adjustment
Gets a value indicating whether the adjustment was completed outside of a purchase being made by the member
{ "relatedData": { "sites": [ … ], "films": [ … ], "showtimes": [ … ], "ticketTypes": [ … ], "items": [ … ], "balanceTypes": [ … ] }, "results": [ { … } ], "hasMoreResults": true }
Request
Full personalDetails object from GetMember containing updated values must be sent to this endpoint. If field is not provided then it's considered that it must be cleared.
Note: currently Vista Loyalty doesn't support clearing fields. Also enum fields don't support setting value 0 where it is equivalent of clearing field (e.g. NotSpecified)
- Vista.Ocapi
- application/json
- text/json
- application/*+json
- application/json-patch+json
Member personal details to update
Gets the name
Gets the contact details
Gets the list of phone number entities
Gets the list of member interest subscription entities
Gets the preferences
Gets the site preferences
Gets the unique identifier of the loyalty site used for pickup orders
Gets the unique identifier of the primary loyalty site
Gets the genre preferences
Gets the contact preferences
Gets the list of preferred member contact method entities
Gets the mailer frequency
Gets the list of member custom preference entities
Gets the unique identifier of the custom preference
Gets the marital status
Gets the number of people living in the household, if known
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/personal-details
- cURL
- JavaScript
- Node.js
- application/json
- text/json
- application/*+json
- application/json-patch+json
curl -i -X PUT \
https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/members/current/personal-details \
-H 'Connect-Region-Code: string' \
-H 'Content-Type: application/json' \
-H 'loyaltySessionToken: string' \
-d '{
"name": {
"givenName": "string",
"familyName": "string",
"middleName": "string"
},
"contactDetails": {
"phoneNumbers": [
{
"type": "Home",
"number": "string"
}
],
"address": {
"line1": "60 Khyber Pass Road",
"suburb": "Grafton",
"city": "Auckland",
"state": null,
"postCode": "1023",
"country": "New Zealand"
},
"pushNotificationToken": {
"id": "string",
"type": "Android"
}
},
"interestSubscriptions": [
{
"interestId": 0,
"interestContactMethodIds": [
0
]
}
],
"preferences": {
"sites": {
"pickupSiteId": "string",
"primarySiteId": "string",
"preferredSiteIds": [
"string"
]
},
"genres": {
"preferredGenreIds": [
"string"
]
},
"contact": {
"contactMethods": [
"Sms"
],
"mailerFrequency": "Never",
"allowThirdPartyContact": true
},
"customPreferences": [
{
"customPreferenceId": 0,
"customPreferenceOptionIds": [
0
]
}
],
"languageTag": "en-US",
"allowThirdPartyProfiling": true
},
"birthDate": "2019-08-24T14:15:22Z",
"maritalStatus": "NotSpecified",
"gender": "NotSpecified",
"educationLevelId": 0,
"occupationId": 0,
"householdPersonCount": 0,
"nationalId": "string",
"externalId": "string"
}'