Saltar al contingut principal
GET

Llistar adjunts del tiquet de venda

Scope:sales:receipts.read
https://api.holded.com/api/v2/sales-receipts/{salesReceiptId}/attachments

Retorna la llista de fitxers adjunts a un tiquet de venda.

Paràmetres

Paràmetres de ruta

salesReceiptIdstringobligatori

ID del rebut de venda (ObjectId hexadecimal de 24 caràcters)

Petició

python
import requests

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