v1

OpenAPI 3.0.02026-08-04109109370.6 KB
Quotes

Get a list of quotes

get/quotes

Query parameters

filter[lead]string

Filter quotes by lead

filter[dateMin]string

Filter quotes created after this date. Date expected in the format YYYY-MM-DD

filter[dateMax]string

Filter quotes created before this date. Date expected in the format YYYY-MM-DD

page[limit]string

Limit the number of results returned, for pagination.

page[page]string

Request a specific page of results, for pagination. Used in conjunction with the page[limit] parameter. Indexing is 0-based.

Response

A list of quotes

linksobject

Pagination links

Example response

{
  "quotes": [
    {
      "id": "123-quotes",
      "type": "quotes",
      "number": "1000-01",
      "total": {
        "amount": "5000.00",
        "currency": "USD",
        "formatted": "$5,000.00"
      },
      "validThroughTime": "2024-12-31T23:59:59Z",
      "createdTime": "2024-01-15T10:30:00Z",
      "publishedTime": "2024-01-16T14:20:00Z",
      "sentTime": "2024-01-17T09:15:00Z",
      "acceptedTime": null,
      "deletedTime": null,
      "links": {
        "lead": "456-leads"
      }
    },
    {
      "id": "124-quotes",
      "type": "quotes",
      "number": "1000-02",
      "total": {
        "amount": "7500.00",
        "currency": "USD",
        "formatted": "$7,500.00"
      },
      "validThroughTime": "2024-11-30T23:59:59Z",
      "createdTime": "2024-02-01T08:00:00Z",
      "publishedTime": "2024-02-02T10:00:00Z",
      "sentTime": null,
      "acceptedTime": null,
      "deletedTime": null,
      "links": {
        "lead": "457-leads"
      }
    }
  ],
  "meta": {
    "instanceId": "12345"
  },
  "links": {
    "self": "/rest/quotes?page[page]=0&page[limit]=25",
    "first": "/rest/quotes?page[page]=0&page[limit]=25",
    "last": "/rest/quotes?page[page]=0&page[limit]=25"
  }
}