list_journal_entries
GET /list_journal_entries
To get the TOTAL COUNT of the list of all journal entries.
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_journal_entries?token=XXXXX&interface_flag=all&interface_status=all
| field |
description |
| token |
Credentials provided by Powersoft that allow access to the API |
| interface_flag |
'processed' = Only the processed entries. 'unprocessed' = Only the unprocessed entries. 'all' = All the entries(processed and unprocessed) |
| interface_status |
'open' = Only the open (not at all processed) entries. 'failed' = Only the failed (processed and failed) entries.'passed' = Only the passed (processed and successfully) entries. 'all' = All the entries |
Returns
{
"api_response": {
"response_code": "1",
"response_msg": "OK",
"response_id": ""
},
"total_count_list_journal_entries": 2
}
GET /list_journal_entries
To get a list of all journal entries.
/list_journal_entries?token=XXXXX&interface_flag=all&interface_status=all&page_number=1&page_size=10
| field |
description |
| token |
Credentials provided by Powersoft that allow access to the API |
| interface_flag |
'processed' = Only the processed entries. 'unprocessed' = Only the unprocessed entries. 'all' = All the entries(processed and unprocessed) |
| interface_status |
'open' = Only the open (not at all processed) entries. 'failed' = Only the failed (processed and failed) entries.'passed' = Only the passed (processed and successfully) entries. 'all' = All the entries |
| page_number |
The page number in the entire list. eg Page 1 |
| page_size |
The number of rows to return. eg 100 rows |
Returns
{
"api_response": {
"response_code": "1",
"response_msg": "OK",
"response_id": ""
},
"list_journal_entries": [
{
"journal_entry_id_365": "31",
"transaction_code_365": "10000010",
"reference_number": "IN10000007",
"transaction_date_local": "2012-11-18",
"transaction_date_utc0": "2012-11-18 08:38:45",
"type_code_365": "SI",
"type_description": "Sales Invoices From Stock",
"cost_center": "100",
"interface_flag": "Unprocessed",
"interface_status": "Open",
"interface_date": "",
"account_code_365": "122102",
"account_name": "PANOS",
"debit_credit": "DR",
"amount": 100
},
{
"journal_entry_id_365": "32",
"transaction_code_365": "10000010",
"reference_number": "IN10000007",
"transaction_date_local": "2012-11-18",
"transaction_date_utc0": "2012-11-18 08:38:45",
"type_code_365": "SI",
"type_description": "Sales Invoices From Stock",
"cost_center": "100",
"interface_flag": "Unprocessed",
"interface_status": "Open",
"interface_date": "",
"account_code_365": "411401",
"account_name": "SALES SERVICES - 0%",
"debit_credit": "CR",
"amount": 100
}
]
}
The cost center returned is the one provided by the 3rd party application and mapped with 365 stores. If the code center is not provided then the 365 store code is returned.
The transaction type description is the one provided by the 3rd party application and mapped with 365 accounting transaction type. If no transaction type description is provided then the 365 transaction type description is returned.