List credit note attachments
Scope: sales:invoices.read https://api.alladdin.com/api/v2/credit-notes/{creditNoteId}/attachments
Returns the list of files attached to a credit note.
Each attachment includes its identifier, file name, and size.
Parameters
Path parameters
creditNoteId string required
Credit Note ID (24-char hex ObjectId)
Request
import requests
url = "https://api.alladdin.com/api/v2/credit-notes/{creditNoteId}/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 Credit note not found. application/json 429 Rate limit exceeded application/json 500 Internal server error application/json object type string title string status integer detail string
