Saltar al contingut principal
GET

Llistat d'ubicacions de reserves

Scope:crm:booking-services.read
https://api.holded.com/api/v2/booking-locations

Retorna totes les ubicacions de reserves del teu compte.

Petició

python
import requests

url = "https://api.holded.com/api/v2/booking-locations"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Respostes

Resposta

json
{
  "items": [
    {
      "id": "507f1f77bcf86cd799439011",
      "name": "string",
      "description": "string",
      "active": false,
      "available_services": [
        "string"
      ]
    }
  ]
}

Respostes exitoses

200Llistat d'ubicacionsapplication/json
object
items[]object[]
idstring

Unique identifier of the location

namestring

Name of the location

descriptionstring

Description of the location

activeboolean

Whether the location is active

available_services[]string[]

List of active service identifiers

Respostes d'error

401API key no vàlida o no proporcionadaapplication/json
403Permisos insuficientsapplication/json
429Límit de sol·licituds exceditapplication/json