Tariscope 4.6.Tariscope API guide
Tariscope API Methods
8. accounts.charges
This is a GET method that allows you to get the subscriber's billing for the specified month.
Request parameters:
- id – subscriber identifier in the Tariscope system;
- fromdate – date from which you want to receive the charge. The date is specified in the format: yyyy-mm-dd, for example: 2023-05-01.
- todate – date from which you want to receive the charge. The date is specified in the format: yyyy-mm-dd, for example: 2023-05-31.
Data returned by the method for each charge:
- id – subscriber identifier in the Tariscope system;
- recdate – date of entry of charge in Tariscope;
- fromdate – start date of service charge period;
- todate – end date of service charge period;
- servicename – service name;
- charge – charged amount;
- numberofservices – number of charged services. For calls, this is the number of seconds.
Example of a query.
Get the billing of the subscriber with the ID 6169 for May 2023.
That is, in this case we have:
id = 6169, fromdate = 2023-05-01, todate = 2023-05-31.
http://localhost:8085/api/accounts/charges/?id=6169&fromdate=2023-05-01&todate=2023-05-31