GET
Obtenir un adjunt del pressupost
Scope:
sales:estimates.readhttps://api.holded.com/api/v2/estimates/{estimateId}/attachments/{attachmentId}Descarrega un fitxer adjunt d'un pressupost.
Paràmetres
Paràmetres de ruta
estimateId
stringobligatoriID del pressupost (ObjectId hexadecimal de 24 caràcters)
attachmentId
stringobligatoriID de l'adjunt (ObjectId hexadecimal de 24 caràcters)
Petició
python
import requests
url = "https://api.holded.com/api/v2/estimates/{estimateId}/attachments/{attachmentId}"
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 binari de l'adjuntapplication/octet-streamstring<binary>
Respostes d'error
401API key no vàlida o no proporcionadaapplication/json403Permisos insuficientsapplication/json404Pressupost o adjunt no trobatapplication/json429Límit de sol·licituds exceditapplication/json