curl --request GET \
  --url https://api.splose.com/v1/support-items \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": 1,
      "appointmentId": 1,
      "type": "Provider Travel",
      "itemCode": 1234567890,
      "pricing": 193.99,
      "toMinutes": 20,
      "returnMinutes": 20,
      "unit": "km",
      "quantity": 123,
      "note": "Some notes",
      "createdAt": "2023-07-30T09:00:00.000Z",
      "updatedAt": "2023-07-30T09:00:00.000Z",
      "deletedAt": "2023-07-30T09:00:00.000Z"
    }
  ],
  "links": {
    "previousPage": "/v1/${object_type}?id_gt=200",
    "nextPage": "/v1/${object_type}?id_lt=100"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

id_gt
integer | null

The starting object id of the next page

Example:

200

id_lt
integer | null

The starting object id of the previous page

Example:

100

update_gt

Search for objects updated after this date time

Example:

"2023-07-30T09:00:00.000Z"

update_lt

Search for objects updated before this date time

Example:

"2023-07-30T09:00:00.000Z"

include_archived
enum<string> | null
default:false

Whether archived objects should be retrieved, default is false

Available options:
true,
false
appointmentId
integer | null

Appointment id of the support items

Response

200 - application/json
A paged array of support-items
data
object[]
required