API / Reference / Credit Notes
Get credit note document
GET
https://api.light.inc/v1/credit-notes/{creditNoteId}/document
Returns the attached PDF document for a credit note
Answers 307 Temporary Redirect to a pre-signed URL, not the file. A credit note created through this API has no PDF behind that URL; only notes created from an uploaded document have one.
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Path parameters
-
creditNoteIdstring · uuidrequired
Response
Returns a file (application/pdf) rather than JSON.