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).
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 Company API key, created under Settings > API Keys.
In: header
Query Parameters
Only offers whose title contains the text, case-insensitively.
length <= 200Only offers whose current version has this status.
Value in
- "ACCEPTED"
- "DRAFT"
- "EXPIRED"
- "REJECTED"
- "SENT"
- "SUPERSEDED"
- "WITHDRAWN"
The page to return, starting at 1.
1 <= value1Offers per page, at most 100.
1 <= value <= 10020Header Parameters
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.
^[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}Get an offer's customer link GET
Returns the token and path of the page where the customer reads and accepts the offer. Only a `SENT` or `EXPIRED` version has a link to copy; any other status returns 409.
List a deal's offers GET
Returns every offer on the deal, newest first, each with its versions, newest version first. An offer is a thread of versions: sending a revised version supersedes the one sent before it, and every other offer route acts on one version by its `versionId`. `dealId` is required; leaving it out or sending a malformed id returns 400. A deal from another company returns 404.