Get All Reservations
GET/api/reservations
Get All Reservations
Request
Query Parameters
page integer
Example: 1
startingAt string
createdAt string
Example: 2020-01-02
Header Parameters
X-Company-Slug stringrequired
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
meta
object
total numberrequired
per_page numberrequired
current_page numberrequired
last_page numberrequired
first_page numberrequired
first_page_url stringrequired
last_page_url stringrequired
next_page_url stringnullablerequired
previous_page_url stringnullablerequired
data object[]
{
"meta": {
"total": 0,
"per_page": 0,
"current_page": 0,
"last_page": 0,
"first_page": 0,
"first_page_url": "string",
"last_page_url": "string",
"next_page_url": "string",
"previous_page_url": "string"
},
"data": [
{
"id": "4",
"code": "A5NZY1",
"customer_id": "101",
"created_by_id": "1",
"updated_by_id": "1",
"notes": "bla bla",
"total": 1122,
"starting_at": "2024-08-01T23:21:53.710+03:00",
"finishing_at": "2024-08-02T00:21:53.710+03:00",
"created_at": "2024-08-01T23:21:53.705+03:00",
"updated_at": "2024-08-01T23:21:53.725+03:00",
"status": "new",
"customer": {
"id": "1",
"name": "Kris",
"surname": "Williamson",
"type": "vendor",
"email": "[email protected]",
"phone": "5802777946",
"gender": "male",
"birthdate": "2011-05-02",
"address": "İstanbul",
"custom_fields": {},
"created_at": "2024-03-03T11:52:04.398+03:00",
"updated_at": "2024-04-11T01:11:23.878+03:00",
"default_photo_id": 1
},
"services": [
{
"id": "5",
"reservation_id": "4",
"employee_id": "8",
"service_id": "1",
"price": 1100,
"quantity": 1,
"estimated_time": 30,
"starting_at": "2024-08-01T23:21:53.710+03:00",
"finishing_at": "2024-08-01T23:51:53.710+03:00",
"is_bound": false,
"service": {
"id": "1",
"name": "denem",
"slug": "denem",
"description": "afa",
"price": 2200,
"original_price": 2100,
"estimated_time": 15,
"category_id": "5",
"created_at": "2024-06-16T23:09:57.899+03:00",
"updated_at": "2024-06-16T23:09:57.899+03:00"
},
"employee": {
"id": "1",
"email": "[email protected]",
"name": "Test",
"surname": "User 1",
"language": "en",
"phone_number": "+90123123213",
"remember_me_token": true,
"birthday": "1990-01-01",
"created_at": "2024-02-20T19:18:45.782+03:00",
"updated_at": "2024-04-11T01:11:24.889+03:00",
"timezone": "Europe/Istanbul",
"meta": {
"gender": "male"
}
}
}
],
"createdBy": {
"id": "1",
"email": "[email protected]",
"name": "Test",
"surname": "User 1",
"language": "en",
"phone_number": "+90123123213",
"remember_me_token": true,
"birthday": "1990-01-01",
"created_at": "2024-02-20T19:18:45.782+03:00",
"updated_at": "2024-04-11T01:11:24.889+03:00",
"timezone": "Europe/Istanbul",
"meta": {
"gender": "male"
}
},
"source_id": 1,
"custom_fields": {},
"transaction_id": null
}
]
}
Loading...