List purchase attachments
Scope: accounting:purchases.read https://api.alladdin.com/api/v2/purchases/{purchaseId}/attachments
Returns the list of files attached to a purchase invoice.
Each attachment includes its identifier, file name, and size.
Parameters
Path parameters
purchaseId string required
Purchase ID (24-char hex ObjectId)
Request
import requests
url = "https://api.alladdin.com/api/v2/purchases/{purchaseId}/attachments"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Responses
Response
{
"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 Purchase not found application/json 429 Rate limit exceeded application/json
