Magidoc

expenses
Query

Arguments

#

limit = 10

Non-null

The number of results to fetch (default 10, max 1000)

offset

Non-null

The offset to use to fetch

fromAccount

Reference of an account that is the payee of an expense

account

Reference of an account that is the payer of an expense

host

Return expenses only for this host

createdByAccount

Return expenses only created by this INDIVIDUAL account

status

Use this field to filter expenses on their statuses

type

Use this field to filter expenses on their type (RECEIPT/INVOICE)

tag

Only expenses that match these tags

orderBy = { "field": "CREATED_AT", "direction": "DESC" }

Non-null

The order of results

minAmount

Only return expenses where the amount is greater than or equal to this value (in cents)

maxAmount

Only return expenses where the amount is lower than or equal to this value (in cents)

payoutMethodType

Only return expenses that use the given type as payout method

dateFrom

Only return expenses that were created after this date

dateTo

Only return expenses that were created after this date

searchTerm

The term to search

includeChildrenExpenses

Non-null

Whether to include expenses from children of the account (Events and Projects)

customData

Only return expenses that contains this custom data. Requires being an admin of the collective, payee or host.

chargeHasReceipts

Filter expenses of type charges based on presence of receipts

virtualCards

Filter expenses of type charges using these virtual cards

Response

#

Returns ExpenseCollection !.

Example

#