
## Quote product lines

`GET /v1/quotes/:id/products`

Returns the list of product lines attached to a quote.

## Parameters

| Parameter | Type | Required | Description |
|----------|-----|:-----:|---------|
| `id` (path) | number | yes | Quote ID |

## Examples

### curl — personal key

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

### curl — OAuth app

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

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

### JavaScript — OAuth app

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/quotes/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 |
|------|-----|---------|
| `data` | array | Array of product lines |
| `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 price |

Main fields shown. Full list (20 fields, including priceAccount, measureCode, etc.): [Product fields](/docs/entities/quotes/products-fields).

## Response example

```json
{
  "success": true,
  "data": [
    {
      "productId": 1,
      "productName": "Server equipment",
      "price": 1000,
      "quantity": 2,
      "discount": 0,
      "taxRate": null,
      "taxIncluded": false
    }
  ]
}
```

## Error response example

404 — quote not found:

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

## Errors

| HTTP | Code | Description |
|------|-----|---------|
| 404 | `ENTITY_NOT_FOUND` | Quote not found |
| 403 | `SCOPE_DENIED` | API key does not have the `crm` scope |
| 401 | `TOKEN_MISSING` | API key has no configured tokens |

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

## See also

- [Set products](/docs/entities/quotes/products-set) — replace product lines
- [Get quote](/docs/entities/quotes/get) — main quote data
- [Catalog products](/docs/entities/products) — product reference
- [Limits and optimization](/docs/optimization) — rate limits
