Saltar al contingut principal
GET

Llistar adjunts d'albarà

Scope:inventory:shipments.read
https://api.holded.com/api/v2/waybills/{waybillId}/attachments

Retorna la llista de fitxers adjunts a un albarà.

Paràmetres

Paràmetres de ruta

waybillIdstringobligatori

ID de l'albarà (ObjectId hexadecimal de 24 caràcters)

Petició

python
import requests

url = "https://api.holded.com/api/v2/waybills/{waybillId}/attachments"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

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

Respostes

Resposta

json
{
  "items": [
    {}
  ]
}

Respostes exitoses

200Llistat d'adjuntsapplication/json
object
items[]object[]

Respostes d'error

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