# Report quotes by issue date

```http
POST https://secure.yoprint.com/v1/api/store/{team_slug}/report/quote
```

- API version: v1
- Operation ID: `v1_public_report_quote`
- Section: Reports › [Reports](https://developer.yoprint.com/reference/reports.md)
- Web page: https://developer.yoprint.com/reference/reports/v1-report-quote/
- Authentication: `Authorization: Bearer YOUR_API_KEY`

Returns every quote issued in the period, in full (v1 order shape). Drafts and unsaved quotes are left out. Amounts are in thousandths, an older encoding: `339750` is 339.75. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (`1234.5` is 1.2345), or as a string (`"1234.5"`) when you send `X-Yoprint-Decimal-Format: exact-v1`. See [Money and quantities](/concepts/money-and-quantities/).

## Permission

Needs the View Reports permission. Otherwise 403 with a bare `{ "message": "Insufficient Permission" }` (no `success` or `error` envelope).

## Business rules

- A quote is in the period when its issue date is between `start_date` and `end_date`, inclusive.

## Path parameters

- `team_slug` (string, required): Your team slug, shown as Team ID next to your API key in Profile. Example `your-team`.

## Request body

Content type `application/json`, required.

Fields:

- `end_date` (string (date-time), required): End of the period (ISO 8601), inclusive: send `23:59:59` to include the whole last day. In UTC, like `start_date` (an offset is dropped, not applied).
- `start_date` (string (date-time), required): Start of the period (ISO 8601), inclusive, to the second: send the start of the day. Send it in UTC (`Z`): the date and time are compared with UTC as written and any offset is dropped, so `2026-10-01T00:00:00-05:00` means midnight UTC.

### Example request

```bash
curl -X POST 'https://secure.yoprint.com/v1/api/store/your-team/report/quote' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'X-Yoprint-Decimal-Format: exact-v1' \
  -H 'Content-Type: application/json' \
  -d '{
    "end_date": "2026-11-30T23:59:59Z",
    "start_date": "2026-11-01T00:00:00Z"
  }'
```

## Response

`200` Successful response.

Fields:

- `data` (array of objects, required)
  - Each item:
    - `approval_status` (string | null, optional): `requested`, `need-changes`, `approved`, or null.
    - `assigned_users` (array of objects, optional): People on the order.
      - Each item:
        - `avatar_url` (string | null, optional)
        - `id` (string, optional): The user.
        - `name` (string, optional)
    - `calc_deposit_total` (integer | number | string | null, optional): Deposit amount. Thousandths, an older encoding: `12500` is 12.50. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (`1234.5` is 1.2345), or as a string (`"1234.5"`) when you send `X-Yoprint-Decimal-Format: exact-v1`. See [Money and quantities](/concepts/money-and-quantities/).
    - `calc_discount` (integer | number | string | null, optional): Invoiced discount; 0 until invoiced. Thousandths, an older encoding: `12500` is 12.50. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (`1234.5` is 1.2345), or as a string (`"1234.5"`) when you send `X-Yoprint-Decimal-Format: exact-v1`. See [Money and quantities](/concepts/money-and-quantities/).
    - `calc_subtotal` (integer | number | string | null, optional): Invoiced line and shipping subtotal; 0 until the order is invoiced. Thousandths, an older encoding: `12500` is 12.50. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (`1234.5` is 1.2345), or as a string (`"1234.5"`) when you send `X-Yoprint-Decimal-Format: exact-v1`. See [Money and quantities](/concepts/money-and-quantities/).
    - `calc_tax` (integer | number | string | null, optional): Invoiced tax; 0 until invoiced. Thousandths, an older encoding: `12500` is 12.50. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (`1234.5` is 1.2345), or as a string (`"1234.5"`) when you send `X-Yoprint-Decimal-Format: exact-v1`. See [Money and quantities](/concepts/money-and-quantities/).
    - `calc_total` (integer | number | string | null, optional): Invoiced total; 0 until the order is invoiced. Thousandths, an older encoding: `12500` is 12.50. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (`1234.5` is 1.2345), or as a string (`"1234.5"`) when you send `X-Yoprint-Decimal-Format: exact-v1`. See [Money and quantities](/concepts/money-and-quantities/).
    - `created_at` (string (date-time) | null, optional): Created. ISO 8601 with offset, or null.
    - `created_by` (string | null, optional): Who created it.
    - `cust_due_date` (string (date-time) | null, optional): Customer due date. ISO 8601 with offset, or null.
    - `customer` (object | null, optional): The customer, as in Get a customer.
      - `id` (string, optional): The customer.
      - `name` (string | null, optional)
    - `customer_id` (string | null, optional): The customer.
    - `customer_po_number` (string | null, optional)
    - `customer_portal_order_link` (string | null, optional): Customer portal link. It carries the customer's portal access: don't publish it.
    - `customer_portal_payment_link` (string | null, optional): Customer portal payment page link, with the same access.
    - `deposit_due` (string (date-time) | null, optional): Deposit due. ISO 8601 with offset, or null.
    - `deposit_required` (boolean, optional)
    - `deposit_total` (integer | number | string | null, optional): The deposit **percentage** ×1000: `50000` is 50%. Not an amount.
    - `due_date` (string (date-time) | null, optional): Production due date. ISO 8601 with offset, or null.
    - `full_amount_due` (string (date-time) | null, optional): Full amount due. ISO 8601 with offset, or null.
    - `id` (string, optional): The order.
    - `is_quote` (boolean, optional)
    - `is_rush` (boolean, optional)
    - `issue_date` (string (date-time) | null, optional): Issue date. ISO 8601 with offset, or null.
    - `name` (string | null, optional)
    - `object_type` (string | null, optional): `sales_order` or `quote`.
    - `paid_amount` (integer | number | string | null, optional): Paid so far. Thousandths, an older encoding: `12500` is 12.50. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (`1234.5` is 1.2345), or as a string (`"1234.5"`) when you send `X-Yoprint-Decimal-Format: exact-v1`. See [Money and quantities](/concepts/money-and-quantities/).
    - `payment_term_id` (string | null, optional): Payment term.
    - `scoped_id` (string | null, optional): The order number.
    - `ship_due_date` (string (date-time) | null, optional): Ship-by date. ISO 8601 with offset, or null.
    - `start_date` (string (date-time) | null, optional): Production start. ISO 8601 with offset, or null.
    - `status` (object, optional): A status: label, kind and place in the list.
      - `color` (string | null, optional): Hex color.
      - `customer_label` (string, optional)
      - `id` (string, optional): The status.
      - `label` (string, optional)
      - `pipeline_id` (string, optional): Only on the statuses of a task preset (`role` `pipeline`): the task preset. Absent on other statuses.
      - `position` (integer, optional): Its place in the team's list: sort by it to find the next status.
      - `role` (string, optional): Which list it belongs to: `job` for job statuses, `pipeline` for the statuses of a task preset. One of: `"order"`, `"quote"`, `"job"`, `"purchase_order"`, `"shipment"`, `"customer_message"`, `"pipeline"`.
      - `trashed` (boolean, optional): The status was deleted.
      - `type` (string, optional): The kind of status: `start` (Pending), `pre_production` and `in_progress` (In Progress), `end` (Completed). One of: `"start"`, `"pre_production"`, `"in_progress"`, `"end"`.
    - `status_id` (string | null, optional): The order status.
    - `tags` (array of objects, optional): The order's tags.
      - Each item:
        - `color_hex` (string | null, optional)
        - `id` (string, optional): The tag.
        - `name` (string, optional)
    - `unique_key` (string | null, optional)
    - `warehouse_id` (string | null, optional): Warehouse.
- `status` (integer, required)
- `success` (boolean, required)

Example response:

```json
{
  "data": [
    {
      "approval_status": null,
      "assigned_users": [
        {
          "avatar_url": null,
          "id": "4mdDkMg3dgQOa3",
          "name": "Alex Rivera"
        }
      ],
      "calc_deposit_total": 0,
      "calc_discount": 0,
      "calc_subtotal": 0,
      "calc_tax": 0,
      "calc_total": 0,
      "created_at": "2026-11-02T15:00:00+00:00",
      "created_by": "4mdDkMg3dgQOa3",
      "cust_due_date": "2026-11-10T00:00:00+00:00",
      "customer": {
        "id": "ifAHmADekGZ6id",
        "name": "Northwind Apparel"
      },
      "customer_id": "ifAHmADekGZ6id",
      "customer_po_number": null,
      "customer_portal_order_link": "https://example.com/portal/order",
      "customer_portal_payment_link": "https://example.com/portal/pay",
      "deposit_due": null,
      "deposit_required": false,
      "deposit_total": 0,
      "due_date": "2026-11-06T17:00:00+00:00",
      "full_amount_due": "2026-11-20T00:00:00+00:00",
      "id": "mJ8Wrr98wnbAnj",
      "is_quote": true,
      "is_rush": false,
      "issue_date": "2026-11-02T00:00:00+00:00",
      "name": "Staff polos",
      "object_type": "quote",
      "paid_amount": 0,
      "payment_term_id": null,
      "scoped_id": "QT1001",
      "ship_due_date": "2026-11-08T00:00:00+00:00",
      "start_date": "2026-11-04T09:00:00+00:00",
      "status": {
        "color": "#9e9e9e",
        "customer_label": "Pending",
        "id": "35gWu7rwnoRn60",
        "label": "Sent",
        "position": 1,
        "role": "quote",
        "trashed": false,
        "type": "start"
      },
      "status_id": "35gWu7rwnoRn60",
      "tags": [],
      "unique_key": "ord_EXAMPLEuniqueKe4",
      "warehouse_id": null
    }
  ],
  "status": 200,
  "success": true
}
```

## Errors

- `401` The API key is missing or wrong (`unauthenticated`).
- `403` You are not allowed to do this. `api_access_not_in_plan`: your team's plan doesn't include API access (Pro and above, with an active subscription or trial), so every request answers this until the team upgrades. When your role lacks the permission the operation needs, the body is only `{"message": "Insufficient Permission"}`. Other refusals use the error envelope, with `unauthorized` or `user_is_not_authorized`.
  - When: Your role lacks View Reports. Fix: Ask the team owner to turn on View Reports for your permission group.
- `404` Not found. `page_not_found`: the team slug is unknown, you are not a member of the team, or an id in the path is not one of this team's. `code: null`, with a message that starts "No query results for": there is no record with that id.
- `422` The request was refused and changed nothing. `validation_failed` lists what to fix in `error.fields`; other codes name a business rule, explained in `error.message`. A few checks answer with only `{"message": "..."}`. An operation that calls another service (a payment provider, a carrier, an accounting app) can answer `connect_timeout` ("Please retry again") when that service does not answer in time: the change may or may not have happened there, so read the record back before you retry.
  - When: `start_date` or `end_date` is missing or not ISO 8601. Fix: Send both as ISO 8601 date-times.

## Notes

- There is no paging: the whole period comes back in one response. Ask for a month or less at a time.

## Related

- [Report sales orders by issue date](https://developer.yoprint.com/reference/reports/v1-report-sales-order.md): `POST /v1/api/store/{team_slug}/report/sales_order`
