Login / Sign Up

Scheme User Connection Packet

The holidaymaker™ app surfaces have the ability to request user information from various sources. This works out of the box as part of the holidaymaker CMS where you can setup ‘people schemes’ with a single shared password, or manage individual users yourself. This also has the option for the holidaymaker CMS to make requests to an external system. This can be bespoke client by client and is often used for owner login, or gym membership login.

This login process can normally send two pieces of data, but can be expanded to more in the future. The security of this is usually decided upon how much personal information could be gained from the login. For example:

  • email and postcode – Easy login process which can then gate owners content for example owners FAQs, Forms, and Offers
  • full user/email and password – More complex user management and login, however would  be more secure if the users QR code can be used for gym gate access, or to have individual owner specific offers or details.

The app only requires a few pieces of data to then confirm who the user is, however once logged in the app will need to do background refresh logins to ensure validity of the user. This means the received information should then also include a userHash to then be able to authenticate the user without us needing to store a raw password the user entered.

The endpoint you provide can also return various different user levels. For example you may have a gold, silver, and bronze membership. The user logins with the same button and enters the same credentials, however you can then return the specific key so the app can then filter the correct content for their user level.

The user login and hash are required in the packet, but there are also several optional pieces of information you can provide:

  • Reference – This is simply rendered in the app, and can also be used to automatically construct QR Code data
  • Expiry – An expiry date can be provided to the app automatically logs someone out, or our web service would return a login error. This can be used for owners who may have a set contract, or memberships which require renewal
  • Site – If you have a multi site/park install then you can specific which park this user should be associated with so the app will auto select the correct one, rather than asking the user to then choose a park after login.
  • Key – This is only used if you wish to return different user levels – eg a tiered membership or similar
  • QR Data – If you wish to have a QR Code render you can choose to send explicit data to render as a QR instead of it auto generating using a mask and the reference number. This is only needed if the QR data cannot be constructed using the reference number.

Structure

{
  "userName": "Frank",
  "userLogin": "email@emaildomain.co.uk",
  "userHash": "11223344aabbccdd",
  "userReference": "AABB1122",
  "userExpiry": "2029-09-01",
  "site": "park-two",
  "key": "scheme_123",
  "qrData": "~9LAA11BB22ZZXX"
}

Properties

userName

Type : String - Optional

This is used as a greeting to the end user in the app surfaces. If missing then a default can be used eg 'User', 'Owner' etc

userLogin

Type : String - Required

The identifier used to attempt background login refreshes. This is commonly the users email address, but could be something different depending on what data is used to login a user in the first place.

userHash

Type : String - Required

The hash used to attempt background logins refreshes. For privacy reasons we would not store a raw version of a users password, so if a username/email and password login is used, then you should return us some kind of hash or token so we can make background refreshes with the userLogin.

userReference

Type : String - Optional

Optional user reference which will then render in the app. This can also be used as part of the users QR code, and printed details of the user scheme in the app.

userExpiry

Type : Date String - Optional

Optional expiry date for user schemes which require renewal, or may have a set contract length. Our system will send an error back to the app if this date is in the past when a background refresh is done which will force logout the user. As a fallback the app also stores this date, so if it cannot make a background refresh, but this date is in the past it will also force logout itself.

qrData

Type : String - Optional

Optional QR Code data to render in the app. This is also setup in the holidaymaker CMS and can instead be automatically constructed using the sent user reference. This is only really needed if the QR code data is different than the user reference.

site

Type : String - Optional

For multi-park installs, you should also include the groupsite key within the user packet. This is so the app can automatically select the park for the user when logging in.

key

Type : String - Optional

This is an optional key if the login could return a variety of different user levels. The key returned would be defined by holidaymaker first for example if a single login request is made but could return a gold member (eg scheme_123) or a silver member (eg scheme_456)

Required Type Definitions

Date String - Reveal

If a date is sent as a readable string we use the format YYYY-MM-DD

{
  "arrival": "2023-09-09",
  "validUntil": "2024-02-28"
}

String - Reveal

Standard JSON String - Often will have certain characters escaped depending what system is writing the JSON packet, however our parser only requires to have double quotes (") escaped. UTF-8 encoding is our standard, but others may be accepted if required. If line breaks are required in the text then the Rich Text / Multiline String type is used instead.

{
  "key1": "A string value",
  "key2": "Another string with an some \"quotes\" that need escaping",
  "arrayOfStrings": [
    "Item one as a string",
    "Item two as a string",
    "Item three as a string",
  ] 
}

Full Packet Example

{
  "userName": "Frank",
  "userLogin": "email@emaildomain.co.uk",
  "userHash": "11223344aabbccdd",
  "userReference": "AABB1122",
  "userExpiry": "2029-09-01",
  "site": "park-two",
  "key": "scheme_123",
  "qrData": "~9LAA11BB22ZZXX"
}

Data Changes

01/01/1970 - Scheme User Connection Packet