Transactions

Get list of all transactions

Using the below method details of transactions can be retrieved

curl --request GET \
  --url https://api.servetel.in/v1/billing/transactions \
  --header 'accept: application/json' \
  --header 'authorization: Bearer yourtokenhere'

Query parameters

Variable NameDescriptionData Type
balanceUsers balance after transactionString
balance_operatorQuantifier for balance.
> : Greater than
< : Smaller than
>= : Greater than and equal to.
<= : Smaller than ans equal to.
<> : Not equal to
String
typeType of transactionString
to_dateDate till which transactions needs to be fetchedString
paymentAmount paid by the userString
payment_operatorQuantifier for balance.
> : Greater than
< : Smaller than
>= : Greater than and equal to.
<= : Smaller than ans equal to.
<> : Not equal to
String
from_dateDate from which transactions needs to be fetchedString

Response variables

Variable NameDescriptionData Type
idUnique ID of transactionInteger
paymentAmount paid by userInteger
balanceUsers current balance after transactionInteger
typeType of transactionString
descriptionDescription for transaction.String
commentComments for transactionsString
timeDate at which transaction was createdString
[
    {
      	"id": 1,
        "payment": 5.0,
        "balance": 15.0,
        "type": "",
        "description": "xxxx...xxxx",
        "comment": null,
        "date_time": "2019-02-01 00:00:00"
    },
    {
        "id": 2,
        "payment": 10.0,
        "balance": 20.0,
        "type": "",
        "description": "xxxx...xxxx",
        "comment": null,
        "date_time": "2019-02-01 00:00:00"
    }
]