Get all Membership Advanced Booking Rules

This API returns the full list of membership-based advance booking rules configured for the organization. Used by the "Advance Booking Windows" admin settings page to populate the "Previously Added Rules" table.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Response Details

GetMembershipAdvancedBookingRulesResponse

Json propertyData typeDescription
membership_advance_booking_rulesListList of membership advance booking rules configured for the organization.
errorAPIV2ErrorModelError details. Returns null when the request succeeds.

MembershipAdvanceBookingRule

Json propertyData typeDescription
rule_idGuidUnique identifier of the booking rule.
membership_idGuidUnique identifier of the membership associated with the rule.
membership_namestringName of the membership.
advance_booking_daysintNumber of days in advance that members can book the configured classes or amenities.
itemsListClasses or amenities associated with the rule.

MembershipAdvanceBookingRuleItem

Json propertyData typeDescription
idstringUnique identifier of the class or amenity.
namestringName of the class or amenity.
typeBookingRulesItemTypeIndicates whether the item is a class or amenity.

APIV2ErrorModel

Json propertyData typeDescription
codestringError code indicating the type of failure.
messagestringDescription of the error.

BookingRulesItemType

ValueNameDescription
0ClassItem represents a class.
1AmenityItem represents an amenity.
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/plain