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 the history of a Rental case

GET
/customer-api/v1/rental-management/rental-case/{rentalCaseUuid}/history
curl --request GET \
--url 'https://your-instance.seventhings.com/customer-api/v1/rental-management/rental-case/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/history?page=1&per_page=50' \
--header 'Authorization: Bearer <token>'

Get the recorded changes of a single rental case, newest change first. Rental cases without any recorded change return an empty page.

rentalCaseUuid
required
string format: uuid
page
integer format: int32
default: 1 >= 1 <= 1000000

Page number of the results to fetch.

per_page
integer
default: 50 >= 1 <= 200

The number of history entries per page. A single entry can carry a full snapshot of the entity, so this is capped lower than the list endpoints.

Success

Media typeapplication/json
object
items
Array<object>

A single recorded change of a rental case.

object
rental_case_uuid

The UUID of the rental case the change belongs to.

string
user_uuid

The UUID of the user who caused the change.

string
occurred_at

The date and time of the change, in UTC.

string format: date-time
event_name

The name of the recorded event.

string
description

The description of the change, in English.

string
details

Further details of the change as a JSON string, e.g. the snapshot of the rental case including the changed values. Can be empty.

string
page
integer
per_page
integer
total
integer
Example
{
"items": [
{
"rental_case_uuid": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
"user_uuid": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
"occurred_at": "2022-04-01T12:00:00+00:00",
"event_name": "Rental case rescheduled",
"description": "System user rescheduled rental case 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'.",
"details": ""
}
]
}

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.

The requested resource representation has no acceptable format.

Internal Server Error.