{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/mindbody/refs/heads/main/json-schema/public-api-v6-membership-schema.json", "title": "Membership", "description": "Implementation of the 'Membership' model.", "type": "object", "properties": { "MembershipId": { "type": "integer", "format": "int32", "description": "The membership id.", "example": 123456 }, "MembershipName": { "type": "string", "description": "The membership name.", "example": "example-value" }, "Priority": { "type": "integer", "format": "int32", "description": "The priority/sort order.", "example": 1 }, "MemberRetailDiscount": { "type": "number", "format": "double", "description": "The membership discount for retail as a percentage.", "example": 1.0 }, "MemberServiceDiscount": { "type": "number", "format": "double", "description": "The membership discount for services as a percentage.", "example": 1.0 }, "AllowClientsToScheduleUnpaid": { "type": "boolean", "description": "Allow clients in this membership to schedule unpaid.", "example": true }, "OnlineBookingRestrictedToMembersOnly": { "type": "array", "items": { "$ref": "#/components/schemas/ProgramMembership" }, "description": "List of programs that are restricted to clients in this membership only.", "example": [ {} ] }, "DayOfMonthSchedulingOpensForNextMonth": { "type": "integer", "format": "int32", "description": "Day of month scheduling opens for next month. Unrestricted is a null value.", "example": 1 }, "RestrictSelfSignInToMembersOnly": { "type": "boolean", "description": "Restrict self sign in to members only.", "example": true }, "AllowMembersToBookAppointmentsWithoutPaying": { "type": "boolean", "description": "Allow members to book appointments without paying.", "example": true }, "AllowMembersToPurchaseNonMembersServices": { "type": "boolean", "description": "Allow members to purchase non-members services.", "example": true }, "AllowMembersToPurchaseNonMembersProducts": { "type": "boolean", "description": "Allow members to purchase non-members products.", "example": true }, "IsActive": { "type": "boolean", "description": "Indicates if the membership is active.", "example": true }, "EarlyAccessDaysBeforeSchedulingWindow": { "type": "integer", "format": "int32", "description": "Number of days before the scheduling window that members with this membership get early access.", "example": 1 } } }