Skip to content

Invoice

An invoice record with its associated AR transaction.

Fields

NameTypeFormatNullableDescriptionExample
arTranIdinteger—NoAssociated AR transaction identifier.125890
invoiceNumberstring—NoUnique invoice number for client reference."INV-2024-4850"
dueDatestringdate-time (ISO 8601)YesInvoice payment due date."2024-04-24T05:00:00"
statusstringenum (InvoiceStatus)NoCurrent invoice status."POSTED"
taxnumberdecimal, USDYesTax amount charged on the invoice.0
interestnumberdecimal, USDYesInterest charges applied to the invoice.0
descriptionstring—YesAdditional invoice description or notes.null
createdAtstringdate-time (ISO 8601)NoRecord creation timestamp."2024-05-12T22:50:20.595961+00:00"
updatedAtstringdate-time (ISO 8601)NoLast modification timestamp."2024-05-12T22:50:20.595961+00:00"
postedAtstringdate-time (ISO 8601)YesWhen the invoice was posted. Distinct from ar_tran.transactionDate, the date the invoice carries."2024-05-12T22:50:20.595961+00:00"
deliveryMethodstring—YesHow the invoice was delivered: EMAIL, DOWNLOAD, EMAIL_AND_DOWNLOAD or POST_ONLY."EMAIL"
emailRecipientsstring—YesEmail recipients the invoice was sent to."ap@techflow.example"
invoiceFileIdinteger—YesIdentifier of the invoice PDF file.88231
reversalReasonstring—YesReason recorded when the posted invoice was reversed.null
reversedAtstringdate-time (ISO 8601)YesWhen the invoice was reversed.null
reversedByStaffIdinteger—YesIdentifier of the staff member who reversed the invoice.null
ar_tranobjectARTransactionBasicYesAssociated AR transaction details.—

InvoiceStatus

One of: PENDING, POSTED, PAID, OVERDUE, CANCELLED, DRAFT.

ARTransactionBasic

NameTypeFormatNullableDescriptionExample
idinteger—NoAR transaction identifier.125890
pmsRefstring—YesPractice-management-system reference."240815"
transactionDatestringdate-time (ISO 8601)YesTransaction date."2024-03-22T05:00:00"
amountnumberdecimal, USDYesTransaction amount.4250.00
allocatednumberdecimal, USDYesAllocated amount.4250.00
clientIdinteger—YesClient identifier.7720
allocatedInCurrencynumberdecimalYesApplied amount in the transaction currency.null
amountInCurrencynumberdecimalYesTransaction amount in the transaction currency.null
businessEntityIdinteger—YesIdentifier of the firm business entity.1
createdAtstringdate-time (ISO 8601)NoWhen the AR transaction was created."2024-05-12T22:50:20.595961+00:00"
currencyIdinteger—YesIdentifier of the currency of the amounts ending in InCurrency. Null when no currency is recorded.null
customFieldValuesobject—YesFirm-defined custom fields, keyed by field name.null
exchangeRatenumberdecimalYesExchange rate to the firm currency.null
internalNotesstring—YesInternal notes on the transaction, visible only to firm staff.null
isActiveboolean—YesWhether the transaction is active; inactive transactions were deleted or reversed.true
isCreatedByAiwynboolean—NoWhether the transaction was created in Aiwyn.true
isManagedByAiwynboolean—NoWhether Aiwyn manages the transaction's lifecycle.false
isPostedboolean—NoWhether the transaction is posted.true
isReconciledboolean—YesWhether the transaction is reconciled.null
managerStaffIdinteger—YesIdentifier of the manager staff member.301
notesstring—YesNotes on the transaction visible to the client.null
partnerStaffIdinteger—YesIdentifier of the partner staff member.302
pmsCreatedAtstringlocal date-timeYesWhen the transaction was created in your practice management system, as a local date-time with no time-zone offset. Null when the system does not provide it; for transactions created in Aiwyn, when Aiwyn created them."2024-03-22T05:00:00"
projectIdinteger—YesIdentifier of the project the transaction belongs to.2514
responsibleStaffIdinteger—YesIdentifier of the responsible staff member.303
typestring—NoAR transaction type, for example Invoice, Receipt, Credit, Debit, LateFee, ProcessingFee, Refund, Dispute, DraftInvoice, Prepayment, ReceiptAdj, BadDebt, InternationalFee, LateFeeReversal or Unknown."Invoice"
updatedAtstringdate-time (ISO 8601)NoWhen the AR transaction was last updated."2024-05-12T22:50:20.595961+00:00"
clientobjectClientBasicYesBasic client details.—