Listado de servicios
sales:services.readhttps://api.holded.com/api/v2/servicesDevuelve una lista paginada de servicios de tu catálogo.
Parámetros
Parámetros de consulta
integeropcional= 50Número máximo de servicios a devolver por página. Por defecto 25, máximo 100
stringopcionalCursor opaco para paginación. Usa el valor devuelto en la respuesta anterior
booleanopcional= falseSi se incluyen los servicios archivados en los resultados
Petición
import requests
url = "https://api.holded.com/api/v2/services?limit=50&cursor=value&include_archived=false"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Respuestas
Respuesta
{
"items": [
{
"id": "507f1f77bcf86cd799439011",
"name": "Consulting",
"code": "SRV-001",
"description": "Consulting service",
"price": "100.00",
"cost": "50.00",
"tags": [
"string"
],
"taxes": [
"string"
],
"sales_channel_id": "string",
"color": "string",
"duration": "string",
"archived": false
}
],
"has_more": false,
"cursor": "string"
}Respuestas exitosas
200Listado de serviciosapplication/jsonUnique identifier of the service
Name of the service
Internal reference code for the service
Description of the service
Sale price as a decimal string
Cost price as a decimal string
List of tags attached to the service
List of tax identifiers applied to the service
Identifier of the sales channel assigned to this service
Hex color code used in the UI
Duration in minutes as a decimal string
Whether the service is archived
Whether there are more items on the next page
Opaque cursor to pass as ?cursor= to fetch the next page. Null on the last page.
Respuestas de error
401API key inválida o no proporcionadaapplication/json403Permisos insuficientesapplication/json429Límite de solicitudes excedidoapplication/json