Overview
The Account API provides comprehensive endpoints for managing financial accounts, payment/receipt transactions, and account statements in jshERP. This includes account management, account heads (transaction headers), and account items (transaction details).Account Management
Manage financial settlement accounts including bank accounts, cash accounts, and other payment methods.Get Account Info
Retrieve detailed information about a specific account by ID.The unique identifier of the account
Response status code (200 for success)
List Accounts
Retrieve a paginated list of accounts with optional search filters.JSON string containing search parameters:
name: Account name filterserialNo: Serial number filterremark: Remark filter
Create Account
Create a new financial account.Account name
Serial/Account number
Initial balance
Enable status (default: true)
Additional remarks
Update Account
Update an existing account’s information.Account ID to update
Updated account name
Updated serial number
Delete Account
Delete an account by ID.Account ID to delete
Batch Delete Accounts
Delete multiple accounts at once.Comma-separated account IDs (e.g., “1,2,3”)
Get All Accounts
Retrieve all active accounts.Response status code
Find by Select
Get accounts for dropdown selection.Update Default Account
Set an account as the default account.Account ID to set as default
Batch Set Status
Enable or disable multiple accounts at once.true to enable, false to disable
Comma-separated account IDs
Account Statements & Reports
List with Balance
Get accounts list with current balance information.Account name filter (empty string for all)
Serial number filter (empty string for all)
Get Statistics
Get aggregated statistics for accounts.Account name filter
Serial number filter
Response status code
Find Account In/Out List
Get detailed transaction history for an account.Current page number
Records per page
Account ID
Initial amount for balance calculation
Bill number filter
Start date (YYYY-MM-DD HH:mm:ss)
End date (YYYY-MM-DD HH:mm:ss)
Response status code
Validation
Check Name Exists
Check if an account name already exists.Account ID (use 0 for new account)
Account name to check
Response status code
Account Head (Financial Transactions)
Manage financial transaction headers including payments, receipts, transfers, and other accounting entries.Get Account Head Info
Account head ID
List Account Heads
Retrieve financial transaction headers with advanced filtering.JSON string containing search parameters:
type: Transaction type (收入/支出/收款/付款/转账)billNo: Bill numberbeginTime: Start dateendTime: End dateorganId: Organization IDaccountId: Account IDstatus: Status filternumber: Reference number
Create Account Head and Details
Create a new financial transaction with header and line items.JSON string of account head information
JSON string of account item rows
Update Account Head and Details
Update an existing financial transaction.JSON string of updated account head information (must include id)
JSON string of updated account item rows
Delete Account Head
Account head ID to delete
Batch Delete Account Heads
Comma-separated account head IDs
Batch Set Status
Approve or reverse approval for financial transactions.Status value (“0” for pending, “1” for approved)
Comma-separated account head IDs
Get Detail by Number
Retrieve financial transaction details by bill number.Bill number
Response status code
Complete account head object with details
Get Financial Bill by Bill ID
Get payment/receipt records associated with a depot transaction.Depot head (purchase/sale) bill ID
Response status code
Array of associated financial transaction records
Account Item (Transaction Details)
Manage individual line items within financial transactions.Get Detail List
Retrieve line items for a specific financial transaction.Account head ID
Response status code