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 Name

Description

Data Type

balance

Users balance after transaction

String

balance_operator

Quantifier for balance.
> : Greater than
< : Smaller than
>= : Greater than and equal to.
<= : Smaller than ans equal to.
<> : Not equal to

String

type

Type of transaction

String

to_date

Date till which transactions needs to be fetched

String

payment

Amount paid by the user

String

payment_operator

Quantifier for balance.
> : Greater than
< : Smaller than
>= : Greater than and equal to.
<= : Smaller than ans equal to.
<> : Not equal to

String

from_date

Date from which transactions needs to be fetched

String

Response variables

Variable Name

Description

Data Type

id

Unique ID of transaction

Integer

payment

Amount paid by user

Integer

balance

Users current balance after transaction

Integer

type

Type of transaction

String

description

Description for transaction.

String

comment

Comments for transactions

String

time

Date at which transaction was created

String

[
    {
        "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"
    }
]