Invoice
The Invoice type in Bunny's GraphQL API and its fields.
| Name | Type | Description |
|---|---|---|
| account | Account | Invoicing account — the account this invoice is billed to and lives on. |
| accountId | ID | |
| aging | String | |
| amount | Float | |
| amountDue | Float | |
| amountPaid | Float | |
| baseCurrencyId | ID | |
| baseCurrencyTotal | Float | |
| couponApplied | Boolean | |
| createdAt | ISO8601DateTime | |
| creditItem | InvoiceItem | |
| creditNotes | List (CreditNote) | |
| credits | Float | |
| currencyId | ID | |
| description | String | |
| dueAt | ISO8601Date | |
| effectivePayingAccount | Account | Account to show as the payer for this invoice: the account that paid it once it has been paid, otherwise the account currently expected to pay. |
| entity | Entity | |
| fromChildAccount | Account | Originating sub account when delegated; nil otherwise. |
| fromChildAccountId | ID | Originating sub account when this invoice was generated via hierarchy delegation; nil otherwise. |
| hasPaymentMethod | Boolean | |
| id | ID | IDs are null when object is previewed |
| internalNotes | String | Internal notes that are not included in the invoice PDF, only visible in the App |
| invoiceItems | List (InvoiceItem) | |
| isLegacy | Boolean | |
| issuedAt | ISO8601Date | |
| kind | String | |
| mergedInvoices | List (Invoice) | The invoices that were merged into this invoice |
| mergedToInvoice | Invoice | The invoice this invoice was merged into |
| netPaymentDays | Int | |
| notes | String | |
| number | String | Invoice number. Blank when invoice is being prepared |
| operations | List (String) | |
| paidAt | ISO8601Date | |
| payableId | ID | |
| payingAccount | Account | Account whose payment method pays this invoice (= account.paying_account; resolved at runtime). |
| paymentApplications | List (PaymentApplication) | Payments applied to this invoice |
| paymentFailedAt | ISO8601DateTime | |
| paymentFailureReason | String | |
| payments | PaymentConnection | |
| poNumber | String | |
| portalUrl | String | URL to the invoice within the customer portal |
| quote | Quote | |
| quoteId | ID | |
| sendInvoiceTo | String | Email address where the invoice was last sent to |
| smallUnitAmountDue | BigInt | |
| sourceAccount | Account | Account this invoice was generated for: from_child_account when delegated, otherwise account. |
| state | InvoiceState | |
| subtotal | Float | |
| taxAmount | Float | |
| taxRate | Float | |
| transactionRecord | Transaction | |
| updatedAt | ISO8601DateTime | |
| url | String | URL to the invoice within the Bunny app |
| uuid | ID |