Update Reservation
PUT/api/reservations/:id
Update Reservation
Request
Path Parameters
Header Parameters
- application/json
Body
Array [
]
internal customer id. you can use search customer endpoint
customer
object
this object required if there is no customer_id
set
Possible values: [male
, female
, other
]
Possible values: <= 255 characters
items
object[]
if you set price, the default price set from catalog will be overwritten.
you might not send starting at, in this case the system will adjust the services in appointment period
you can use your internal identifier for mapping purposes
Possible values: [new
, accepted
, cancelled
, no-show
, success
]
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: [new
, accepted
, cancelled
, no-show
, success
]
customer
object
Possible values: [vendor
, customer
]
Possible values: [male
, female
, other
]
services
object[]
service
object
employee
object
meta
object
Possible values: [male
, female
, other
]
createdBy
object
meta
object
Possible values: [male
, female
, other
]
updatedBy
object
meta
object
Possible values: [male
, female
, other
]
{
"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"
}
},
"updatedBy": {
"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
}