> ## Documentation Index
> Fetch the complete documentation index at: https://code.dcycle.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a Catalogue

> The terms of a Dcycle catalogue (refrigerant gases today): each one's id, code and the label to show, in your language

A catalogue is a closed set of values Dcycle owns, such as the refrigerant gases a recharge invoice can bill. Each
**term** has a `code`, the stable value records and files use, and a `label`, the name to show a person, in the
`Accept-Language` language. Show `label` as it comes: Dcycle writes it, and it is never a key to translate.

> [!NOTE]
>
> **Reference data.** A catalogue is global: the same terms for every organization. It changes only with a Dcycle
> release, so fetch it once per session and look codes up locally.

Catalogues available: `refrigerant_gases` (the `refrigerant_fuel_id` of
[`POST /v2/invoices/refrigerants`](https://code.dcycle.io/api-reference/invoices/refrigerants-create-v2) is a term's `id`).

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl "https://api.dcycle.io/v2/catalogues/refrigerant_gases?q=r410" \
  -H "x-api-key: ${DCYCLE_API_KEY}" \
  -H "x-organization-id: ${DCYCLE_ORG_ID}" \
  -H "Accept-Language: es"
```

```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "key": "refrigerant_gases",
  "locale": "es",
  "items": [
    {
      "id": "0c1d0f29-6b9e-4c63-9d0f-1f2a3b4c5d6e",
      "code": "r_410a",
      "label": "R-410A",
      "short_label": null,
      "description": null,
      "attributes": {},
      "selectable": true,
      "replaced_by": null
    }
  ]
}
```

## Request

### Headers

**x-api-key** `string` *required*

Your API key.

**x-organization-id** `string` *required*

Your organization UUID. Required even though the catalogue is global: the key is checked against it.

**Accept-Language** `string`

The language of the labels: `ca`, `de`, `en`, `es`, `fr`, `it` or `pt` (a region such as `es-ES` and weights are
understood). Any other value, or none, answers English. The answer says which one it used in `locale` and in the
`Content-Language` header.

### Path Parameters

**key** `string` *required*

The catalogue: `refrigerant_gases`. Any other value answers `404` `CATALOGUE_NOT_FOUND`.

### Query Parameters

**q** `string`

Only the terms whose label or code contains this text, ignoring case, accents, hyphens, underscores and spaces:
`r410` finds R-410A. At most 100 characters.

**codes** `string`

Only these codes. Repeat the parameter for each code (`?codes=r_410a&codes=hfc_134a`): codes can contain commas.

## Response

**key** `string`

The catalogue.

**locale** `string`

The language of the labels.

**items** `array`

The terms, sorted by `label`.

**term**

**id** `uuid | null`

The id a record's `*_id` field takes (`refrigerant_fuel_id`).

**code** `string`

The term's stable identity (`r_410a`). Never translated.

**label** `string`

What to show: a numbered gas's ASHRAE designation (`R-410A`, `HFC-134a`), a formula or code (`CO₂`, `Halon
            1211`), else the name in the requested language (`Polvo ABC`).

**short\_label** `string | null`

A symbol or abbreviation, when the term has one.

**description** `string | null`

A longer text, when the term has one.

**attributes** `object`

Facts about the term the catalogue declares; empty when none.

**selectable** `boolean`

Whether a new record may take it. A term that is not still appears on the records that have it.

**replaced\_by** `string | null`

The code that replaces a retired term.

## Errors

| Status | `code` | When |
| - | - | - |
| `404` | `CATALOGUE_NOT_FOUND` | `key` is not a catalogue. |

## Related Endpoints

> [card] [Create Refrigerant Invoices](https://code.dcycle.io/api-reference/invoices/refrigerants-create-v2.md)
>
> Send a gas's `id` as `refrigerant_fuel_id`

> [card] [List Refrigerant Gases](https://code.dcycle.io/api-reference/invoices/refrigerant-gases-list.md)
>
> The same gases as `{id, name, code, label}`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.