Overview
The Depot API provides comprehensive endpoints for managing warehouses, inventory transactions, and stock movements in jshERP. This includes depot management, depot head (transaction headers), and depot items (transaction details).Depot Management
Manage warehouse/depot entities including creation, updates, and configuration.Get Depot Info
Retrieve detailed information about a specific depot by ID.The unique identifier of the depot
Response status code (200 for success)
List Depots
Retrieve a paginated list of depots with optional search filters.JSON string containing search parameters:
name: Depot name filtertype: Depot type filterremark: Remark filter
Create Depot
Create a new depot/warehouse.Depot name
Physical address
Depot type
Principal user ID
Enable/disable depot (default: true)
Additional remarks
Update Depot
Update an existing depot’s information.Depot ID to update
Updated depot name
Updated address
Delete Depot
Delete a depot by ID.Depot ID to delete
Batch Delete Depots
Delete multiple depots at once.Comma-separated depot IDs (e.g., “1,2,3”)
Get All Depots
Retrieve all depots without pagination.Response status code
Array of depot objects
Get User Depots
Retrieve depots accessible by the current user.Get Depots with Stock
Retrieve depots along with stock information for a specific material.Material ID to get stock information for
Response status code
Update Default Depot
Set a depot as the default depot.Depot ID to set as default
Batch Set Status
Enable or disable multiple depots at once.true to enable, false to disable
Comma-separated depot IDs
Depot Head (Transaction Headers)
Manage depot transaction headers including purchase orders, sales orders, transfers, and other inventory movements.Get Depot Head Info
Depot head ID
List Depot Heads
Retrieve depot transaction headers with advanced filtering.JSON string containing search parameters:
type: Transaction type (入库/出库/其它)subType: Sub-type (采购/销售/调拨/etc.)number: Bill numberbeginTime: Start dateendTime: End dateorganId: Organization IDdepotId: Depot IDstatus: Status filter
Create Depot Head and Details
Create a new depot transaction with header and line items.JSON string of depot head information
JSON string of depot item rows
Update Depot Head and Details
Update an existing depot transaction.JSON string of updated depot head information (must include id)
JSON string of updated depot item rows
Delete Depot Head
Depot head ID to delete
Batch Delete Depot Heads
Comma-separated depot head IDs
Batch Set Status
Approve or reverse approval for depot transactions.Status value (“0” for pending, “1” for approved)
Comma-separated depot head IDs
Force Close Batch
Force close depot transactions.Comma-separated depot head IDs to force close
In/Out Detail Report
Get detailed inventory in/out transactions report.Current page number
Number of records per page
Transaction type (“入库” or “出库”)
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Filter by depot ID
Material search parameter
Response status code
In/Out Material Count
Get aggregated material in/out statistics.Current page number
Number of records per page
Transaction type
Start date
End date
Get Statement Account
Retrieve account statements for suppliers or customers.Current page number
Records per page
Start date
End date
“供应商” for vendor or “客户” for customer
Organization ID filter
Filter by debt status (1 for has debt, 0 for no debt)
Get Detail by Number
Retrieve depot transaction details by bill number.Bill number
Get Buy and Sale Statistics
Get purchase and sales statistics for dashboard.Response status code
Contains today’s, yesterday’s, monthly, and yearly purchase/sale statistics
Depot Item (Transaction Details)
Manage individual line items within depot transactions.Get Detail List
Retrieve line items for a specific depot transaction.Depot head ID
Material property list
Link type (e.g., “basic”)
“1” for read-only mode
Find Stock by Depot and BarCode
Get current stock level for a material in a depot.Depot ID (optional)
Material barcode
Get In/Out Stock Report
Comprehensive inventory movement report.Page number
Records per page
Start date (YYYY-MM-DD)
End date (YYYY-MM-DD)
Comma-separated depot IDs
Material search parameter
Material category filter
Purchase Statistics
Get purchase statistics by material.Page number
Records per page
Start date
End date
Material search parameter
Sales Statistics
Get sales statistics by material.Page number
Records per page
Start date
End date
Material search parameter
Retail Statistics
Get retail sales statistics.Page number
Records per page
Start date
End date
Material search parameter
Stock Warning Report
Get materials with stock levels outside safe thresholds.Page number
Records per page
Material search parameter
Depot ID filter
Category ID filter
Response status code