Aging Report API
The Aging Report API enables
The Aging Report API is part of the analytics
service. All requests should be made to: https://api.subsbase.io/analytics/graphql
.
The analytics service requires two headers, X-SITE-ID
and Authorization
. A typical request would look like this:
POST https://api.subsbase.io/analytics/graphql
Authorization: Bearer {server token}
X-SITE-ID: {your site id}
Using the Aging Report API requires authentication via a server token, which should be included in the Authorization header.
Queries
Aging Report Query
query Reports($siteId: String!) {
agingReport(
siteId: $siteId
) {
currencies{
key
value
},
data{
key,
value{
customer{
id
name
},
outstanding{
amount
count
}
}
}
}
}
### variables
{
"siteId": "test-site"
}
- Returns a specific aging report.
- You can specify any of the fields detailed in the Aging Report Type Definition.