Invoice resource in admin API
dmitry-sinina opened this issue · 1 comments
resource should allow fetch invoice with all attributes + origination prefixes, origination networks, termination prefixes, termination networks data + odf and pdf files
To provide some context on how this will be used, this API endpoint will be utilised to build an integration with Hostbill, using some of the features available here: https://blog.hostbillapp.com/2020/09/04/new-feature-diy-metered-billing/ (and also in the Hostbill SDK).
I would like to be able to run an API call, as an admin, to Yeti-Switch containing the customer's account ID and a date range. This api call should return a summary of destination networks/prefixes, call counts, durations and amounts, just like the tables displayed in the invoice otherwise would, e.g.:
Each prefix/network would ideally be it's own JSON object/collection containing the relevant fields within - call count, duration, amount, etc.