Intake questions throwing 500 errors

account: theclubroomnz

When making a booking I use the API to get the intake questions for the service, then when making the booking call I use the ids to answer the questions. E.g

Intake response:

{

"data": \[

    {

        "id": 1,

        "name": "bd0c6585c9880a82e582f185df0f80dc",

        "field_name": "What are you looking at getting fitted for?",

        "field_type": "textarea",

        "field_options": \[

            ""

        \],

        "default_value": null,

        "optional": true,

        "is_visible": true,

        "show_for_all_services": false

    }

\],

"metadata": {

    "items_count": 1,

    "pages_count": 1,

    "page": 1,

    "on_page": 10

}

}

Booking Request:
{

"count": 1,

"start_datetime": "2026-05-22 18:00:00",

"location_id": "2",

"provider_id": "34",

"service_id": "25",

"client_id": 2758,

"additional_fields": {

    "bd0c6585c9880a82e582f185df0f80dc": "clubs"

}

}

I then get a 500 response from the server

Hi, any update on this?

Hi, if you are using our admin REST API, additional fields have to be sent as an array of {field, value} objects, here is the doc API documentation | SimplyBook.me Online Scheduling

Example from there:
POST https://user-api-v2.simplybook.me/admin/bookings
Content-Type: application/json
X-Company-Login:
X-Token:

{
“count”: 1,
“start_datetime”: “2020-12-02 09:30:00”,
“location_id”: 2,
“category_id”: 2,
“provider_id”: 4,
“service_id”: 3,
“client_id”: 10,
“additional_fields”: [
{
“field”: “e5a1d0e5312b9515874406a89c986765”,
“value”: “test”
},
{
“field”: “3adae019f9183fcfb7b02fcef54b094d”,
“value”: “Option 1”
},
{
“field”: “9c3ce1fc22bd50cbb21bdfcfd2f850bf”,
“value”: “988”
},
{
“field”: “1a2e4bdc78b9fd4593d8924b25f38244”,
“value”: “Select 2”
}
]
}

1 Like