Skip to main content

Expense

Represents information about an expense.

type Expense {
id: ID!
number: String
status: ExpenseStatus
effectiveAt: Date
dueAt: Date
currency: CurrencyCode
exchangeRate: Decimal
discount: Decimal
subtotal: Decimal
subtotalExcludingTax: Decimal
tax: Decimal
total: Decimal
notes: String
company: Company
person: Contact
lines: [ExpenseLine]
comments: [Comment!]!
followers: [User!]
creator: User
createdAt: DateTimeTz!
updatedAt: DateTimeTz!
deletedAt: DateTimeTz
properties(
where: ExpensePropertiesWhereWhereConditions
orderBy: [ExpensePropertiesOrderByOrderByClause!]
first: Int! = 10
after: String
): PropertyConnection!
projects(
where: ExpenseProjectsWhereWhereConditions
orderBy: [ExpenseProjectsOrderByOrderByClause!]
first: Int! = 10
after: String
): ProjectConnection!
tasks(
where: ExpenseTasksWhereWhereConditions
orderBy: [ExpenseTasksOrderByOrderByClause!]
first: Int! = 10
after: String
): TaskConnection!
letters(
where: ExpenseLettersWhereWhereConditions
orderBy: [ExpenseLettersOrderByOrderByClause!]
first: Int! = 10
after: String
): LetterConnection!
contracts(
where: ExpenseContractsWhereWhereConditions
orderBy: [ExpenseContractsOrderByOrderByClause!]
first: Int! = 10
after: String
): ContractConnection!
files(
where: ExpenseFilesWhereWhereConditions
orderBy: [ExpenseFilesOrderByOrderByClause!]
first: Int! = 10
after: String
): FileConnection!
}

Fields

Expense.id ● ID! non-null scalar

Expense's unique identifier.

Expense.number ● String scalar

The expense's number.

Expense.status ● ExpenseStatus enum

The expense's status.

Expense.effectiveAt ● Date scalar

Starting date of the expense.

Expense.dueAt ● Date scalar

Due date of the expense.

Expense.currency ● CurrencyCode enum

The expense's currency.

Expense.exchangeRate ● Decimal scalar

The expense's currency exchange rate.

Expense.discount ● Decimal scalar

The expense's discount percentage.

Expense.subtotal ● Decimal scalar

Total of all items on the expense before any expense level discount or exclusive tax is applied.

Expense.subtotalExcludingTax ● Decimal scalar

The subtotal of the expense before any expense level discount or tax.

Expense.tax ● Decimal scalar

The amount of tax on this expense. This is the sum of all the tax amounts on this expense.

Expense.total ● Decimal scalar

Total after discounts and taxes.

Expense.notes ● String scalar

The expense's notes.

Expense.company ● Company object

The expense's company.

Expense.person ● Contact object

The expense's client related person.

Expense.lines ● [ExpenseLine] list object

The individual line items that make up the expense.

Expense.comments ● [Comment!]! non-null object

The expense's comments.

Expense.followers ● [User!] list object

The expense's followers.

Expense.creator ● User object

The user who created this expense.

Expense.createdAt ● DateTimeTz! non-null scalar

The date and time when the expense was created.

Expense.updatedAt ● DateTimeTz! non-null scalar

The date and time when the expense was last updated.

Expense.deletedAt ● DateTimeTz scalar

The date and time when the expense was deleted.

Expense.properties ● PropertyConnection! non-null object

A list of properties associated with the expense.

Expense.properties.where ● ExpensePropertiesWhereWhereConditions input
Expense.properties.orderBy ● [ExpensePropertiesOrderByOrderByClause!] list input
Expense.properties.first ● Int! non-null scalar

Limits number of fetched items. Maximum allowed value: 50.

Expense.properties.after ● String scalar

A cursor after which elements are returned.

Expense.projects ● ProjectConnection! non-null object

A list of projects associated with the expense.

Expense.projects.where ● ExpenseProjectsWhereWhereConditions input
Expense.projects.orderBy ● [ExpenseProjectsOrderByOrderByClause!] list input
Expense.projects.first ● Int! non-null scalar

Limits number of fetched items. Maximum allowed value: 50.

Expense.projects.after ● String scalar

A cursor after which elements are returned.

Expense.tasks ● TaskConnection! non-null object

The expense's tasks.

Expense.tasks.where ● ExpenseTasksWhereWhereConditions input
Expense.tasks.orderBy ● [ExpenseTasksOrderByOrderByClause!] list input
Expense.tasks.first ● Int! non-null scalar

Limits number of fetched items. Maximum allowed value: 50.

Expense.tasks.after ● String scalar

A cursor after which elements are returned.

Expense.letters ● LetterConnection! non-null object

A list of letters associated with the expense.

Expense.letters.where ● ExpenseLettersWhereWhereConditions input
Expense.letters.orderBy ● [ExpenseLettersOrderByOrderByClause!] list input
Expense.letters.first ● Int! non-null scalar

Limits number of fetched items. Maximum allowed value: 50.

Expense.letters.after ● String scalar

A cursor after which elements are returned.

Expense.contracts ● ContractConnection! non-null object

A list of contracts associated with the expense.

Expense.contracts.where ● ExpenseContractsWhereWhereConditions input
Expense.contracts.orderBy ● [ExpenseContractsOrderByOrderByClause!] list input
Expense.contracts.first ● Int! non-null scalar

Limits number of fetched items. Maximum allowed value: 50.

Expense.contracts.after ● String scalar

A cursor after which elements are returned.

Expense.files ● FileConnection! non-null object

The expense's files.

Expense.files.where ● ExpenseFilesWhereWhereConditions input
Expense.files.orderBy ● [ExpenseFilesOrderByOrderByClause!] list input
Expense.files.first ● Int! non-null scalar

Limits number of fetched items. Maximum allowed value: 50.

Expense.files.after ● String scalar

A cursor after which elements are returned.

Returned By

approveExpense mutation ● createExpense mutation ● deleteExpense mutation ● duplicateExpense mutation ● expense query ● markExpenseAsPaid mutation ● restoreExpense mutation ● updateExpense mutation ● voidExpense mutation

Member Of

ExpenseEdge object