| GET | /club/guest-pass/types | Guest passes available at location. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| XForwardedFor | header | string | No | IP address of the end user |
| ApiKey | query | string | Yes | Api Key - grants access to resources |
| StoreId | query | integer | No | Either StoreId or ChainId is required |
| ChainId | query | integer | No | Either StoreId or ChainId is required |
| RestrictedId | query | int? | No | |
| RestrictedResourceType | query | RestrictedResourceType | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ApiKey | form | string | No | |
| StoreId | form | int? | No | |
| ChainId | form | int? | No |
| Store | |
| Chain | |
| User | |
| Undefined |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| GuestPassTypes | form | List<GuestPassTypeDto> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| GuestPassTypes | form | List<GuestPassTypeDto> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Success | form | bool | No | |
| Message | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| GuestPassTypeId | form | int | No | |
| ChainId | form | int? | No | |
| StoreId | form | int? | No | |
| PassName | form | string | No | |
| DurationDays | form | int | No | |
| ExpirationEditable | form | bool | No | |
| MaxDurationDays | form | int | No | |
| AutoActivateWhenIssued | form | bool | No | |
| IssueBarcodeWhenActivated | form | bool | No | |
| TagWhenActivated | form | string | No | |
| MaxIssuedCount | form | int | No | |
| IsDeleted | form | bool | No | |
| InactiveCount | form | int | No | |
| ActiveCount | form | int | No | |
| ExpiredCount | form | int | No | |
| TotalCount | form | int | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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: www.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
}