Get Metrics
Get invoice metrics for an entity group with the given filters. Invoices will be grouped by currency. If none of excludePayables, excludeReceivables, payerId, vendorId, or invoiceId status filters are provided, excludeReceivables will be set to true.
Path parameters
entityGroupId
Entity Group ID or Entity Group ForeignID
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Query parameters
search
Find invoices by vendor name, invoice number, check number, or amount. Partial matches are supported.
excludePayables
Only return invoices that are not payable by the entity. This will return only invoices that are receivable by the entity.
excludeReceivables
Only return invoices that are not receivable by the entity. This will return only invoices that are payable by the entity.
returnByDate
Return invoice metrics grouped by date.
Allowed values:
returnByDateFrequency
Return invoice metrics grouped by date. Defaults to daily.
Allowed values:
groupBy
Return invoice metrics grouped by.
Allowed values:
payerId
Filter invoices by payer ID.
vendorId
Filter invoices by vendor ID.
approverId
Filter invoices by assigned approver user ID.
invoiceId
Filter invoices by invoice ID or invoice foreign ID.
status
Invoice status to filter on
startDate
Start date filter. Defaults to CREATED_AT unless specified the dateType is specified
endDate
End date filter. Defaults to CREATED_AT unless specified the dateType is specified
dateType
Type of date to filter by if startDate and endDate filters are provided. Defaults to CREATED_AT.
currency
Currency to filter on
Response
This endpoint returns a list of objects.
totalAmount
totalCount
averageAmount
currency
group
If groupBy is provided, this will be the group by value.
dates