Skip to content
.seventhings.com

Prefill your credentials

Fill in your non-secret values to have them appear in the examples below. Stored locally in your browser.

Get all Rental Cases

GET
/customer-api/v1/rental-management/rental-cases
curl --request GET \
--url 'https://your-instance.seventhings.com/customer-api/v1/rental-management/rental-cases?filter=%7B%22%3Cfilter_id%3E%22%3A%22%3Cfilter_name%3E%22%7D&page=1&per_page=50&%3Csort_field%3E=<sort_type>' \
--header 'Authorization: Bearer <token>'

Get all Rental Cases

filter

Fields are defined in Template, so this examples are based on the type of the field, not on the FieldKey

The filter parameter is a deep object, which means that it can have multiple levels of nesting. In the first level there is the field name, in the second level there is the operator and in the third level there are the values or the value. for example: filter[TEXT][eq]='exact searched text'

The exact field name you can find in the field definition list of your customer instance.

The known operators which can be used for one value per field you can find here:

  • eq which is used for exact match
  • neq which is used for the opposite of an exact match
  • gt which is used for a greater than match
  • gt_or_null which is used for a greater than match or null
  • gte which is used for a greater than or equal match
  • gte_or_null which is used for a greater than or equal match or null
  • lt which is used for a less than match
  • lt_or_null which is used for a less than match or null
  • lte which is used for a less than or equal match
  • lte_or_null which is used for a less than or equal match or null

Here is the list of the known operators which can be used for multiple values per field:

  • like which is used for a partial match
  • not_like which is used for a partial mismatch
  • in which is used for a list of exact matches
  • nin which is used for a list of the opposite of exact matches

Here are some examples:

  • filter[TEXT][eq]='exact searched text'
  • filter[TEXT][neq]='exact searched text'
  • filter[TEXT][like][]='searched text'
  • filter[TEXT][not_like][]='searched text'
  • filter[TEXT][in][]='searched text'
  • filter[TEXT][nin][]='searched text'
  • filter[DATE][gt]=2022-11-15
  • filter[DATE][gt_or_null]=2022-11-15
  • filter[DATE][gte]=2022-11-15
  • filter[DATE][gte_or_null]=2022-11-15
  • filter[DATE][lt]=2022-11-15&filter[DATE][gt]=2022-11-14
  • filter[DATE][lt_or_null]=2022-11-15&filter[DATE][gt]=2022-11-14
  • filter[DATE][lte]=2022-11-15&filter[DATE][gt]=2022-11-14
  • filter[DATE][lte_or_null]=2022-11-15&filter[DATE][gt]=2022-11-14
  • filter[DATETIME][gt]=2022-11-15+00:00:00
  • filter[DATETIME][lt]=2022-11-15+00:00:00&filter[DATETIME][gt]=2022-11-14+00:00:00
object
key
additional properties
any
Example
{
"<filter_id>": "<filter_name>"
}
page
integer format: int32
default: 1 >= 1 <= 1000000

Page number of the results to fetch.

per_page
integer
default: 50 >= 1 <= 1000

The number of results per page.

sort

Fields are defined in Template, so this examples are based on the type of the field, not on the FieldKey

In actual parameter, FieldKey should be passed (e.g: sort[updated_at]=ASC)

Up to columns

Filter options available for certain type of the field:

  • sort[TEXT]=ASC
  • sort[DATE]=DESC
  • sort[TEXT]=DESC&sort[DATE]=ASC
object
key
additional properties
any
Example
{
"<sort_field>": "<sort_type>"
}

A list of Rental Case entries

Media typeapplication/json
Array<object>
0 <= 10000 items

The reference of the rental case.

object
uuid
required

The UUID of the rental case.

string format: uuid
status
required

The status of the rental case.

string
Allowed values: requested confirmed borrowed rejected completed return_overdue pickup_overdue
title
required

The title of the rental case.

string
references
required
Array<object>
>= 1 items <= 100 items

The reference of the rental case.

object
type
required

The type of the referenced object.

string
Allowed values: asset
uuid
required

The UUID of the referenced object.

string format: uuid
name

Display name of the referenced object.

string
id

The id of the referenced object.

integer
issue_date
required

The start of the rental case.

string format: date
issue_date_reminder

The amount of time to send a reminder.

object
unit
required

The unit of the time interval.

string
Allowed values: days weeks months years
value
required

The value of the time interval.

integer
due_date
required

The start of the rental case.

string format: date
due_date_reminder

The amount of time to send a reminder.

object
unit
required

The unit of the time interval.

string
Allowed values: days weeks months years
value
required

The value of the time interval.

integer
responsible_user_uuid
required

The uuid of the responsible user.

string format: uuid
renter

The name of the renter.

string
comment

A comment that is displayed in the rental case details.

string
nullable
attachments
required
Array<object>
0

The file attachment of the rental case.

object
uuid
string format: uuid
name
string
0 <= 255 characters
type
string
0 <= 255 characters
size

File size in bytes

integer
>= 1 <= 52428800
data_uri
string
0 <= 1000 characters
thumbnail_uri
string
0 <= 1000 characters
Example
[
{
"status": "requested",
"title": "Rent the printer.",
"references": [
{
"type": "asset",
"uuid": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
"name": "Asset name (asset barcode)",
"id": 1
}
],
"issue_date": "2025-04-23",
"issue_date_reminder": {
"unit": "days",
"value": 2
},
"due_date": "2025-04-23",
"due_date_reminder": {
"unit": "days",
"value": 2
},
"responsible_user_uuid": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
"renter": "seventhings GmbH",
"comment": "The printer is running low on ink."
}
]

Request body is missing or invalid or request data is invalid.

Access token is missing or invalid.

You are not permitted to perform the requested operation.

Internal Server Error.