
## Get a quote

`GET /v1/quotes/:id`

Returns a quote by ID with all fields, including user fields (`ufCrm_*`).

## Parameters

| Parameter | Type | Required | Description |
|----------|-----|:-----:|---------|
| `id` (path) | number | yes | Quote ID |
| `include` (query) | string | no | Related data to include, comma-separated: `deal`, `contact`, `company`. See the "Related data" section |
| `select` (query) | string | no | Comma-separated response fields, for example `id,title,amount`. Without it, every field is returned. Names come from [Quote fields](/docs/entities/quotes/fields) |

## Examples

### curl — personal key

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

### curl — OAuth application

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

const { success, data } = await res.json()
console.log('Quote:', data.title, '—', data.amount, data.currency)
```

### JavaScript — OAuth application

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/quotes/412', {
  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 | `true` when the request succeeds |
| `data` | object | The quote with all fields, including user fields (`ufCrm_*`). All fields — [Quote fields](/docs/entities/quotes/fields) |
| `data._included` | object | Related entities. Returned only with the `include` parameter — see the "Related data" section |

## Related data

To retrieve related entities together with the quote, pass the `include` parameter in the GET request:

```
GET /v1/quotes/412?include=deal,contact,company
```

Available includes: `deal`, `contact`, `company`. The result is in the `_included` field:

```json
{
  "success": true,
  "data": {
    "id": 412,
    "title": "Quote for server hardware",
    "_included": {
      "deal": { "id": 741, "title": "Equipment delivery", "amount": 50000 },
      "contact": { "id": 71, "name": "John Brown" },
      "company": { "id": 15, "title": "Acme LLC" }
    }
  }
}
```

More about includes: [Related data](/docs/includes).

## Response example

```json
{
  "success": true,
  "data": {
    "id": 412,
    "title": "Quote for server hardware",
    "amount": 1500,
    "currency": "USD",
    "stageId": "SENT",
    "dealId": 741,
    "contactId": 71,
    "companyId": 15,
    "assignedById": 29,
    "createdBy": 1,
    "comments": "",
    "beginDate": "2026-04-15T00:00:00.000Z",
    "closeDate": "2026-05-15T00:00:00.000Z",
    "createdTime": "2026-04-15T10:30:00.000Z",
    "updatedTime": "2026-04-15T14:22:00.000Z",
    "_included": {
      "deal": { "id": 741, "title": "Equipment delivery", "amount": 50000 },
      "contact": { "id": 71, "name": "John Brown" },
      "company": { "id": 15, "title": "Acme LLC" }
    }
  }
}
```


## 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` | A quote with this ID was not found |
| 400 | `INVALID_INCLUDE` | `include` contains an unknown name. The message lists the allowed ones: `deal`, `contact`, `company` |
| 400 | `UNKNOWN_SELECT_FIELD` | `select` contains an unknown field. The message lists the allowed names |
| 403 | `ACCESS_DENIED` | No access to the quote |
| 403 | `SCOPE_DENIED` | The API key lacks the `crm` scope |
| 401 | `TOKEN_MISSING` | The API key has no configured tokens |

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

## See also

- [Working with files in CRM fields](/docs/recipes/crm-files)
- [Update a quote](/docs/entities/quotes/update)
- [List quotes](/docs/entities/quotes/list)
- [Quote fields](/docs/entities/quotes/fields)
- [Limits and optimization](/docs/optimization)
