Retrieve a credit note
https://app.speybooks.com/api/v1/credit-notes/{id}Returns one credit note as the full document object. Header totals
(subtotal, vatAmount, total) are integer pence. Each line
carries quantity as a full-scale decimal string, unitPrice as
an integer count of micro-pounds and vatRate as an integer count of
basis points (ADR-002 section 5: a rate's minor unit is finer than a
penny), and netAmount, vatAmount and lineTotal as integer
pence read from the stored conserved columns
(lineTotal = netAmount + vatAmount, enforced at the database).
reason is the HMRC decrease reason (from metadata.reason);
voidReason is the dedicated column, null unless the note is voided.
settlement carries allocatedTotal and remaining over the
live set, and entries, every allocation from the base table, live and
reversed, each with isLive and, when reversed, reversedAt,
reversedBy and reason. related lists the invoices the note
currently credits, each a typed id and a link.
A credit note absent in the caller's organisation returns 404.
unitPrice is micro-pounds and vatRate is basis points (ADR-002 section 5): integer and lossless, where the invoice still serves the same-named fields under-scaled as pence and percent, a recorded deviation reconciled at the invoice next major. availableTransitions is not served yet; it joins with the first mutating route.
Path parameters
idstringrequiredResponse
Show response fields
contactobjectShow child attributes
idstringlinkstringnamestringcontactIdstringcreatedAtstringdate-timecreditNoteNumbernullstringcreditNoteTypestringidstringissueDatestringlinesarray<object>Show child attributes
accountIdnullstringdescriptionstringidstringlineTotalintegernetAmountintegerquantitystringunitPriceintegervatAmountintegervatRateintegernotesnullstringreasonnullstringrelatedarray<object>Show child attributes
idstringlinkstringtypestringsettlementobjectShow child attributes
allocatedTotalintegerentriesarray<object>Show child attributes
actorobjectamountintegercreatedAtstringidstringinvoiceobjectisLivebooleanreasonnullstringreversedAtnullstringreversedBynullstringremainingintegerstatusstringsubtotalintegertermsnullstringtotalintegerupdatedAtstringdate-timevatAmountintegervoidReasonnullstring