List hire bookings
curl --request GET \
--url https://api.scoutworks.app/api/v1/hire-bookings \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/hire-bookings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scoutworks.app/api/v1/hire-bookings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference": "<string>",
"assetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"source": "admin",
"startAt": "2023-11-07T05:31:56Z",
"endAt": "2023-11-07T05:31:56Z",
"expectedAttendees": 0,
"organisationName": "<string>",
"hirerType": "scout_group",
"totalAmount": "<string>",
"depositAmount": "<string>",
"damageDepositAmount": "<string>",
"damageDepositRetainedAmount": "<string>",
"depositPaidAt": "2023-11-07T05:31:56Z",
"balancePaidAt": "2023-11-07T05:31:56Z",
"damageDepositHeldAt": "2023-11-07T05:31:56Z",
"damageDepositReturnedAt": "2023-11-07T05:31:56Z",
"confirmedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"hirerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hirerName": "<string>",
"hirerEmail": "<string>",
"hirerPhone": "<string>"
}
],
"nextCursor": "<string>",
"nextUpdatedSince": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Hire
List hire bookings
Hire bookings, oldest first, with their asset, dates, status, amounts and the hiring organisation. With hire.people:read too, each also carries the hirer’s hirerId, hirerName, hirerEmail and hirerPhone. The purpose, notes, answers to the asset’s questions and payment provider ids are never returned. Pass includeDeleted=true to include removed bookings, and updatedSince to read only bookings that, or whose hirer, changed.
GET
/
hire-bookings
List hire bookings
curl --request GET \
--url https://api.scoutworks.app/api/v1/hire-bookings \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/hire-bookings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scoutworks.app/api/v1/hire-bookings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference": "<string>",
"assetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"source": "admin",
"startAt": "2023-11-07T05:31:56Z",
"endAt": "2023-11-07T05:31:56Z",
"expectedAttendees": 0,
"organisationName": "<string>",
"hirerType": "scout_group",
"totalAmount": "<string>",
"depositAmount": "<string>",
"damageDepositAmount": "<string>",
"damageDepositRetainedAmount": "<string>",
"depositPaidAt": "2023-11-07T05:31:56Z",
"balancePaidAt": "2023-11-07T05:31:56Z",
"damageDepositHeldAt": "2023-11-07T05:31:56Z",
"damageDepositReturnedAt": "2023-11-07T05:31:56Z",
"confirmedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"hirerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hirerName": "<string>",
"hirerEmail": "<string>",
"hirerPhone": "<string>"
}
],
"nextCursor": "<string>",
"nextUpdatedSince": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Authorizations
Query Parameters
Response
OK