# Charges API

Create and update charges that apply at the property and room level, and setup up different configurations for different dates.

Version: 1.0

## Servers

Test using live endpoint
```
https://supply-xml.booking.com/
```

## Security

### bearerAuth

Bearer token for authentication. Use your API credentials to obtain a token.

Type: http
Scheme: bearer

## Download OpenAPI description

[Charges API](/_bundle/connectivity/docs/openapispecs/charges-api/charges-api-specification.json)

## Charges endpoint

- [GET /charges-api/properties/{propertyId}/charges](/connectivity/docs/openapispecs/charges-api/charges-api-specification/charges-endpoint/getchargesforproperty.md): Retrieve the current charges for a property in format consistent with the creation/update payload.
- [POST /charges-api/properties/{propertyId}/charges](/connectivity/docs/openapispecs/charges-api/charges-api-specification/charges-endpoint/updatechargesforproperty.md): Add or update taxes and fees at the property or room-level.

## Charges meta endpoint

- [GET /charges-api/meta](/connectivity/docs/openapispecs/charges-api/charges-api-specification/charges-meta-endpoint/meta.md): Retrieve a full list of charge types supported by the Charges API. The API returns: Charge type names translated in the specified languageTheir corresponding OTA codesThe charge category each type bel

## About Try it

- [Environment](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/environment.md): ## Environment You can select between two different environments (top right corner in the UI): **Mock (schema only)** (default): - Helps to understand the response data schema - Recommended for all wr
- [Request](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/request.md): ## Request You can click on any unresolved placeholders to add a value or edit an existing placeholder value. The portal loads the default request body. Where the specification supports multiple reque
- [Response](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/response.md): ## Response The Try it feature provides comprehensive response information to the extent supported by the Open API specification:
- [Status code](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/status-code.md): ### Status code - **2xx**: Success responses (200) - **4xx**: Client errors (400 Bad Request, 401 Unauthorized, 404 Not Found) - **5xx**: Server errors (500 Internal Server Error)
- [Response body](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/response-body.md): ### Response body - JSON formatted response data If the returned response, by default, is unformatted, select the supported Response body format in the UI.
- [Response headers](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/response-headers.md): ### Response headers - Content-Type, Content-Length.
- [Environments](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/environments.md): ## Environments The **Environments** tab allows you to create variables specific to the environment. For example, you can add a variable to hold the value of the `property-id` placeholder. The portal 
- [Variables](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/variables.md): ### Variables Most of the endpoints (especially POST/PUT/DELETE) require you to add a path or query parameter before sending the request. The Open API specification marks these parameters with placeho
- [Path parameters](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/path-parameters.md): #### Path parameters - **Required**: Must be provided to make the request - **Type validation**: Ensures correct data types (integer, string, etc.) - **Example**: `propertyId` in `/charges-api/propert
- [Query parameters](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/query-parameters.md): #### Query parameters - **Optional**: Usually have default values - **Example**: `language_code` with `en-us` as the default value
- [Request body](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/request-body.md): #### Request body - **Schema validation**: Follows OpenAPI schema definitions - **Example data**: Prepopulated with sample values
- [Best practices](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/best-practices.md): ## Best practices This section provides some basic practice guidelines.
- [Authentication](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/authentication.md): ### Authentication - Always use separate machine accounts for test properties vs. properties in production. - When testing with production endpoint, make sure to use only test properties.
- [For Read operations (GET)](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/for-read-operations-(get).md): ### For Read operations (GET) - Safe to test in any environment - Use valid IDs that exist in your system - Check response structure for integration planning
- [For Write operations (POST, PUT)](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/for-write-operations-(post-put).md): ### For Write operations (POST, PUT) - **Always use Mock (schema only) environment first** - Verify request payload structure - Check response for success confirmation - Test error scenarios with inva
- [For Delete operations (DELETE)](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/for-delete-operations-(delete).md): ### For Delete operations (DELETE) - **Preferable to use Mock (schema only) environment only** - Understand the operation is irreversible - Have backup data when testing using test properties
- [Troubleshooting](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/troubleshooting.md): ## Troubleshooting
- [Common issues](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/common-issues.md): ### Common issues **401 Unauthorized** - Check authentication credentials - Verify API key is valid and not expired - Ensure credentials match the selected environment **400 Bad Request** - Validate r
- [Getting help](/connectivity/docs/openapispecs/charges-api/charges-api-specification/about-try-it/getting-help.md): ### Getting help If you encounter issues: 1. Check the response error message for details 2. Verify your request matches the API specification 3. Contact the Connectivity Team for support --- _This do
