> This page is optimized for agents. Use the linked Markdown pages and llms.txt indexes for related API content.

# GET AccommodationPriceComponentGroups

> Retrieves accommodation price component groups for a specific organization.
>
> An AccommodationPriceComponentGroup represents a pricing group that can be assigned to accommodations and reservations. Each group can be marked as public for guest visibility, set as the default group, or configured for automatic rate calculations.

- Product: Accommodation price component groups
- Section: Rates
- Snapshot: Current
- Method: `GET`
- Path: `/api/accommodation_price_component_groups/`

## Query parameters

### `include[]`

Type: `string[]`  
Required: no  

Additional (relational) data groups to include in the response

#### string

Type: `string`  
Allowed values: `accommodations`  

### `accommodations[]`

Type: `number[]`  
Required: no  

#### number

Type: `number`  

### `automatic`

Type: `boolean`  
Required: no  

### `archived`

Type: `boolean`  
Required: no  

### `activeAt`

Type: `string`  
Format: `date-time`  
Required: no  

### `organization`

Type: `number`  
Required: yes  

### `accommodation`

Type: `number`  
Required: no  

### `active`

Type: `boolean`  
Required: no  

### `public`

Type: `boolean`  
Required: no  

### `settings`

Type: `boolean`  
Required: no  

## Execute with TypeScript

Package: `@recranet/sdk`  

```ts
import { RecranetApiClient } from "@recranet/sdk";

const client = new RecranetApiClient({ apiKey: process.env.RECRANET_API_KEY! });

const result = await client.accommodationPriceComponentGroups.list({
  organization: 0,
});
```

## Execute with curl

```bash
curl "https://app.recranet.com/api/accommodation_price_component_groups/" \
    -H "X-Api-Key: $RECRANET_API_KEY" \
    --url-query "organization=$ORGANIZATION"
```

## Responses

### Response `200`

Category: success  

Successful response

#### `application/json`

##### Generated example

```json
[
  {
    "id": 0,
    "description": "description",
    "default": true,
    "created": "created",
    "modified": "modified"
  }
]
```

##### Schema

###### AccommodationPriceComponentGroup[]

Type: `AccommodationPriceComponentGroup[]`  

###### AccommodationPriceComponentGroup

Type: `AccommodationPriceComponentGroup`  

###### `id`

Type: `number`  
Required: yes  

###### `description`

Type: `string`  
Required: yes  

###### `default`

Type: `boolean`  
Required: yes  

###### `created`

Type: `string`  
Format: `date-time`  
Required: yes  

###### `modified`

Type: `string`  
Format: `date-time`  
Required: no  

### Response `400`

Category: client-error  

Bad request

#### `application/json`

##### Example

```json
{
  "statusCode": 400,
  "description": "Bad request",
  "errors": [
    "Bad request"
  ]
}
```

##### Schema

###### object

Type: `object`  

## Related representations

- [Human documentation](/accommodation-price-component-groups/methods/list/)
- [TypeScript Markdown](/accommodation-price-component-groups/methods/list.md?lang=typescript)
- [curl Markdown](/accommodation-price-component-groups/methods/list.md?lang=curl)
- [site llms.txt](/llms.txt)
- [product llms.txt](/accommodation-price-component-groups/llms.txt)
- [snapshot llms.txt](/accommodation-price-component-groups/llms.txt)
