list_auto_expenses
GET /list_auto_expenses
To get the TOTAL COUNT of the list of auto expenses.
Use this method FIRST to determine how many total records there are.
After you call this method, then call the method below, and pass the required paging parameters.
/list_auto_expenses?token=XXXXX
| field |
description |
| token |
Credentials provided by Powersoft that allow access to the API |
Returns
{
"api_response": {
"response_code": "1",
"response_msg": "OK",
"response_id": ""
},
"total_count_list_auto_expenses": 3
}
GET /list_auto_expenses
To get a list of auto expenses.
/list_auto_expenses?token=XXXXX&page_number=1&page_size=10
| field |
description |
| token |
Credentials provided by Powersoft that allow access to the API |
| page_number |
The page number in the entire list. eg Page 1 |
| page_size |
The number of rows to return. eg 10 rows |
Returns
{
"api_response": {
"response_code": "1",
"response_msg": "OK",
"response_id": ""
},
"list_auto_expenses": [
{
"auto_expense_code_365": "ELEC",
"auto_expense_description": "ELECTRICITY",
"auto_expense_type_code_365": "EXPCYELEC",
"auto_expense_type_code_name": "ELECTRICITY CYPRUS",
"auto_expense_category": "",
"auto_expense_reference": "",
"auto_expense_details": "ELECTRICITY",
"debit_account_code_365": "441009",
"debit_account_code_name": "ELECTRICITY EXPENSES",
"credit_account_code_365": "124001",
"credit_account_code_name": "CASH A/C",
"net_amount": 150,
"vat_code_365": "019",
"vat_percentage": "19%",
"vat_amount": 28.5,
"total_amount": 178.5
},
{
"auto_expense_code_365": "TEL",
"auto_expense_description": "TELEPHONE",
"auto_expense_type_code_365": "EXPCYTEL",
"auto_expense_type_code_name": "TELEPHONE CYPRUS",
"auto_expense_category": "",
"auto_expense_reference": "",
"auto_expense_details": "TELEPHONE",
"debit_account_code_365": "441008",
"debit_account_code_name": "TELEPHONE & POSTAGE EXPENSES",
"credit_account_code_365": "124001",
"credit_account_code_name": "CASH A/C",
"net_amount": 0,
"vat_code_365": "019",
"vat_percentage": "19%",
"vat_amount": 0,
"total_amount": 0
},
{
"auto_expense_code_365": "WATER",
"auto_expense_description": "WATER",
"auto_expense_type_code_365": "EXPCYWATER",
"auto_expense_type_code_name": "WATER CYPRUS",
"auto_expense_category": "",
"auto_expense_reference": "",
"auto_expense_details": "WATER",
"debit_account_code_365": "441010",
"debit_account_code_name": "WATER EXPENSES",
"credit_account_code_365": "124001",
"credit_account_code_name": "CASH A/C",
"net_amount": 0,
"vat_code_365": "005",
"vat_percentage": "5%",
"vat_amount": 0,
"total_amount": 0
}
]
}