Saltar al contingut principal
GET

Obtenir un adjunt de la rectificativa de venda

Scope:sales:invoices.read
https://api.holded.com/api/v2/receipt-notes/{receiptNoteId}/attachments/{attachmentId}

Descarrega un fitxer adjunt d'una rectificativa de venda.

Paràmetres

Paràmetres de ruta

receiptNoteIdstringobligatori

ID de la rectificativa de venda (ObjectId hexadecimal de 24 caràcters)

attachmentIdstringobligatori

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

Petició

python
import requests

url = "https://api.holded.com/api/v2/receipt-notes/{receiptNoteId}/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-stream
string<binary>

Respostes d'error

401API key no vàlida o no proporcionadaapplication/json
403Permisos insuficientsapplication/json
404Rectificativa de venda o adjunt no trobatapplication/json
429Límit de sol·licituds exceditapplication/json
500Error intern del servidorapplication/json
object
typestring
titlestring
statusinteger
detailstring