[#415] services of a specific service provider

Migrated from Redmine #415 | Author: elena streep
Status: New | Priority: High, I’m very impatient | Created: 2019-08-21


hi how to get services of a specific service provider with API?

Redmine Admin wrote:

hi,

you can use this method Company administration service methods - Company administration service methods - SimplyBook.me with unit_group_id (it is provider id) filter

elena streep wrote:

thanks for your response. but it not useful for me :frowning:

omar Naseef wrote:

If you submit the following message body to: https://user-api.simplybook.me/admin

Message Body:

{
“jsonrpc”: “2.0”,
“method”: “getUnitList”,
“params”: [true, true, -1, “”],
“id”: 0
}

you get back a result set that includes that provider’s services:

Result from SimplyBook

{
“result”: [
{
“id”: “24”,
“name”: “Austin Skate Park”,
“description”: “

Amenities:



kid-5e35a936ba10780016c449d8”,
“phone”: “”,
“email”: “”,
“station_id”: “1”,
“qty”: “1”,
“is_active”: “1”,
“position”: “1”,
“is_visible”: “1”,
“file_id”: null,
“seo_url”: null,
“picture”: null,
“picture_sub_path”: null,
“class_id”: null,
“picture_path”: null,
“event_map”: {
“12”: null,
“14”: null,
“13”: null
},
“services”: [
12,
14,
13
],
“user”: false,
“locations”: [
“6”
],
“position_in_location”: {
“6”: “3”
}
}
],
“id”: “0”,
“jsonrpc”: “2.0”
}