Overview
The Material API provides comprehensive endpoints for managing products, materials, inventory items, and their associated information including pricing, units, categories, and stock levels.Material Management
Get Material Info
Retrieve detailed information about a specific material by ID.The unique identifier of the material
Response status code (200 for success)
List Materials
Retrieve a paginated list of materials with optional search filters.JSON string containing search parameters:
categoryId: Category filtermaterialParam: Name/barcode searchstandard: Standard specificationmodel: Model numbercolor: Color filterbrand: Brand filtermfrs: Manufacturer filterenabled: Enabled statusenableSerialNumber: Serial tracking filterenableBatchNumber: Batch tracking filter
Create Material
Create a new material/product.Material name
Category ID
Unit of measure
Model number
Product standard
Color
Brand name
Manufacturer
Product weight
Enable status (default: true)
Enable serial number tracking (“1” for yes)
Enable batch number tracking (“1” for yes)
Update Material
Update an existing material’s information.Material ID to update
Updated material name
Updated model
Delete Material
Delete a material by ID.Material ID to delete
Batch Delete Materials
Delete multiple materials at once.Comma-separated material IDs (e.g., “1,2,3”)
Batch Set Status
Enable or disable multiple materials at once.true to enable, false to disable
Comma-separated material IDs
Material Search & Selection
Find by Select
Search materials for dropdown/select components with pagination.Page number (1-based)
Number of rows per page
Search query (name, barcode, etc.)
Filter by category
Include stock info for depot
Filter by standard or model
Filter by color
Filter by brand
Filter serial-tracked items
Filter batch-tracked items
Total matching records
Get Material by Parameter
Quick search materials by keyword.Search keyword
Get Material by Barcode
Retrieve material information by barcode with pricing and stock.Material barcode
Depot ID for stock info
Organization ID for pricing
Material property list (comma-separated)
Bill prefix (CGDD, XSCK, etc.) for price selection
Response status code
Find by ID
Get material information by material ID.Material ID
Find by ID with Barcode
Get material information by material extend ID.Material extend ID
Material property list
Stock & Inventory
Get List with Stock
Retrieve materials with current stock levels.Page number
Records per page
Material search parameter
Comma-separated depot IDs
Category filter
Include zero stock (0=exclude, 1=include)
Sort column (default: createTime)
Sort order (asc/desc, default: desc)
Response status code
Get Material Depot Stock
Get stock distribution across depots for a material.Material ID
Comma-separated depot IDs (optional, uses user’s depots if not provided)
Validation & Utilities
Check Name Exists
Check if a material name already exists.Material ID (use 0 for new material)
Material name to check
Response status code
Check Material Exists
Check if a material with specific attributes exists.Material ID (use 0 for new)
Material name
Model
Color
Standard
Manufacturer
Unit
Unit ID
Get Max Barcode
Get the next available barcode number.Response status code
Change Name to PinYin
Convert Chinese name to pinyin abbreviation.Chinese name to convert
Response status code
Pinyin abbreviation
Batch Operations
Batch Update
Update multiple materials at once.Comma-separated material IDs
Field name to update
New value
Batch Set Current Stock
Recalculate and set current stock for materials.Comma-separated material IDs
Batch Set Current Unit Price
Recalculate and set current cost price for materials.Comma-separated material IDs
Import & Export
Export Excel
Export materials to Excel file.Category filter
Material search parameter
Color filter
Enabled status filter
Import Excel
Import materials from Excel file.Excel file containing material data
Response status code (200 for success)
Import result message and details
Serial Number Materials
Get Material Enable Serial Number List
Get materials with serial number tracking enabled.Search query
Page number
Rows per page