get https://api.acefone.co.uk/v1/billing/due_charges
Using the below method, a list of all due charges can be obtained.
curl --request GET \
--url https://api.acefone.co.uk/v1/billing/due_charges \
--header 'accept: application/json' \
--header 'authorization: Authorization'
Response
Variable Name | Description | Data Type |
---|---|---|
total_due_amount | Total due charges pending on user's account | Number |
total_records | Total number of due charge records | Number |
filtered_records | Total number of records after filters are applied | Number |
page_records | Total number of records on current page | Number |
page | Current page number | Number |
data | List of due charges | Object |
data.id | Unique ID of due charge | Number |
data.charge | Charges applied | Number |
data.due_amount | Pending due amount | Number |
data.description | Description of due charge | String |
data.payment_status | Payment status of due charges | String |
data.due_date | Date till when due charge need to be settled | String |
Sample JSON |
---|
{ "total_due_amount":17 "total_records":503 "filtered_records":2 "page_records":2 "page":"1" "data":[ 0:{ "id":711 "charge":11 "due_amount":11 "description":"Bundle Bundle renewed by system" "payment_status":"Pending" "due_date":"2020-04-01 00:00:00" } 1:{ "id":713 "charge":6 "due_amount":6 "description":"Extension License Test License 1 renewed by system" "payment_status":"Pending" "due_date":"2020-04-01 00:00:00" } ] } |