Credit notes
Get a credit note
Returns a credit note by its identifier: what is refunded to the customer and against which invoice, the same card as GET /api.
invoices:readinvoices:read- 120/min
- Server annotation: Read-only
- Server annotation: Idempotent
Result
generated from the schema
The signed tax document, the tax breakdown, the lines and the reason for the correction are not published.
Arguments
Credit note identifier.
Limits: min length 1
Result
On success the result carries structuredContent with data and meta. These are the attributes of data.
Show the attributes of data
Credit note identifier.
Credit note number; null while it is a draft.
Document lifecycle status: draft, validated or voided (the same values the status filter takes).
Available options: draft, validated, voided
Issue date in ISO 8601 UTC; null if not recorded.
Currency, as an ISO 4217 code.
Contact the credit note is issued to; null if not recorded.
Invoice this credit note rectifies; null if it is not attached to any.
Subtotal before discounts and taxes, as a decimal string.
Limits: pattern ^-?\d+\.\d{2}$
Tax total, as a decimal string.
Limits: pattern ^-?\d+\.\d{2}$
Taxable base, as a decimal string.
Limits: pattern ^-?\d+\.\d{2}$
Total including taxes, as a decimal string.
Limits: pattern ^-?\d+\.\d{2}$
Creation date in ISO 8601 UTC.
Last modification date in ISO 8601 UTC.
An error is a result with isError: true and the problem in content[0].; there is no structuredContent. See Errors.
The same operation by REST
This tool runs GET /api/v1/credit-notes/{creditNoteId}.
Related pages
Link to this section: Related pagesCredit notes
Get a credit note
Returns a credit note by its identifier: what is refunded to the customer and against which invoice, the same card as
GET /api./v1 /credit-notes Guides
Safe writes
An assistant that can write can also write the wrong thing. Decide which tools need a person, retry without duplicating, and know what a write sets in motion.
Guides
Errors
A tool error is a result with
isError: trueand the problem in the first text block. Branch on itscode.
Was this page helpful?