# Membership Types

Membership Types available at a Location and managed at Chain level.
Response fields keep the legacy name `abonement`. Requests to the earlier
`/loyalty/abonement_types` URLs still work and return the same result.

 - [GET /locations/{location_id}/loyalty/membership_types/fetch](https://developer.alteg.io/en/b2b-v1/openapi/membership-types/get_membership_type_list_by_id.md): A list of **membership types** available at a location can be obtained by querying the location ID and membership type IDs. The list is an array of [membership types](#loyalty-membership-type). ### Ge
 - [GET /locations/{location_id}/loyalty/membership_types/search](https://developer.alteg.io/en/b2b-v1/openapi/membership-types/get_membership_type_list.md): A list of **membership types** available at a location can be obtained by requesting the location ID. The list can be filtered by membership type name by passing the title parameter. Pagination is sup
 - [GET /chains/{chain_id}/loyalty/membership_types](https://developer.alteg.io/en/b2b-v1/openapi/membership-types/chain_loyalty_membership_types_list.md): Retrieves the chain's membership types, one page at a time. By default only active (not archived) types are returned; pass `is_archived=1` to list archived ones. Deleted types are not listed. `meta.to
 - [POST /chains/{chain_id}/loyalty/membership_types](https://developer.alteg.io/en/b2b-v1/openapi/membership-types/chain_loyalty_membership_types_create.md): Creates a membership type at the chain level. Membership types define reusable packages (e.g., "10 visits", "Monthly unlimited") that can be sold at the chain's Locations. Omitted optional fields take
 - [GET /chains/{chain_id}/loyalty/membership_types/{loyalty_membership_type_id}](https://developer.alteg.io/en/b2b-v1/openapi/membership-types/chain_loyalty_membership_types_read.md): Retrieves detailed information about a specific membership type. A deleted type answers `404`. **Note:** Requires chain-level permissions.
 - [PUT /chains/{chain_id}/loyalty/membership_types/{loyalty_membership_type_id}](https://developer.alteg.io/en/b2b-v1/openapi/membership-types/chain_loyalty_membership_types_update.md): Replaces the settings of a membership type. Send the full type: omitted optional fields are reset to their defaults. The request body and the covered-services rules are the same as in Create membershi
 - [DELETE /chains/{chain_id}/loyalty/membership_types/{loyalty_membership_type_id}](https://developer.alteg.io/en/b2b-v1/openapi/membership-types/chain_loyalty_membership_types_delete.md): Deletes a membership type from the chain. The type disappears from List membership types, and Get membership type details answers `404` for it. Only an Altegio super user can restore a deleted type. A
 - [POST /chains/{chain_id}/loyalty/membership_types/{loyalty_membership_type_id}](https://developer.alteg.io/en/b2b-v1/openapi/membership-types/chain_loyalty_membership_types_restore.md): Restores a previously deleted membership type. **Note:** Available only to Altegio super users; a regular Business User receives `403`.
 - [PATCH /chains/{chain_id}/loyalty/membership_types/{loyalty_membership_type_id}](https://developer.alteg.io/en/b2b-v1/openapi/membership-types/chain_loyalty_membership_types_archive.md): Archives or unarchives a membership type. Archived membership types: - Cannot be sold to new clients - Existing active memberships remain functional - Are listed only with `is_archived=1` and cannot
 - [POST /chains/{chain_id}/loyalty/membership_types/{loyalty_membership_type_id}/clone](https://developer.alteg.io/en/b2b-v1/openapi/membership-types/chain_loyalty_membership_types_clone.md): Creates a copy of an existing membership type with a new ID. The cloned membership type will: - Have the same settings (cost, period, services, etc.) - Get a modified title with " (2)" suffix automati
