Saltar al contingut principal
GET

Llistat de tarifes

Scope:inventory:rates.read
https://api.holded.com/api/v2/price-lists

Retorna la llista de totes les tarifes (llistes de preus) del teu compte.

Petició

python
import requests

url = "https://api.holded.com/api/v2/price-lists"
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": "Wholesale",
      "description": "Discounted prices for wholesale customers"
    }
  ]
}

Respostes exitoses

200Llistat de tarifesapplication/json
object
items[]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