Get list of all invoices

Using the below method list of all invoices can be retrieved

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

Query parameters

Variable NameDescriptionData Type
limitNumber of logs needed to be fetchedString
sortSorting invoicesString
pageCurrent page numberString
orderOrder in which logs needs to be fetchedString
offsetNumber of Logs to be skippedString

Response variables

Variable NameDescriptionData Type
invoice_idUnique ID of invoiceInteger
invoice_nameName for invoiceString
user_idUnique ID of userInteger
invoice_amountTotal amount paidFloat
invoice_dateDate on which invoice was createdString
user_balanceUser's balance at the time when invoice was createdFloat
      "invoice_id": 1,
      "invoice_name": "2019-02-01.pdf",
      "user_id": 1,
      "invoice_amount": 0.00,
      "invoice_date": "2018-02-01 00:00:00",
      "user_balance": 0
      "invoice_id": 2,
      "invoice_name": "2019-01-01.pdf",
      "user_id": 1,
      "invoice_amount": 0.00,
      "invoice_date": "2018-01-01 00:00:00",
      "user_balance": 0
Click Try It! to start a request and see the response here!