List sales receipt attachments
Scope: sales:receipts.read https://api.alladdin.com/api/v2/sales-receipts/{salesReceiptId}/attachments
Returns the list of files attached to a sales receipt.
Each attachment includes its identifier, file name, and size.
Parameters
Path parameters
salesReceiptId string required
Sales Receipt ID (24-char hex ObjectId)
Request
import requests
url = "https://api.alladdin.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())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 Sales receipt not found. application/json 429 Rate limit exceeded application/json
