Offers

List the company's offers

Returns one page of the company's offers across every deal, newest first, one row per offer carrying its current version, status, totals, recipient and deal. Without `status` the list leaves out superseded versions. Filter with `search` and `status`, and page with `page` and `pageSize` (at most 100).

GET
/crm/offers/list

Returns one page of the company's offers across every deal, newest first, one row per offer carrying its current version, status, totals, recipient and deal. Without status the list leaves out superseded versions. Filter with search and status, and page with page and pageSize (at most 100).

Authorization

x-api-key
x-api-key<token>

Company API key, created under Settings > API Keys.

In: header

Query Parameters

search?string

Only offers whose title contains the text, case-insensitively.

Lengthlength <= 200
status?unknown

Only offers whose current version has this status.

Value in

  • "ACCEPTED"
  • "DRAFT"
  • "EXPIRED"
  • "REJECTED"
  • "SENT"
  • "SUPERSEDED"
  • "WITHDRAWN"
page?number

The page to return, starting at 1.

Range1 <= value
Default1
pageSize?number

Offers per page, at most 100.

Range1 <= value <= 100
Default20

Header Parameters

x-company-id?string

Optional with an API key or OAuth token: leave it out and the company the key or token belongs to is used. If sent, it must be that same company, otherwise the request is refused with 403 API_KEY_WRONG_COMPANY or OAUTH_WRONG_COMPANY.

Match^[0-9a-fA-F]{24}$

Response Body

application/json

curl -X GET "https://example.com/crm/offers/list"
{  "items": [    {      "createdAt": "2019-08-24T14:15:22Z",      "dealId": "string",      "decidedAt": "2019-08-24T14:15:22Z",      "id": "string",      "lineCount": 0,      "money": {        "incVatOre": 0,        "netOre": 0,        "vatOre": 0      },      "number": 0,      "recipientName": "string",      "recipientType": "BUSINESS",      "sentAt": "2019-08-24T14:15:22Z",      "status": "ACCEPTED",      "threadId": "string",      "title": "string",      "validUntil": "2019-08-24T14:15:22Z",      "version": 0    }  ],  "page": 0,  "pageSize": 0,  "total": 0}