An invoice record with its associated AR transaction.
| Name | Type | Format | Nullable | Description | Example |
|---|---|---|---|---|---|
arTranId | integer | — | No | Associated AR transaction identifier. | 125890 |
invoiceNumber | string | — | No | Unique invoice number for client reference. | "INV-2024-4850" |
dueDate | string | date-time (ISO 8601) | Yes | Invoice payment due date. | "2024-04-24T05:00:00" |
status | string | enum (InvoiceStatus) | No | Current invoice status. | "POSTED" |
tax | number | decimal, USD | Yes | Tax amount charged on the invoice. | 0 |
interest | number | decimal, USD | Yes | Interest charges applied to the invoice. | 0 |
description | string | — | Yes | Additional invoice description or notes. | null |
createdAt | string | date-time (ISO 8601) | No | Record creation timestamp. | "2024-05-12T22:50:20.595961+00:00" |
updatedAt | string | date-time (ISO 8601) | No | Last modification timestamp. | "2024-05-12T22:50:20.595961+00:00" |
postedAt | string | date-time (ISO 8601) | Yes | When the invoice was posted. Distinct from ar_tran.transactionDate, the date the invoice carries. | "2024-05-12T22:50:20.595961+00:00" |
deliveryMethod | string | — | Yes | How the invoice was delivered: EMAIL, DOWNLOAD, EMAIL_AND_DOWNLOAD or POST_ONLY. | "EMAIL" |
emailRecipients | string | — | Yes | Email recipients the invoice was sent to. | "ap@techflow.example" |
invoiceFileId | integer | — | Yes | Identifier of the invoice PDF file. | 88231 |
reversalReason | string | — | Yes | Reason recorded when the posted invoice was reversed. | null |
reversedAt | string | date-time (ISO 8601) | Yes | When the invoice was reversed. | null |
reversedByStaffId | integer | — | Yes | Identifier of the staff member who reversed the invoice. | null |
ar_tran | object | ARTransactionBasic | Yes | Associated AR transaction details. | — |
One of: PENDING, POSTED, PAID, OVERDUE, CANCELLED, DRAFT.
| Name | Type | Format | Nullable | Description | Example |
|---|---|---|---|---|---|
id | integer | — | No | AR transaction identifier. | 125890 |
pmsRef | string | — | Yes | Practice-management-system reference. | "240815" |
transactionDate | string | date-time (ISO 8601) | Yes | Transaction date. | "2024-03-22T05:00:00" |
amount | number | decimal, USD | Yes | Transaction amount. | 4250.00 |
allocated | number | decimal, USD | Yes | Allocated amount. | 4250.00 |
clientId | integer | — | Yes | Client identifier. | 7720 |
allocatedInCurrency | number | decimal | Yes | Applied amount in the transaction currency. | null |
amountInCurrency | number | decimal | Yes | Transaction amount in the transaction currency. | null |
businessEntityId | integer | — | Yes | Identifier of the firm business entity. | 1 |
createdAt | string | date-time (ISO 8601) | No | When the AR transaction was created. | "2024-05-12T22:50:20.595961+00:00" |
currencyId | integer | — | Yes | Identifier of the currency of the amounts ending in InCurrency. Null when no currency is recorded. | null |
customFieldValues | object | — | Yes | Firm-defined custom fields, keyed by field name. | null |
exchangeRate | number | decimal | Yes | Exchange rate to the firm currency. | null |
internalNotes | string | — | Yes | Internal notes on the transaction, visible only to firm staff. | null |
isActive | boolean | — | Yes | Whether the transaction is active; inactive transactions were deleted or reversed. | true |
isCreatedByAiwyn | boolean | — | No | Whether the transaction was created in Aiwyn. | true |
isManagedByAiwyn | boolean | — | No | Whether Aiwyn manages the transaction's lifecycle. | false |
isPosted | boolean | — | No | Whether the transaction is posted. | true |
isReconciled | boolean | — | Yes | Whether the transaction is reconciled. | null |
managerStaffId | integer | — | Yes | Identifier of the manager staff member. | 301 |
notes | string | — | Yes | Notes on the transaction visible to the client. | null |
partnerStaffId | integer | — | Yes | Identifier of the partner staff member. | 302 |
pmsCreatedAt | string | local date-time | Yes | When 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" |
projectId | integer | — | Yes | Identifier of the project the transaction belongs to. | 2514 |
responsibleStaffId | integer | — | Yes | Identifier of the responsible staff member. | 303 |
type | string | — | No | AR transaction type, for example Invoice, Receipt, Credit, Debit, LateFee, ProcessingFee, Refund, Dispute, DraftInvoice, Prepayment, ReceiptAdj, BadDebt, InternationalFee, LateFeeReversal or Unknown. | "Invoice" |
updatedAt | string | date-time (ISO 8601) | No | When the AR transaction was last updated. | "2024-05-12T22:50:20.595961+00:00" |
client | object | ClientBasic | Yes | Basic client details. | — |