Saltar al contingut principal
GET

Obtenir el PDF del pressupost

Scope:sales:estimates.read
https://api.holded.com/api/v2/estimates/{estimateId}/pdf

Descarrega el pressupost com a fitxer PDF.

Paràmetres

Paràmetres de ruta

estimateIdstringobligatori

ID del pressupost (ObjectId hexadecimal de 24 caràcters)

Petició

python
import requests

url = "https://api.holded.com/api/v2/estimates/{estimateId}/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
404Pressupost no trobatapplication/json
429Límit de sol·licituds exceditapplication/json