ImportOS · Документація
Довідник API

GET /v1/deals

List deals

List deals

Cursor-paginated deals of the tenant with filters and search. Financial data (margin, items, payments) is never returned. Requires scope write:deals.

  • Автентифікація: заголовок Authorization: Bearer rv_live_... (API-ключі та scopes)
  • Потрібний scope: write:deals
Опис операції, параметрів і полів походить зі специфікації OpenAPI (openapi.json) і подається англійською, як у самому API.

Параметри

ПолеДеТипОбов’язк.Опис
qquerystringніDeal number, VIN fragment, client name or vehicle make/model.
statusquerystringніComma-separated deal statuses.
open_onlyquery"true" | "false"ніExclude closed/lost/cancelled.
contact_idquerystring (uuid)ні
manager_idquerystring (uuid)ні
typequerystringніComma-separated: full_service,auction_only,logistics_only,resale.
sortquery"createdAt" | "updatedAt" | "number" | "etaDelivery"ні
dirquery"asc" | "desc"ні
cursorquerystringні
limitqueryintegerні

Відповіді

200

A page of deals.

application/json · Схема: DealPage

ПолеТипОбов’язк.Опис
itemsobject[]так
items[].idstring (uuid)ні
items[].numberstringні
items[].status"lead" | "consult" | "contract_signed" | "deposit_paid" | "searching" | "bid_approved" | "won" | "paid_to_auction" | "pickup_scheduled" | "at_us_warehouse" | "loaded" | "in_transit_sea" | "at_eu_port" | "inland_to_border" | "customs_clearing" | "customs_cleared" | "certification" | "registration" | "ready_for_handover" | "handed_over" | "closed" | "lost" | "cancelled" | "on_hold" | "dispute"ні
items[].type"full_service" | "auction_only" | "logistics_only" | "resale"ні
items[].currency"UAH" | "USD" | "EUR" | "PLN" | "GEL"ні
items[].contactIdstring (uuid)ні
items[].contactNamestring | nullні
items[].managerIdstring | null (uuid)ні
items[].managerNamestring | nullні
items[].vehicleobjectні
items[].etaDeliverystring | nullніISO 8601 date-time (UTC).
items[].slaobjectні
items[].createdAtstringніISO 8601 date-time (UTC).
items[].updatedAtstringніISO 8601 date-time (UTC).
nextCursorstring | nullтак

400

Invalid request parameters or body (code validation_error).

application/problem+json · Схема: Problem

401

Missing, malformed, unknown, revoked or expired API key (code unauthorized).

application/problem+json · Схема: Problem

403

The API key lacks the scope required by this endpoint (code insufficient_scope).

application/problem+json · Схема: Problem

422

Invalid filter.

application/problem+json · Схема: Problem

429

Rate limit exceeded for the tenant plan (code rate_limited). Wait Retry-After seconds.

application/problem+json · Схема: Problem

На цій сторінці