## Get a product from a deal

`GET /v1/deals/:id/products/:rowId`

Returns a single deal product row by row ID.

## Parameters

| Parameter | Type | Required | Description |
|----------|-----|:-----:|---------|
| `id` (path) | number | yes | Deal ID. List: [`GET /v1/deals`](/docs/entities/deals/list) |
| `rowId` (path) | number | yes | Product row ID. List: [`GET /v1/deals/:id/products`](/docs/entities/deals/products-get) |

`rowId` is the product row ID, not the `productId` from the product catalog.

## Examples

### curl — personal key

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

### curl — OAuth application

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

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

### JavaScript — OAuth application

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/deals/741/products/1471', {
  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 | Deal product row |
| `data.id` | number | Product row ID |
| `data.productId` | number | Catalog product ID |
| `data.productName` | string | Product name |
| `data.price` | number | Unit price |
| `data.quantity` | number | Quantity |
| `data.discount` | number | Discount amount |
| `data.discountRate` | number | Discount percentage |
| `data.discountTypeId` | number | Discount type (1 — amount, 2 — percentage) |
| `data.taxRate` | number \| null | Tax rate (%) |
| `data.taxIncluded` | boolean | Tax included in price |
| `data.customized` | string | Row modification flag: `Y` or `N` |
| `data.priceExclusive` | number | Price excluding tax, with discount |
| `data.priceNetto` | number | Net price |
| `data.priceBrutto` | number | Gross price |
| `data.priceAccount` | number | Price in the reporting currency |
| `data.measureCode` | number | Unit of measure code |
| `data.measureName` | string | Unit of measure name |
| `data.sort` | number | Sort order |
| `data.ownerId` | number | ID of the owner entity the row belongs to |
| `data.ownerType` | string | Row owner type, `D` for a deal |
| `data.storeId` | number \| null | Warehouse ID. List: `GET /v1/warehouses`. `null` when inventory management is off |
| `data.xmlId` | string | External code of the row |
| `data.type` | number | Product type — the same value as the product's `type` in `GET /v1/catalog-products/:id`: `1` — simple product, `3` — parent product with variations, `7` — service |

## Response example

```json
{
  "success": true,
  "data": {
    "id": 1471,
    "productId": 1,
    "productName": "Server equipment",
    "price": 5000,
    "priceAccount": 5000,
    "priceExclusive": 5000,
    "priceNetto": 5000,
    "priceBrutto": 5000,
    "quantity": 3,
    "discountTypeId": 2,
    "discountRate": 0,
    "discount": 0,
    "taxRate": null,
    "taxIncluded": false,
    "customized": "Y",
    "measureCode": 796,
    "measureName": "pcs",
    "sort": 0,
    "ownerId": 741,
    "ownerType": "D",
    "storeId": 3,
    "xmlId": "sale_basket_995",
    "type": 1
  }
}
```

## Error response example

404 — no product row with this `rowId`:

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

## Errors

| HTTP | Code | Description |
|------|-----|---------|
| 400 | `INVALID_ROW_ID` | `rowId` in the path is not a positive integer. The message is `Product row ID must be a positive integer` |
| 404 | `ENTITY_NOT_FOUND` | No product row with this `rowId`. The message is `Item not found` |
| 404 | `ENTITY_NOT_FOUND` | A row with this `rowId` exists but belongs to another CRM record, not to deal `id`, or has no owner and cannot pass the check. The message is `Product row not found` |
| 403 | `SCOPE_DENIED` | API key lacks the `crm` scope |
| 401 | `TOKEN_MISSING` | 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

- [Product rows](/docs/entities/deals/products-get)
- [Update a product](/docs/entities/deals/products-update)
- [Add a product](/docs/entities/deals/products-add)
- [Delete a product](/docs/entities/deals/products-delete)
- [CRM products](/docs/entities/products)
