---
title: "Remove locations from a Membership"
method: DELETE
path: "/memberships/{membership_id}/locations"
tags: ["Membership Location"]
---

# Remove locations from a Membership

`DELETE /memberships/{membership_id}/locations`

Remove locations from a Membership.

## Path parameters

- `membership_id` integer, required

## Headers

- `x-api-key` string, required

## Request body

- RequestMembershipLocationsPost — List of Locations to add to a Membership
  - `location_ids` integer[] — List of Location Id&#39;s to add to the Membership

## Response `200`

membership found

- MembershipAPI — full membership info for get_membership_by_id
  - `id` integer, required — Identifies the Membership
  - `client_id` integer, required — Id of the Client that the Membership is for
  - `name` string — Name of the Membership
  - `membership_template_id` integer, required — The Id of the Template used for this Membership
  - `renewed_from_membership_id` integer — The Id of the Membership that this Membership was renewed from
  - `has_been_renewed` boolean — Determines if the Membership has been renewed
  - `location_of_sale_id` integer — Id of the Location that the Membership was sold from
  - `location_of_sale` string — Name of the Location that the Membership was sold from
  - `start_date` string, date — The Membership start date
  - `end_date` string, date — Date that the Membership ends
  - `membership_type_id` integer — Id of the Membership Type
  - `membership_type` string — Name of the Membership Type
  - `attendance_type_id` integer — Id of the Attendance Type. Indicates if the Membership is Limited or Unlimited
  - `attendance_type` string — Name of the Attendance Type
  - `attendance_limit ` integer — Attendance Limit
  - `attendance_limit_frequency` integer — The frequency/number of days that the class attendance limit applies to.
  - `attendance_limit_type_id` integer — Id of the Attendance Limit Type
  - `attendance_limit_type` string — Name of the Attendance Limit Type
  - `number_of_sessions` integer — Number of sessions. Only applicable to Class and Appointment Pack&#39;s
  - `sessions_already_used` integer — Number of sessions already used for the Membership
  - `does_membership_expire` boolean — Determines if the Membership expires. Only appliable to Class and Appointment Packs
  - `expiration_type_id` integer — Id of the Expiration Type
  - `expiration_type` string — Name of the Expiration Type
  - `expiration_length` integer — The Membership Expiration Length
  - `expiration_date` string, date — The Membership Expiration Date
  - `original_expiration_date` string, date — Date on which the Membership originally expired.
  - `revenue_category_id` integer — Id of the Revenue Category for the sale of this Membership
  - `revenue_category` string — Name of the Revenue Category
  - `membership_contract_template_id` integer — Id of the Contract Template for the Membership
  - `contract_name` string — Name of the Contract for the Membership
  - `contract_signed_on_date` string, date-time — Date on which the Contract was signed
  - `tax_rate_id` integer — Id of the Tax Rate that was applied to the Membership
  - `tax_rate_name` string — Name of the Tax Rate
  - `tax_rate` number — Rate of tax
  - `is_absorbing_fees` boolean — Determines if processing fees are absorbed or passed on to the Client
  - `service_id` integer — The Service Id of the Membership for Appointment Packs
  - `service` string — The Service of the Membership for Appointment Packs
  - `service_duration_id` integer — Id of the Duration for the Service on an Appointment Pack Membership
  - `service_duration_hours` integer — The hours of the Service duration for Appointment Pack Memberships
  - `service_duration_minutes` integer — The minutes of the Service duration for Appointment Pack Memberships
  - `allow_rollover` boolean — When true, can use rollover sessions.
  - `rollover_sessions` integer — The count of sessions rolled over from previous membership/limited period. Only applies to limited plan memberships.
  - `max_total_sessions` integer — The maximum number of sessions that can be used in a booking period (attendance limitation + rollover). Only applies to limited plan memberships. When value is 0, no limit exists.
  - `payment_plan` PaymentPlanAPI — Payment Plan Data
    - `id` integer, required — Id of the Payment Plan
    - `payment_plan_template_id` integer — Id of the Template used for the Membership&#39;s Payment Plan
    - `name` string — Name of the Payment Plan
    - `is_auto_renew` boolean — Indicates if the payment schedule auto renews.
    - `auto_renew_stop_date` string, date — Date that auto-renew will end
    - `is_deactivate_user_on_auto_renew_pause_date` boolean — Indicates if the Client will be deactivated when auto-renew stops
    - `billing_day_id` integer — Id of the Billing Day for the Membership
    - `billing_day` string — Billing Day
    - `initial_payment_interval_time_unit_id` integer — Id of the Initial Payment Interval Time Unit
    - `initial_payment_interval_time_unit` string — Name of the Initial Payment Interval Time Unit
    - `initial_payment_interval_length` integer — Length of the Initial payment
    - `initial_commitment_time_unit_id` integer — Id of the Initial Commitment Time Unit
    - `initial_commitment_time_unit` string — Name of the Initial Commitment Time Unit
    - `initial_commitment_length` integer — Initial commitment length
    - `initial_payment_option` PaymentOptionAPI — payment option
      - `id` integer, required — Identifies the payment option.
      - `payment_option_template_id` integer — Id of the Payment Option Template used for this Payment Option
      - `payment_option_type_id` integer — Identifies the payment option type.
      - `payment_option_type` string — Name of the payment option type.
      - `cost` number — Cost.
      - `setup_fee` number — Pre-discount setup fee.
      - `administrative_fee` number — Administrative fees.
      - `tax` number — Pre-discount tax.
      - `total_discount` number — Total discount.
      - `total` number — Pre-discount total.
    - `renewal_interval_time_unit_id` integer — Identifies the renewal payment interval time unit.
    - `renewal_interval_time_unit` string — Name of the renewal payment interval time unit.
    - `renewal_interval_length` integer — Renewal payment interval length.
    - `renewal_commitment_time_unit_id` integer — Identifies the renewal commitment time unit.
    - `renewal_commitment_time_unit` string — Name of the renewal commitment time unit.
    - `renewal_commitment_length` integer — Renewal commitment length.
    - `renewal_payment_option` PaymentOptionAPI — payment option
      - `id` integer, required — Identifies the payment option.
      - `payment_option_template_id` integer — Id of the Payment Option Template used for this Payment Option
      - `payment_option_type_id` integer — Identifies the payment option type.
      - `payment_option_type` string — Name of the payment option type.
      - `cost` number — Cost.
      - `setup_fee` number — Pre-discount setup fee.
      - `administrative_fee` number — Administrative fees.
      - `tax` number — Pre-discount tax.
      - `total_discount` number — Total discount.
      - `total` number — Pre-discount total.
  - `membership_discounts` MembershipDiscountAPI[] — Discounts applied to the Membership
    - `id` integer — Identifies the membership discount.
    - `discount_id` integer — Identifies the discount.
    - `name` string — Name of discount.
    - `discount_type_id` integer — Identifies the discount type.
    - `discount_type` string — Name of discount type.
    - `discount_percentage` number — Discount percentage, if applicable.
    - `discount_flat_amount` number — Discount flat amount, if applicable.
    - `applies_to_initial` boolean — Indicates if the discount can be applied to the initial payment.
    - `applies_to_setup_fee` boolean — Indicates if the discount can be applied to the setup fee.
    - `applies_to_renewal` boolean — Indicates if the discount can be applied to the renewal payment.
  - `membership_holds` MembershipHoldAPI[] — Holds on the Membership
    - `id` integer — MembershipHold Id
    - `start_date` string, date, required — Date on which the hold starts.
    - `end_date` string, date, required — Date on which the hold ends.
    - `hold_reason_id` integer, required — Identifies the hold reason.
    - `hold_reason` string — Hold reason.
    - `hold_length` integer — Length of the hold in days.
  - `programs` MembershipProgamAPI[] — Programs included in the Membership
    - `id` integer — Identifies the Program.
    - `program` string — Name of the Program.
  - `locations` MembershipLocationAPI[] — Locations included in the Membership
    - `id` integer — Identifies the Location.
    - `location` string — Name of the Location.
  - `has_scheduled_deactivation` boolean — Indicates if the membership has a scheduled date to be deactivated
  - `scheduled_deactivation_date` string, date — Date on which a membership has been scheduled to deactivate
  - `is_active` boolean, required — Indicates if the Membership is active
  - `is_deleted` boolean — Indicates if the Membership was deleted
  - `created` Created — Record creation data.
    - `created_by_id` integer — Unique ID of the user that created the record.
    - `created_by` string — Name of the user that created the record.
    - `created_on_datetime` string, date-time — Datetime on which the record was created.
  - `updated` Updated — Update info
    - `updated_by_id` integer — Unique ID of the user that last updated the record.
    - `updated_by` string — Name of the user that most recently updated the record.
    - `updated_on_datetime` string, date-time — Datetime on which the record was last updated.
  - `wodify_validation_result` string — The purpose of this attribute is to save any UserException message, that is, and user friendly message that should be shown to the end user. All methods should have, just like service actions:

---

[API](https://skmtc.net/wodify/apis/leads.md) · [All operations](https://skmtc.net/wodify/apis/leads/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wodify/leads/versions/974500ca0714/schema)
