/v1/billing/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 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"
    }
]
Language
Click Try It! to start a request and see the response here!