GET
Llistar adjunts de la rectificativa de venda
Scope:
sales:invoices.readhttps://api.holded.com/api/v2/receipt-notes/{receiptNoteId}/attachmentsRetorna la llista de fitxers adjunts a una rectificativa de venda.
Paràmetres
Paràmetres de ruta
receiptNoteId
stringobligatoriID de la rectificativa de venda (ObjectId hexadecimal de 24 caràcters)
Petició
python
import requests
url = "https://api.holded.com/api/v2/receipt-notes/{receiptNoteId}/attachments"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Respostes
Resposta
json
{
"items": [
{}
],
"cursor": "string",
"has_more": false
}Respostes exitoses
200Llistat d'adjuntsapplication/jsonobject
items[]object[]
cursorstring | null
has_moreboolean
Respostes d'error
401API key no vàlida o no proporcionadaapplication/json403Permisos insuficientsapplication/json404Rectificativa de venda no trobadaapplication/json429Límit de sol·licituds exceditapplication/json500Error intern del servidorapplication/jsonobject
typestring
titlestring
statusinteger
detailstring