Invoice Data Models

Invoice is a document issued by a seller to request payment. Here Invoice is used for both Bill and Invoice.

Model IDEvent KeyDescription
accounting_invoice_infoinfo
accounting_invoice_lineItemslineItems
accounting_invoice_addressesaddresses
accounting_invoice_paymentspayments

Invoice Info

Model ID: accounting_invoice_info

FieldTypeDescription
idString
invoiceNumberString
createdAtString
updatedAtString
typeEnum[BILL, INVOICE]
dueDateDate
totalAmountDouble
remainingAmountDouble
contactString
notesString
statusEnum[PAID, DUE, VOID, OVERDUE, DRAFT, SENT, NOT_SPECIFIED]

Invoice entries

Model ID: accounting_invoice_lineItems

FieldTypeDescription
lineItemslist[InvoiceLineItem]

InvoiceLineItem

FieldTypeDescription
idString
nameString
quantityDouble
rateDouble
discountDouble

Invoice Addresses

Model ID: accounting_invoice_addresses

FieldTypeDescription
addresseslist[Address]Please refer to https://developers.getknit.dev/reference/base-models#address

Invoice Payments

Model ID: accounting_invoice_payments

FieldTypeDescription
paymentslist[PaymentLineItem]

PaymentLineItem

FieldTypeDescription
idString
dateDate
amountDouble
modeEnum[CASH , CHEQUE, ELECTRONIC_TRANSFER]
referenceNumberString
invoiceIdString
invoiceIdString
paymentLinkedToEnum[INVOICE, BILL]