Quotes

Count quotes per status

Returns how many quotes sit in each status, for the tab counters above the mobile list. Accepts the same filters as GET /v1/quotes minus status and pagination (q, from/to/preset with the same date-filter semantics), so the numbers always match what the list shows. The applied range is echoed in date_filter.

get/v1/quotes/status-counts

Request

  • Base URL: https://api.officina.it
  • URL: https://api.officina.it/v1/quotes/status-counts
  • Auth: HTTP bearer

Query parameters

qstring

Substring match against customer or vehicle name.

fromstring date
tostring date
preset'rel30' | 'rel90' | 'rel365' | 'year' | 'Q1' | 'Q2' | 'Q3' | 'Q4' | 'month' | 'custom' | 'all'

Date filter preset. Relative presets (rel30/rel90/rel365) are resolved server-side from "now" and ignore from/to. Absolute presets (year, Q1-Q4, month, custom) require both from and to. all returns everything (no time bound). Unknown values are rejected with 422.

Omitting from/to/preset gives the default window, the last 12 months. This tier is stateless: a selection applies to the request that carries it and is never stored, so the same request always covers the same range. The effective range is echoed back in date_filter.

Response

Counts per status.

object'quote_status_counts' required
waitinginteger required
acceptedinteger required
rejectedinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.