Heyy @Ben would you be available for a 5 min call please? I think that we could sort that out quickly if we hop on a call. In the meantime ill try your suggestion.
When I try what @g3Mark suggested
@Ben Thanks! One thing to note for anyone else trying to do this. You need to structure the PATCH different from the initial POST. I was patching to https://api.youcanbook.me/v1/intents/{intentId}/selections
I get an error 500 for the the call the the selections endpoint, when I try what you suggested @Ben (including the timestamp in the selections patch), I still get an error 409
data: {
code: 'ycbm_api_intent_misconfigured',
errors: [Array],
httpCode: 409,
httpStatusCode: 409,
message: 'Intent misconfigured',
status: 'CONFLICT',
type: 'YcbmApiException'
}
@hdev I will send you a direct message with a link so we can talk through your setup and issues.
Hey @Ben, I’ve found the mistake, now it works. First I made the same mistake as @g3Mark for the selections patch. Then Instead of “value” in the form Objects list I had “string”, I suppose it was the older way of calling your API.
Thanks to you two guys I was able to fix our YCBM api call.
Hi!
I have similar problem when i try to confirm a booking.
As of hdev, I have followed each step on the documentation:
All my calls are successful except the last one to confirm the booking, I always get a 409 ‘Intent misconfigured’.
- POST new intent
{
“subdomain”: “demo-monprospecteur”,
“selections”: {
“timeZone”: “America/Toronto”
}
}
- PATCH intent selections
{
“selections” : {
“form” : [ {
“id” : “EMAIL”,
“value” : “myself@domain.com”
}, {
“id” : “NAME”,
“value” : “Marcelo”
}, {
“id” : “PHONE”,
“value” : “+19999999999”
} ],
“teamMemberId” : “AUTO”,
“timeZone” : “America/Toronto”
}
}
- GET availability key
- GET avalabilities
5.5. PATCH intent to confirm booking* ← This one is returning 409.
{
“startsAt”: “1731355200000”,
“timeZone”: “America/Toronto”,
“units”: 1,
“numberOfSlots”: 1,
“teamMemberId”: “AUTO”,
“form”: [
{
“id”: “EMAIL”,
“value”: “myself@domain.com”
},
{
“id”: “NAME”,
“value”: “Marcelo”
},
{
“id”: “PHONE”,
“value”: “+19999999999”
}
]
}
Then i get:
{
“code”: “ycbm_api_intent_misconfigured”,
“errors”: [
{
“code”: “required_questions_answers_missing”,
“message”: “The following required questions were not answered [EMAIL]”,
“object”: “”
}
],
“httpCode”: 409,
“httpStatusCode”: 409,
“message”: “Intent misconfigured”,
“status”: “CONFLICT”,
“type”: “YcbmApiException”
}
I’m getting crazy with this error, have been trying for 4 hours to find the solution.
Any clues?
ok, I could make it work by adding everything that was in the PATCH (step 2) and the “startAt” in the first call (POST).