Saltar al contingut principal
GET

Obtenir una tarifa per ID

Scope:inventory:rates.read
https://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

priceListIdstringobligatori

ID 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/json
object
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/json
403Permisos insuficientsapplication/json
404Tarifa no trobadaapplication/json