## Get a basket item property

`GET /v1/basket-item-properties/:id`

Retrieves a basket item property by ID to check its value before updating or deleting it.

## Parameters

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` (path) | number | yes | Property ID. Source: [`GET /v1/basket-item-properties`](/docs/entities/basket-item-properties/list) |
| `select` (query) | string | no | Comma-separated fields. Only selected fields remain in `data`. Fields: [`GET /v1/basket-item-properties/fields`](/docs/entities/basket-item-properties/fields) |

## Examples

### curl — personal key

```bash
curl "https://vibecode.bitrix24.com/v1/basket-item-properties/1007" \
  -H "X-Api-Key: YOUR_API_KEY"
```

### curl — OAuth application

```bash
curl "https://vibecode.bitrix24.com/v1/basket-item-properties/1007" \
  -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/basket-item-properties/1007', {
  headers: {
    'X-Api-Key': 'YOUR_API_KEY',
  },
})

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

### JavaScript — OAuth application

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/basket-item-properties/1007', {
  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 | Basket item property |
| `data.id` | number | Property ID. Source: [`GET /v1/basket-item-properties`](/docs/entities/basket-item-properties/list) |
| `data.basketId` | number | Basket item ID. Source: [`GET /v1/basket-items`](/docs/entities/basket-items/list) |
| `data.name` | string | Property name |
| `data.value` | string \| null | Property value |
| `data.code` | string \| null | Property symbolic code |
| `data.sort` | number | Sort order of the property within the item |
| `data.xmlId` | string \| null | External ID |

## Response example

```json
{
  "success": true,
  "data": {
    "basketId": 1001,
    "code": "PRODUCT.XML_ID",
    "id": 1007,
    "name": "Product XML_ID",
    "sort": 100,
    "value": "6967",
    "xmlId": "bx_69e72bbf34260"
  }
}
```

## Error response example

404 — the property was not found:

```json
{
  "success": false,
  "error": {
    "code": "ENTITY_NOT_FOUND",
    "message": "basket property is not exists"
  }
}
```

## Errors

| HTTP | Code | Description |
|---|---|---|
| 400 | `INVALID_PARAMS` | `id` is not a non-negative integer |
| 404 | `ENTITY_NOT_FOUND` | No property exists with this `id` |
| 404 | `ENTITY_NOT_FOUND` | The request completed, but no property object was returned |
| 422 | `BITRIX_ERROR` | Bitrix24 rejected the request. The reason is in `error.message` |
| 503 | `BITRIX_TIMEOUT` | Bitrix24 did not respond in time |
| 502 | `BITRIX_UNAVAILABLE` | Bitrix24 could not be reached |
| 403 | `SCOPE_DENIED` | The API key lacks the `sale` scope |
| 401 | `MISSING_API_KEY` | The `X-Api-Key` header is missing |
| 401 | `TOKEN_MISSING` | No Bitrix24 access tokens are configured |
| 429 | `RATE_LIMITED` | The request rate limit was exceeded. Retry after the interval in the `Retry-After` header |

For the full list of common API errors, see [Error codes](/docs/errors).

## See also

- [List basket item properties](/docs/entities/basket-item-properties/list)
- [Search basket item properties](/docs/entities/basket-item-properties/search)
- [Basket item property fields](/docs/entities/basket-item-properties/fields)
- [Create a basket item property](/docs/entities/basket-item-properties/create)
- [Update a basket item property](/docs/entities/basket-item-properties/update)
- [Delete a basket item property](/docs/entities/basket-item-properties/delete)
- [List basket items](/docs/entities/basket-items/list)
