---
title: "DeleteRatePlan"
method: POST
path: "/DeleteRatePlan"
tags: ["Content"]
---

# DeleteRatePlan

`POST /DeleteRatePlan`

## Request

- Base URL: `https://api.your-ota.com/cloudbeds`
- URL: `https://api.your-ota.com/cloudbeds/DeleteRatePlan`
- Auth: API key in query parameter `shared_secret`

Delete rateplan after it has been deleted on Cloudbeds.

## Request body

- object
  - `mya_property_id` integer, required: Property ID on the Cloudbeds channel manager
  - `ota_property_id` string, required: Username, login or property ID on the OTA
  - `ota_property_password` string, required: Password for property on your OTA. In case the OTA does not use passwords this will be an empty string.
  - `ota_property_sub_id` string, required: Property ID on the OTA, if OTA supports multiple properties under one `ota_property_id`/`ota_property_password` combination. See `GetSubProperties` for more details.
  - `guid` string, required: Request reference ID, used for debugging and support requests.
  - `shared_secret` string, required: Authentication between the OTA and the channel. Identical for all requests. Not to be shared with customers.
  - `ota_cid` string, required: OTA ID as given by Cloudbeds
  - `rateplan` object, required: Rate plan to delete
    - `mya_rate_id` integer, required: Rate plan ID on the Cloudbeds channel manager.
  - `verb` 'DeleteRatePlan', required

## Response `200`

DeleteRatePlan

- ResponseSimple
  - `errors` object[]: Array of error objects. Required when `success` is `false`.
    - `id` integer, required: Error code. Check the "Error Codes" section of the specification for valid codes.
    - `msg` string: Optional error string to give more details about the error. Myallocator localises errors into different languages, so this field is generally ignored and only useful for debugging.
  - `success` true | false, required

---

[API](https://skmtc.dev/cloudbeds/apis/cloudbeds-ota-build-to-us-api.md) - [All operations](https://skmtc.dev/cloudbeds/apis/cloudbeds-ota-build-to-us-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudbeds/apis/cloudbeds-ota-build-to-us-api/revisions/baef9c11c34d?raw)
