I have this error :
{
“code”: “ycbm_api_http_invalid_payload”,
“errors”: [
{
“code”: “ycbm_api_http_invalid_payload”,
“field”: “actions[0].id”,
“message”: “Expected value not provided”,
“object”: “Booking”
},
{
“code”: “ycbm_api_http_invalid_payload”,
“field”: “actions[0].anchor”,
“message”: “Read only”,
“object”: “Booking”
}
],
“httpCode”: 400,
“httpStatusCode”: 400,
“message”: “Invalid payload”,
“status”: “BAD_REQUEST”,
“type”: “YcbmApiException”
}
PATCH https://api.youcanbook.me/v1/bookings/868a757b-c2d1-464d-9444-436983a8ccec
I tried executed this at postman, and this is the payload :
{
“actions”: [
{
“accountId”: “af6a6c3b-9b1a-4782-aa16-99fe2aa6f2c2”,
“anchor”: “cancelled”,
“timeZone”: “Asia/Jakarta”
}
],
“cancellationReason”: “Go to other city”,
“cancelled”: true,
“cancelledAt”: “2023-10-11T14:45:00.00Z”,
“cancelledBy”: “BOOKER”
}
I assumed this is minimum payload but maybe something still missing. Please help