Cannot Confirm Intent

Hi I followed the instructions on setting up an intent through the API. When I try to confirm the intent to create the booking I get this error:

"data": {
            "code": "ycbm_api_http_invalid_payload",
            "errors": [],
            "httpCode": 400,
            "httpStatusCode": 400,
            "message": "Required payload is missing",
            "status": "bad_request",
            "type": "YcbmApiException"
        },

Here is the last confirmed payload from the patch before

"data": {
            "bookingId": null,
            "createdAt": 1760032420000,
            "id": "itt_71d471e7-be0b-4c2c-b8a2-c4064d636c49",
            "intentStatus": "SETTING_UP",
            "selections": {
                "appointmentTypeIds": [
                    "jsid8936873"
                ],
                "duration": null,
                "form": [
                    {
                        "id": "EMAIL",
                        "value": "xxxx@hotmail.com"
                    },
                    {
                        "id": "FNAME",
                        "value": "Tom"
                    },
                    {
                        "id": "LNAME",
                        "value": "Sims"
                    }
                ],
                "location": null,
                "smsConsent": null,
                "startsAt": 1760040000000,
                "teamMemberId": null,
                "timeZone": "America/Los_Angeles",
                "units": null
            }
        },

I dont have teams enabled. When I try to TeamMemberID I get an error saying I can’t set it. I also cant set duration (no error) and when I try to set units I get “Units not editable”

@tsims if you send a PATCH to v1/intents/itt_71d471e7-be0b-4c2c-b8a2-c4064d636c49/confirm with a blank payload.
{}

You should get more information. This is what I see:

{

"code": "ycbm_api_unavailable_time_slot",

"errors":[

{

"code": "notice_time_min",

"message": "Slot is after minimum notice time"

}

],

"httpCode": 410,

"httpStatusCode": 410,

"message": "The selected time slot is no longer available",

"status": "gone",

"type": "YcbmApiException"

}

your startsAt time is outside of your availability window (page rules).

1 Like

Thanks! I realized I wasnt sending a blank body in make.com (You have to set the body to raw, content to Json, and the pass {} in the body.

2 Likes