Saltar al contingut principal
GET

Llistar adjunts de la factura rectificativa

Scope:sales:invoices.read
https://api.holded.com/api/v2/credit-notes/{creditNoteId}/attachments

Retorna la llista de fitxers adjunts a una factura rectificativa.

Paràmetres

Paràmetres de ruta

creditNoteIdstringobligatori

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

Petició

python
import requests

url = "https://api.holded.com/api/v2/credit-notes/{creditNoteId}/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/json
object
items[]object[]
cursorstring | null
has_moreboolean

Respostes d'error

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