Services
Business+Retrieve available services.
Read Only
This endpoint only supports GET requests.
Required scopes:
services
Feature flag:
services
Endpoints
GET
/api/v1/services
List all services
GET
/api/v1/services/{id}
Retrieve a single service
Query Parameters
| Parameter | Description |
|---|---|
search
|
Search term to filter results |
category_id
|
Filter by service category ID |
event_key
|
Filter by event key |
is_active
|
Filter by active status (0 or 1) |
include
|
Include related data (category) |
Response Schema
| Field | Type |
|---|---|
id
|
integer |
category_id
|
integer|null |
category_name
|
string|null |
service_key
|
string|null |
service_name
|
string |
description
|
string|null |
short_description
|
string|null |
unit
|
string |
unit_label
|
string|null |
base_price
|
float |
tax_rate
|
float |
min_quantity
|
integer |
max_quantity
|
integer|null |
quantity_step
|
integer |
requires_specification
|
boolean |
specification_label
|
string|null |
specification_placeholder
|
string|null |
lead_time_days
|
integer |
image_filename
|
string|null |
is_active
|
boolean |
sort_order
|
integer |
created_at
|
string |
updated_at
|
string |
Code Examples
curl -X GET "https://your-tenant.plandocket.com/api/v1/services" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
<?php
$apiKey = 'YOUR_API_KEY';
$baseUrl = 'https://your-tenant.plandocket.com';
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $baseUrl . '/api/v1/services',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $apiKey,
'Content-Type: application/json',
],
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
curl_close($ch);
print_r($data);
const apiKey = 'YOUR_API_KEY';
const baseUrl = 'https://your-tenant.plandocket.com';
const response = await fetch(`${baseUrl}/api/v1/services`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${apiKey}`,
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
import requests
api_key = 'YOUR_API_KEY'
base_url = 'https://your-tenant.plandocket.com'
headers = {
'Authorization': f'Bearer {api_key}',
'Content-Type': 'application/json',
}
response = requests.get(f'{base_url}/api/v1/services', headers=headers)
data = response.json()
print(data)
Sample Response
200 OK
{
"data": {
"service_id": 1,
"created_at": 1704067200,
"updated_at": 1704067200
},
"meta": {
"request_id": "req_abc123"
}
}