Skip to main content
GET

List invoice attachments

Scope:sales:invoices.read
https://api.holded.com/api/v2/invoices/{invoiceId}/attachments

Returns the list of files attached to an invoice. Each attachment includes its identifier, file name, and size. Use the attachment ID to download or delete individual files.

Parameters

Path parameters

invoiceIdstringrequired

Invoice ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.holded.com/api/v2/invoices/{invoiceId}/attachments"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Responses

Response

json
{
  "items": [
    {}
  ],
  "cursor": "string",
  "has_more": false
}

Success responses

200List of attachmentsapplication/json
object
items[]object[]
cursorstring | null
has_moreboolean

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Invoice not foundapplication/json
429Rate limit exceededapplication/json