Statistics
How long payments actually take over a period: average and median days from the document date and from the due date, plus the share paid late
Changed onAnswers "do my customers pay me on time, and how late are they?". Read the medians rather than the averages — the mean is dragged by a small tail of very late payers, so it can report a month's delay where the typical invoice is paid on time.
get/v1/statistics/paymentdelay
Request
- Base URLhttps://api.altoviz.com
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
fromstring date
First day of the period. Combined with to, takes precedence over year.
tostring date
Last day of the period, included
yearinteger
Shorthand for a whole calendar year (defaults to the current one). Ignored when a range is given.
periodicity'Daily' | 'Weekly' | 'Monthly' | 'Quarterly' | 'Annually'
Bucket size: Daily, Weekly, Monthly (default), Quarterly or Annually
side'Customers' | 'Suppliers'
Which side of the ledger a payment delay is measured on
Customers (default) or suppliers
Response
OK
Changes
- info
endpoint added
- info