GET
Obtenir una tarifa per ID
Scope:
inventory:rates.readhttps://api.holded.com/api/v2/price-lists/{priceListId}Recupera els detalls d'una tarifa específica pel seu identificador únic.
Paràmetres
Paràmetres de ruta
priceListId
stringobligatoriID de la tarifa (ObjectId hexadecimal de 24 caràcters)
Petició
python
import requests
url = "https://api.holded.com/api/v2/price-lists/{priceListId}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Respostes
Resposta
json
{
"id": "507f1f77bcf86cd799439011",
"name": "Wholesale",
"description": "Discounted prices for wholesale customers"
}Respostes exitoses
200Tarifa trobadaapplication/jsonobject
idstring
Unique identifier of the price list
namestring
Display name of the price list
descriptionstring | null
Optional description of the price list
Respostes d'error
401API key no vàlida o no proporcionadaapplication/json403Permisos insuficientsapplication/json404Tarifa no trobadaapplication/json