[#817] Store additional data while making booking

Migrated from Redmine #817 | Author: Rishabh Shukla
Status: Feedback | Priority: High, I’m very impatient | Created: 2021-11-12


Hi,

Is there a provision to store additional data while making a booking using this endpoint: POST https://user-api-v2.simplybook.me/admin/bookings

Body of call: {
“start_datetime”: “2021-11-29 12:00:00”,
“provider_id”: 8,
“service_id”: 4,
“client_id”: 22,
“additional_fields”: [
{
“field”: “info”,
“value”: “asdadasd”
}
]
}

Response: {
“code”: 400,
“message”: “”,
“data”: {
“additional_fields”: [
{
“field”: [
“No record matching info was found”
]
}
]
},
“message_data”:
}

Dmytro Bondarev wrote:

Hi, You should use field name from https://simplybook.me/en/api/developer-api/tab/rest_api#method_GET_/admin/additional-fields

Rishabh Shukla wrote:

Hi, intake forms custom feature has to be enabled for this right?

Current response of endpoint: https://user-api-v2.simplybook.me/admin/additional-fields?filter[service_id]=4
{
“data”: ,
“metadata”: {
“items_count”: 0,
“pages_count”: 0,
“page”: 1,
“on_page”: 10
}
}

Dmytro Bondarev wrote:

Yes

(Short original content)