/v1/billing/due_charges

Get Details of all due charges

Using the below method, a list of all due charges can be obtained.

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

Query parameters

Variable NameDescriptionData Type
statusStatus for due charge
Allowed status: pending, complete, cancelled
String

Response variables

Variable NameDescriptionData Type
total_due_amountTotal Due amount to be paid by the userInteger
dataArray of call due chargesArray of objects
data[n].idUnique ID of the due chargeInteger
data[n].open_amountAmount yet to be paid by the userInteger
data[n].due_amountDue charge amountInteger
data[n].descriptionDescription related to due chargeString
data[n].payment_statusStatus of the due charge, 1: pending, 2: Completed, 3: CancelledInteger
data[n].due_dateDate till which amount needs to be paidString
data[n].created_atDate on which due charge was createdString
data[n].updated_atDate on which due charges was updatedString
{
    "total_due_amount": 10,
    "data": [
        {
            "id": 1,
            "open_amount": 10,
            "due_amount": 10,
            "description": "xxxx....xxxx",
            "payment_status": 1, // Pending
            "due_date": "2019-02-01 00:00:00",
            "created_at": "2019-02-01 00:00:00",
            "updated_at": ""
        },
        {
            "id": 2,
            "open_amount": 0,
            "due_amount": 10,
            "description": "xxxx....xxxx",
            "payment_status": 2, // Completed
            "due_date": "2019-02-01 00:00:00",
            "created_at": "2019-02-01 00:00:00",
            "updated_at": "2019-02-01 00:00:00"
        },
        {
            "id": 3,
            "open_amount": 10,
            "due_amount": 10,
            "description": "xxxx....xxxx",
            "payment_status": 3, // Cancelled
            "due_date": "2019-02-01 00:00:00",
            "created_at": "2019-02-01 00:00:00",
            "updated_at": "2019-02-01 00:00:00"
        }
    ]
}
Language
Click Try It! to start a request and see the response here!