GET
Get credit note PDF
Scope:
sales:invoices.readhttps://api.holded.com/api/v2/credit-notes/{creditNoteId}/pdfDownloads the credit note as a PDF file. The response Content-Type is `application/pdf`. The PDF is generated using the template configured in your account settings.
Parameters
Path parameters
creditNoteId
stringrequiredCredit Note ID (24-char hex ObjectId)
Request
python
import requests
url = "https://api.holded.com/api/v2/credit-notes/{creditNoteId}/pdf"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Responses
Response
json
"string"Success responses
200PDF binary contentapplication/pdfstring<binary>
Error responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Credit note not found.application/json429Rate limit exceededapplication/json500Internal server errorapplication/jsonobject
typestring
titlestring
statusinteger
detailstring