Retrieve the memberships associated with classes

This API helps you to retrieve the memberships that have a benefit associated with the specified class.

You must provide the appropriate details in the API request for the search_type and item_ids parameters. Optionally, you can also specify the required details in the API request for several other parameters to filter the search results in the API response. Refer to the Request Parameters table for more information.

Response Details

NameTypeDescription
errorobjectObject that contains error message and error code details. For more information, refer to the error Object table.
membershipsobjectObject that contains detailed information on the various memberships that have a benefit associated with the specified class. For more information, refer to the memberships Object table.
page_detailsobjectObject that contains the number of search results in the API response, number of pages of search results, and number of search results displayed per page.

memberships Object

NameTypeDescription
idguidUnique 32-character identifier of the membership that has a benefit associated with the class.
version_idguidUnique 32-character identifier of the version of the membership.
typeenumType of the membership.
namestringName of the membership.
price_detailsobjectObject that contains detailed information on the various price elements of the membership. For more information, refer to the price_details Object table.
can_bookbooleanIndicates whether the membership can be booked.
show_pricebooleanIndicates whether the price of the membership is to be displayed.
display_namestringName of the membership that is displayed.
display_priceintPrice of the membership that is displayed.
image_pathsdictionary?Name-value pairs of membership images that contain pixel sizes and location respectively.
is_recurrring_membershipbooleanIndicates whether the membership is a recurring one.
membership_typeintType of membership: 0-Non-recurring, 1-Recurring, and 2-Setup.
first_collection_afterintNumber of days after which the first collection occurs.
descriptionstringDescription of the membership.
description_htmlstringDescription of the membership that contains HTML elements.
terms_and_conditionsstringText that contains terms and conditions of the membership.
terms_and_conditionsAcceptancestringAcceptance text of the terms and conditions.
enforce_mandatory_fieldsbooleanEnforce mandatory fields in the membership.
frequency_textstringIn days or months - the frequency of the payment in case of a recurring membership.

price_details Object

NameTypeDescription
currency_codeintUnique identifier of the currency used to buy the membership.
currency_symbolstringSymbol of the currency used to buy the membership.
sale_pricedoubleSales price of the membership.
sale_taxdoubleSale tax on the price of the membership.
final_pricedoubleFinal price of the membership.

error Object

codemessage
503 - MissingInputSearch Type is not provided. (Hint: 0: Class, 1: Category, 2: Center).
502 - InvalidInputSearch Type is invalid. (Hint: 0: Class, 1: Category, 2: Center).
503 - MissingInputItem Ids list is not provided.
404 - ObjectNotFoundNo Data found.
506 - IOException Something went wrong.Message: "exception_message", StackTrace: "exception_stacktrace".
Language
Credentials
Header
Click Try It! to start a request and see the response here!