Saltar al contingut principal
GET

Obtenir PDF d'albarà

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

Descarrega l'albarà com a fitxer PDF.

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}/pdf"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

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

Respostes

Resposta

json
"string"

Respostes exitoses

200Contingut PDF binariapplication/pdf
string<binary>

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