get https://api.servetel.in/v1/billing/invoices
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 Name | Description | Data Type |
|---|---|---|
| limit | Number of logs needed to be fetched | String |
| sort | Sorting invoices | String |
| page | Current page number | String |
| order | Order in which logs needs to be fetched | String |
| offset | Number of Logs to be skipped | String |
Response variables
| Variable Name | Description | Data Type |
|---|---|---|
| invoice_id | Unique ID of invoice | Integer |
| invoice_name | Name for invoice | String |
| user_id | Unique ID of user | Integer |
| invoice_amount | Total amount paid | Float |
| invoice_date | Date on which invoice was created | String |
| user_balance | User's balance at the time when invoice was created | Float |
[
{
"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
}
]
