get https://api.acefone.co.uk/v1/billing/transactions
Using the below method, details of transactions can be retrieved.
curl --request GET \
--url https://api.acefone.co.uk/v1/billing/transactions \
--header 'accept: application/json' \
--header 'authorization: Authorization'
Response
Variable Name | Description | Data Type |
---|---|---|
total_records | Total number of records | Number |
filtered_records | Total number of records after filters are applied | Number |
page_records | Number of records on current page | Number |
page | Current page number | Number |
data | Transaction logs | Object |
data[].id | Unique ID of transaction | Number |
data[].amount | Amount charged in transaction | Number |
data[].balance | Account balance after transaction | Number |
data[].type | Type of Transaction | String |
data[].description | Description transaction | String |
data[].pro_data_amount | Pro-data - proportionate allocation of the amount | Number |
data[].comment | Comment associated with to a transaction | String |
data[].date_time | Timestamp of transaction | String |
Sample JSON |
---|
{ "total_records":"2" "filtered_records":"2" "page_records":"2" "page":"1" "data":[ 0:{ "id":"1025" "amount":0 "balance":0 "type":"Tollfree Charge" "description":"Tollfree number (4420XXXXX021) assigned" "pro_rata_amount":0 "comment":"Tollfree number charge" "date_time":"2020-02-21 07:06:16" } 1:{ "id":"1021" "amount":0 "balance":0 "type":"Product Applied" "description":"Default for customer" "pro_rata_amount":0 "comment":"The Plan Default for customer has been applied" "date_time":"2020-02-21 05:35:29" } ] } |