## Get a service

`GET /v1/catalog-services/:id`

Returns a single catalog service by identifier, together with its catalog sections and catalog properties.

The response contains more fields than the [list](./list.md): in addition to the reduced set, it returns the symbolic code, external code, sort order, VAT rate, texts, images, and catalog properties of the form `propertyNNN`.

## Parameters

| Parameter | Type | Required | Description |
|----------|-----|:-----:|---------|
| `id` (path) | number | yes | Service identifier. List: [`GET /v1/catalog-services`](./list.md) |

## Examples

### curl — personal key

```bash
curl "https://vibecode.bitrix24.com/v1/catalog-services/7233" \
  -H "X-Api-Key: YOUR_API_KEY"
```

### curl — OAuth application

```bash
curl "https://vibecode.bitrix24.com/v1/catalog-services/7233" \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -H "Authorization: Bearer USER_SESSION_TOKEN"
```

### JavaScript — personal key

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/catalog-services/7233', {
  headers: {
    'X-Api-Key': 'YOUR_API_KEY',
  },
})

const { success, data } = await res.json()
console.log('Service:', data.name, 'section:', data.iblockSectionId)
```

### JavaScript — OAuth application

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/catalog-services/7233', {
  headers: {
    'X-Api-Key': 'YOUR_APP_KEY',
    'Authorization': 'Bearer USER_SESSION_TOKEN',
  },
})

const { success, data } = await res.json()
```

## Response fields

| Field | Type | Description |
|------|-----|---------|
| `success` | boolean | Always `true` on success |
| `data` | object | Service object. All fields — see [Service fields](./fields.md) |

On top of the fields the list returns, a single record contains:

- `code` — symbolic code
- `xmlId` — external code. If it was not set on creation, it contains the service `id` as a string
- `sort` — sort order
- `vatId` — VAT rate ID. List: [`GET /v1/catalog-vat-rates`](/docs/entities/catalog-vat-rates/list)
- `previewText`, `detailText`, `previewTextType`, `detailTextType` — texts and their format
- `previewPicture`, `detailPicture` — images
- `iblockSection` — an array of IDs of all catalog sections the service belongs to
- catalog properties of the form `propertyNNN`, where `NNN` is the property `id` from [`GET /v1/catalog-product-properties`](/docs/entities/catalog-product-properties/list). An empty property is returned as `null`, a filled string property as an object `{ value, valueId }`

Fields with an empty value are returned as `null`.

## Response example

The main fields are shown.

```json
{
  "success": true,
  "data": {
    "id": 7233,
    "iblockId": 25,
    "iblockSectionId": 281,
    "iblockSection": [281],
    "name": "Air conditioner cleaning",
    "type": 7,
    "active": true,
    "available": false,
    "code": "cleaning",
    "xmlId": "7233",
    "sort": 200,
    "measure": 9,
    "vatId": null,
    "vatIncluded": true,
    "previewText": "Filter and heat exchanger cleaning",
    "previewTextType": "text",
    "detailText": null,
    "detailTextType": "text",
    "previewPicture": null,
    "detailPicture": null,
    "property295": "N",
    "property301": null,
    "createdBy": 1295,
    "modifiedBy": 1295,
    "dateCreate": "2026-10-08T20:51:00.000Z",
    "timestampX": "2026-10-08T20:51:00.000Z"
  }
}
```

## Error response example

404 — no service with this `id` exists:

```json
{
  "success": false,
  "error": {
    "code": "ENTITY_NOT_FOUND",
    "message": "service does not exist."
  }
}
```

## Errors

| HTTP | Code | Description |
|------|-----|---------|
| 404 | `ENTITY_NOT_FOUND` | No record with the specified `id` exists (`service does not exist.`) |
| 404 | `ENTITY_NOT_FOUND` | A record with the specified `id` exists but is not a service — for example, a regular catalog product (`catalogService <id> not found`) |
| 400 | `INVALID_PARAMS` | `id` is not a non-negative integer (`id must be a non-negative integer`) |
| 403 | `SCOPE_DENIED` | The API key lacks the `catalog` scope |
| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not passed |

Full list of common API errors — [Errors](/docs/errors).

## Known specifics

**`iblockSection` is returned only in the single-record response.** The array of the service's sections is present in the `GET /v1/catalog-services/:id` response, while the list and search reject this name in `select` with `400 SELECT_FIELD_NOT_RETURNED`. In the list, read the main section from `iblockSectionId`.

## See also

- [Create a service](/docs/entities/catalog-services/create)
- [Update a service](/docs/entities/catalog-services/update)
- [Delete a service](/docs/entities/catalog-services/delete)
- [List services](/docs/entities/catalog-services/list)
- [Service fields](/docs/entities/catalog-services/fields)
- [Catalog product properties](/docs/entities/catalog-product-properties)
- [API reference](/docs/api-reference)
