[#1411] Problem creating Service with specific Provider / changing existing Service-Provider

Migrated from Redmine #1411 | Author: Claus Schaufler
Status: Feedback | Priority: Normal | Created: 2025-05-09


Hello,

I’m having problems changing / specifying a Provider for a Service.

As an example, I’m receiving the following Object from the API:
{
“id”: 49,
“name”: “Test”,
“description”: “Test”,
“price”: null,
“currency”: “EUR”,
“deposit_price”: null,
“tax_id”: null,
“tax”: null,
“duration”: 60,
“buffer_time_after”: 0,
“recurring_settings”: null,
“picture”: null,
“picture_preview”: null,
“memberships”: ,
“providers”: [
2
],
“is_active”: true,
“is_visible”: true,
“duration_type”: null,
“limit_booking”: 0,
“min_group_booking”: null
}

I then change the fields I want to change and send the following (changed) Object to “https://user-api-v2.simplybook.me/admin/services/49
{
“id”: 49,
“name”: “Test”,
“description”: “Test 2”,
“price”: null,
“currency”: “EUR”,
“deposit_price”: null,
“tax_id”: null,
“tax”: null,
“duration”: 120,
“buffer_time_after”: 0,
“recurring_settings”: null,
“picture”: null,
“picture_preview”: null,
“memberships”: ,
“providers”: [
4
],
“is_active”: true,
“is_visible”: true,
“duration_type”: null,
“limit_booking”: 0,
“min_group_booking”: null
}

The API then returns the following Object in response:
{
“id”: 49,
“name”: “Test”,
“description”: “Test 2”,
“price”: null,
“currency”: “EUR”,
“deposit_price”: null,
“tax_id”: null,
“tax”: null,
“duration”: 120,
“buffer_time_after”: 0,
“recurring_settings”: null,
“picture”: null,
“picture_preview”: null,
“memberships”: ,
“providers”: [
2
],
“is_active”: true,
“is_visible”: true,
“duration_type”: null,
“limit_booking”: 0,
“min_group_booking”: null
}

description and duration changed as specified, just the change to providers was ignored. (Available provider ids are 2, 3 and 4. All three of them are set by default when creating a new Service)

What am I missing/doing wrong?

Sincerely,

Claus Schaufler

Dmytro Bondarev wrote:

Hi, sorry at the moment the API has limited functionality and it does not accept linked providers.

Claus Schaufler wrote:

Hi,

Thank you for the reply! At least now I know I’m not going crazy.

Is there an estimate as to when this functionality will be added to the API?