system
1
Migrated from Redmine #892 | Author: Brett Heinz
Status: Feedback | Priority: Normal | Created: 2022-06-14
Hi,
I have the ‘Approve Booking’ custom feature enabled.
When calling the endpoint of: https://user-api-v2.simplybook.me/admin/bookings/15/status
(API documentation | SimplyBook.me Online Scheduling)
I get a response of:
Ouch!
ERROR
I’m sorry, that page is in another universe!
Back home
I’ve never seen this response with any other endpoint… Wrong endpoint in the documentation?
Any guidance would be much appreciated.
Thanks,
Brett
system
2
Dmytro Bondarev wrote:
Hi,
Can you please provide RAW http request with company login and token headers.
you can omit token value.
system
3
Brett Heinz wrote:
PUT /admin/bookings/15/status HTTP/1.1
Host: user-api-v2.simplybook.me
X-Company-Login: hookandbobber
X-Token: aaaaaaa
Content-Type: application/json
Content-Length: 22
{
“status_id”: 2
}
Or
curl --location --request PUT ‘https://user-api-v2.simplybook.me/admin/bookings/15/status’
–header ‘X-Company-Login: hookandbobber’
–header ‘X-Token: aaaaaaa’
–header ‘Content-Type: application/json’
–data-raw ‘{
“status_id”: 2
}’
(I’m using Postman to send the requests)
Thanks,
Brett
system
4
Dmytro Bondarev wrote:
Hi,
The problem is that you do not have any statuses.
Please enable “Status” custom feature, add some statuses and then pass status ids.
If you want to approve booking with “Approve Booking” custom feature, thank please use this method: API documentation | SimplyBook.me Online Scheduling
system
5
Brett Heinz wrote:
That worked!
Thanks for your help.
Also thanks for the info on the ‘statuses’.
Very helpful.