SalesByte
Quotes API

List All Quotes

Retrieve a paginated list of quotes at the company level, sorted by creation date (newest first by default).

Endpoint

GET /api/quotes

Authentication

Authorization: Bearer <your-api-token>

Query Parameters

Pagination

ParameterTypeDefaultDescription
pageinteger1Page number

Results are paginated in batches of 10. This limit will be increased over time as query optimization improves.

Date Range Filters

ParameterTypeFormatDescription
created_fromstringYYYY-MM-DDFilter quotes created on or after this date
created_tostringYYYY-MM-DDFilter quotes created on or before this date
updated_fromstringYYYY-MM-DDFilter quotes updated on or after this date
updated_tostringYYYY-MM-DDFilter quotes updated on or before this date

Sorting

ParameterTypeOptionsDefaultDescription
sort_bystringcreated_at, updated_atcreated_atField to sort by
sort_orderstringasc, descdescSort direction

Example Requests

Basic request (latest quotes first)

curl -X GET "https://app.salesbyte.se/api/quotes" \
  -H "Authorization: Bearer <your-api-token>"

Filter by creation date range

curl -X GET "https://app.salesbyte.se/api/quotes?created_from=2025-01-01&created_to=2025-01-31" \
  -H "Authorization: Bearer <your-api-token>"

Sort by last updated

curl -X GET "https://app.salesbyte.se/api/quotes?sort_by=updated_at&sort_order=desc" \
  -H "Authorization: Bearer <your-api-token>"

Combined filters

curl -X GET "https://app.salesbyte.se/api/quotes?created_from=2025-01-01&sort_by=updated_at&sort_order=desc" \
  -H "Authorization: Bearer <your-api-token>"

Pagination

curl -X GET "https://app.salesbyte.se/api/quotes?page=2" \
  -H "Authorization: Bearer <your-api-token>"

Response

{
  "data": [
    {
      "id": 950,
      "key": "hLcblYXo3BJh8Z",
      "quote_profile_name": "Standard Quote",
      "customer_name": "Acme Corp",
      "customer_first_name": "John",
      "customer_last_name": "Doe",
      "customer_company": "Acme Corp",
      "customer_phone": "+46701234567",
      "customer_email": "[email protected]",
      "quote_value": 15000,
      "created_at": "2025-01-15T10:30:00.000000Z",
      "updated_at": "2025-01-16T14:22:00.000000Z",
      "salesperson": {
        "name": "Jane Smith",
        "email": "[email protected]"
      },
      "is_signed": true,
      "is_fully_signed": true,
      "links": {
        "edit": "https://app.salesbyte.se/offerter/950/redigera",
        "customer_view": "https://app.salesbyte.se/view/hLcblYXo3BJh8Z"
      }
    }
  ],
  "meta": {
    "current_page": 1,
    "per_page": 10,
    "total": 156
  }
}

Response Fields

Data Array

Each quote in the data array includes:

FieldTypeDescription
idintegerInternal quote identifier
keystringPublic-facing key (used in customer page URLs)

The full quote resource structure matches the Quote Checkout Webhook payload. See that documentation for complete field descriptions.

Meta Object

FieldTypeDescription
current_pageintegerCurrent page number
per_pageintegerNumber of results per page
totalintegerTotal number of quotes matching the filter

Status Codes

Status CodeDescription
200 OKRequest successful
401 UnauthorizedMissing or invalid Bearer token
422 Unprocessable EntityInvalid query parameters
500 Internal Server ErrorServer error

On this page