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 .csv suffix or ?format=csv

HTTP + CSV

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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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"}