UpdateInvoice
Update editable fields of a single invoice
Input variables
- invoiceId: number of the invoice
- json representation of editable fields of an Invoice
- publicNotes
- privateNotes
- issueDate
- dueDate
- invoiceRefId (helper string field for keeping reference with external accounting systems)
The response is the updated invoice, including its `payments`. For what `status`, `paymentFees` and `stripePaymentIntentId` mean on a payment — and why the payments array can total more than `paidAmount` — see the GetInvoice endpoint.
Path parameters
invoiceId
Headers
dreamclass-secret-key
Your DreamClass API key. Required on every request. Find it in the DreamClass app under Settings > Integrations.
tenant
Your tenant code: the DreamClass subdomain you sign in at (for https://myaccount.dreamclass.io it is "myaccount"), or your full white-labelled domain. Required on every request.
schoolCode
Your school code. Required on every request. Find it in the DreamClass app under Settings > Integrations.
Request
This endpoint expects an object.
publicNotes
privateNotes
issueDate
dueDate
invoiceRefId
Response
OK
id
invoiceRefId
amount
paidAmount
status
fullname
address
telephone
email
createdAt
issueDate
dueDate
privateNotes
publicNotes
fees
payments

