Fetch entity summary
GET/v1/entities/:entity_id/summary
A dictionary with a data property that contains an array of summaries broken down by report and currency. Each entry in the array is a separate report-summary object. If no reports are available, the resulting array will be empty.
Date range behavior
- If
from_date
andto_date
are missing, the default is to return the previous 30 days. - If
from_date
is present butto_date
is not,to_date
is set tofrom_date+30.days
. - If
to_date
is present butfrom_date
is not,from_date
is set toto_date-30.days
. Authentication
Request
Path Parameters
Unique identifier for the entity.
Query Parameters
Beginning of date range in format YYYY-MM-DD
.
End of date range in format YYYY-MM-DD
.
Three-letter ISO currency code. ex: USD
.
Report name. ex: shopify_summary
.
Filter by state. ex: posted
, unposted
.
Responses
- 200
- 401
- 404
A dictionary with a data property that contains an array of summaries broken down by report and currency. Each entry in the array is a separate report-summary object. If no reports are available, the resulting array will be empty.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
Default value: list
data object[]
Array of Unique identifier for each connected app.
lines object[]
subcategories object
metadata object
missing object
{
"object": "list",
"data": [
{
"report": "shopify_ecommerce",
"connection_ids": [
"d58AGp7e1jVK"
],
"lines": [
{
"description": "Square Sales",
"account_type": "Income",
"posting_type": "Credit",
"total": 50424.75,
"subcategories": {
"Cash": 2513.7,
"Credit Card": 47911.05,
"JT-Red Wine": 1024.7,
"JT-Spirits": 487.78
},
"currency": "USD"
}
],
"metadata": {
"from_date": "2024-05-17",
"to_date": "2024-06-16",
"day_count": 31,
"record_count": 30,
"posted": 30,
"unposted": 0,
"failed": 0,
"missing": {
"count": 6,
"dates": [
"2024-05-22",
"2024-05-23",
"2024-05-24",
"2024-05-25",
"2024-06-11",
"2024-06-12"
]
}
}
}
]
}
HTTP Basic: Access denied.
Returns an error if a invalid entity was provided.
- application/json
- Schema
- Example (from schema)
Schema
error object
{
"error": {
"message": "Unrecognized request URL",
"type": "invalid_request_error"
}
}