Tariscope 4.6.Tariscope API guide
Tariscope API Methods
10. accounts.payments
This is a GET request that allows you to obtain information about payments from a subscriber for a given period.
Request parameters:
- id – subscriber identifier in the Tariscope system.
- fromdate – date from which payments should be received. The date is specified in the format: yyyy-mm-dd, for example: 2023-05-01.
- todate – date from which payments should be received. The date is specified in the format: yyyy-mm-dd, for example: 2023-05-31.
- paymentid – payment record identifier. If this identifier is specified in the request, the dates are ignored, and the presence of such a record in the Tariscope database is checked. If this identifier = 0, then the API should return all payments for the specified period.
Data returned by the request:
- subscriberid – subscriber identifier in the Tariscope system;
- paymentid – payment record identifier.
- paymentday – payment date in the format: yyyy-mm-dd.
- payment – payment amount.
Example of a request.
Get information about payments from a subscriber with the ID 6169 for the period from 01.04.2023 to 31.05.2023. This means that the following parameters must be specified: id=6169, fromdate=2023-04-01, todate=2023-05-31, paymenttid=0