Press this button («All offers») to search and start appointment

Cookies are required to be enabled
For correct operation of the site, please enable in your browser settings: Cookies.

Get a list of services

Using the API, you can get a list of added services for your company
To do this, you need to send a [POST/GET] request to the url: https://joxup.com/api_pub/api.php
You will receive the response as a JSON string.

You need to specify parameters:
`type` - [!] (string) Key for get a list of services (get_services)
`cid` - [!] (int) Company ID (Available on the company page in the API section)
`apikey` = [!] (string) API key of the company (Available on the company page in the API section)

[!] - Required parameter
[X] - Optional parameter

Request example:

[GET]
https://joxup.com/api_pub/api.php?type=get_services&cid=146&apikey={APIKEY}

[POST]
$PostData = [
'type' => 'get_services',
'cid' => 146,
'apikey' => '{APIKEY}'
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://joxup.com/api_pub/api.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $PostData);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$output = curl_exec($ch);
curl_close($ch);


You will receive a response in JSON format. Example:

Array
(
[66] => Array
(
[id] => 66
[name] => service
[url] => service
[time] => 0
[created] => 1652164791
[price] => 15
[info_short] => Info short
[headp] => Header info
[curr_name] => USD
)

[67] => Array
(
[id] => 67
[name] => service2
[url] => service2
[time] => 0
[created] => 1652165983
[price] => 20
[info_short] => Info short
[headp] => Header info
[curr_name] => USD
)

[68] => Array
(
[id] => 68
[name] => service3
[url] => service3
[time] => 0
[created] => 1652192796
[price] => 30
[info_short] => Info short
[headp] => Header info
[curr_name] => USD
)

[status] => 200
)