I’ve been trying to create a booking and am unable to get it to work.
I’ve tried posting to the following two URL’s:
api.youcanbook.me/v1/profiles/{profileId}/bookings
and
/v1/{accountId}/profiles/{profileId}/bookings
Neither seems to work.
The JSON I’m passing over looks like this:
{
"startsAt":"2024-05-10T08:00:00",
"timeZone":"America/Denver",
"units":1,
"numberOfSlots":1,
"answers":[
{
"code":"FNAME",
"string":"Test"
},
{
"code":"LNAME",
"string":"Testing"
},
{
"code":"PHONE",
"string":"8884718888"
},
{
"code":"EMAIL",
"string":"emailtest"
},
{
"code":"ADDRESS",
"string":"51 W 150 S"
},
{
"code":"CITY",
"string":"Lehi"
},
{
"code":"STATE",
"string":"UT"
},
{
"code":"ZIP",
"string":"84043"
},
{
"code":"LEADTYPE",
"string":"G3-Direct"
},
{
"code":"Q9",
"string":"testing"
},
{
"code":"NOTES",
"string":""
}
]
}
And I’m currently getting this response:
{
"code":"ycbm_api_invalid_selections",
"errors":[
{
"code":"time_zone_non_editable",
"message":"Time zone is not overridable",
"object":""
}
],
"httpCode":400,
"httpStatusCode":400,
"message":"Invalid selections",
"status":"BAD_REQUEST",
"type":"YcbmApiException"
}
I’ve removed timeZone but it’s required. What am I missing when creating a booking?
Thanks in advance!