ClubReady Api

<back to all web services

GetGuestPassTypesRequest

The following routes are available for this service:
GET/club/guest-pass/typesGuest passes available at location.
GetGuestPassTypesRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyquerystringYesApi Key - grants access to resources
StoreIdqueryintegerNoEither StoreId or ChainId is required
ChainIdqueryintegerNoEither StoreId or ChainId is required
RestrictedIdqueryint?No
RestrictedResourceTypequeryRestrictedResourceTypeNo
ApiDtoBase Parameters:
NameParameterData TypeRequiredDescription
ApiKeyformstringNo
StoreIdformint?No
ChainIdformint?No
RestrictedResourceType Enum:
Store
Chain
User
Undefined
GetGuestPassTypesResponse Parameters:
NameParameterData TypeRequiredDescription
GuestPassTypesformList<GuestPassTypeDto>No
GetGuestPassTypesResponseDto Parameters:
NameParameterData TypeRequiredDescription
GuestPassTypesformList<GuestPassTypeDto>No
ApiResponseBase Parameters:
NameParameterData TypeRequiredDescription
SuccessformboolNo
MessageformstringNo
GuestPassTypeDto Parameters:
NameParameterData TypeRequiredDescription
GuestPassTypeIdformintNo
ChainIdformint?No
StoreIdformint?No
PassNameformstringNo
DurationDaysformintNo
ExpirationEditableformboolNo
MaxDurationDaysformintNo
AutoActivateWhenIssuedformboolNo
IssueBarcodeWhenActivatedformboolNo
TagWhenActivatedformstringNo
MaxIssuedCountformintNo
IsDeletedformboolNo
InactiveCountformintNo
ActiveCountformintNo
ExpiredCountformintNo
TotalCountformintNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /club/guest-pass/types HTTP/1.1 
Host: clubready.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	GuestPassTypes: 
	[
		{
			GuestPassTypeId: 0,
			ChainId: 0,
			StoreId: 0,
			PassName: String,
			DurationDays: 0,
			ExpirationEditable: False,
			MaxDurationDays: 0,
			AutoActivateWhenIssued: False,
			IssueBarcodeWhenActivated: False,
			TagWhenActivated: String,
			MaxIssuedCount: 0,
			IsDeleted: False,
			InactiveCount: 0,
			ActiveCount: 0,
			ExpiredCount: 0,
			TotalCount: 0
		}
	],
	Success: False,
	Message: String
}