Alladdin

Work in progress

Site en construction

الموقع قيد الإنشاء

Alladdin
GET

List invoice attachments

Scope: sales:invoices.read https://api.alladdin.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

invoiceId string required

Invoice ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.alladdin.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

200 List of attachments application/json object items[] object[] cursor string | null has_more boolean

Error responses

401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Invoice not found application/json 429 Rate limit exceeded application/json

← PreviousSet invoice pipeline →

Next →List invoices →