
## Item product rows

`GET /v1/items/:entityTypeId/:id/products`

Returns the list of product rows attached to a smart process item.

Use the `entityTypeId` field from [`GET /v1/smart-processes`](/docs/entities/smart-processes/list) in the `/v1/items/:entityTypeId` path. The type record's internal `id` is a different identifier. For example, if a type is returned as `{ "id": 3, "entityTypeId": 174 }`, the path starts with `/v1/items/174`. Use the returned value rather than assuming all type IDs start at 1030.

## Parameters

| Parameter | Type | Required | Description |
|----------|-----|:-----:|---------|
| `entityTypeId` (path) | number | yes | Smart process type ID |
| `id` (path) | number | yes | Item ID |
| `limit` (query) | number | no | How many rows to return per call, from 1 to 5000, 50 by default. A value above 5000 is clamped to 5000. `limit=0` is not treated as a page size: the default applies and `meta.warnings` carries an entry with code `LIMIT_ZERO_IGNORED` |
| `offset` (query) | number | no | Offset in rows, not in pages: `offset=7` starts the output at the eighth row |

Without `limit` and `offset` the endpoint returns the first page of results. `meta.hasMore` tells you whether rows exist beyond it, and `meta.total` how many the item has in total.

## Examples

### curl — personal key

```bash
curl "https://vibecode.bitrix24.com/v1/items/156/741/products" \
  -H "X-Api-Key: YOUR_API_KEY"
```

### curl — OAuth application

```bash
curl "https://vibecode.bitrix24.com/v1/items/156/741/products" \
  -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/items/156/741/products', {
  headers: {
    'X-Api-Key': 'YOUR_API_KEY',
  },
})

const { success, data } = await res.json()
console.log('Products:', data.length)
```

### JavaScript — OAuth application

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/items/156/741/products', {
  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` | array | Array of product rows |
| `data[].id` | number | Product row ID. The same value appears as `rowId` in single-row operations |
| `data[].productId` | number | Product ID. Catalog: `GET /v1/products` |
| `data[].productName` | string | Product name |
| `data[].price` | number | Unit price |
| `data[].quantity` | number | Quantity |
| `data[].discount` | number | Discount amount |
| `data[].taxRate` | number/null | Tax rate (%) |
| `data[].taxIncluded` | boolean | Tax included in the price |
| `data[].ownerId` | number | ID of the owning smart process item, the same one as in the request path |
| `data[].ownerType` | string | Row owner type: the letter `T` plus the hexadecimal `entityTypeId`, `T9c` for type `156` |
| `data[].storeId` | number \| null | Warehouse ID. List: `GET /v1/warehouses`. `null` when inventory management is off |
| `meta.total` | number | How many product rows the smart process item has in total. Present when Bitrix24 returned the count, otherwise the field is absent from the response. |
| `meta.hasMore` | boolean | Whether rows exist beyond the returned page. Accurate for any requested window, not only the first one |
| `meta.warnings` | array | Present only when the request carried `limit=0`: a single entry with `code` equal to `LIMIT_ZERO_IGNORED` |

The main fields are shown. For the full list, see [Product fields](/docs/entities/items/products-fields).

## Response example

```json
{
  "success": true,
  "data": [
    {
      "id": 1671,
      "ownerId": 741,
      "ownerType": "T9c",
      "productId": 1,
      "productName": "Server equipment",
      "price": 1000,
      "quantity": 2,
      "discount": 0,
      "taxRate": null,
      "taxIncluded": false,
      "storeId": null
    }
  ],
  "meta": {
    "total": 1,
    "hasMore": false
  }
}
```

## Error response example

404 — item not found:

```json
{
  "success": false,
  "error": {
    "code": "ENTITY_NOT_FOUND",
    "message": "Item not found"
  }
}
```

## Errors

| HTTP | Code | Description |
|------|-----|---------|
| 400 | `INVALID_DYNAMIC_PARAM` | `entityTypeId` is not a positive integer or is reserved (1, 2, 3, 4, 7, 31) |
| 404 | `ENTITY_NOT_FOUND` | Item not found |
| 403 | `SCOPE_DENIED` | The API key lacks the `crm` scope |
| 401 | `TOKEN_MISSING` | The API key has no configured tokens |
| 429 | `RATE_LIMITED` | Rate limit exceeded: 300 requests per minute per portal. All API keys of the portal share one limit. The current limit is returned in the `x-ratelimit-limit` header. Retry after the delay in the `Retry-After` header |

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

## See also

- [Set products](/docs/entities/items/products-set)
- [Get a smart process item](/docs/entities/items/get)
- [CRM products](/docs/entities/products)
- [Limits and optimization](/docs/optimization)
