create_consignment
Create a consignment to import goods into a warehouse, specifying warehouse ID, product SKUs with quantities, and status. Use after listing warehouses and verifying SKUs.
Instructions
Create a new consignment (nhập hàng vào kho).
WORKFLOW: First call list_warehouses to get warehouse_id, then get_product to verify SKUs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| warehouse_id | Yes | Target warehouse ID | |
| status | Yes | 0=draft, 2=confirmed | |
| products | Yes | List of products, each with: - sku (str, required): Product SKU - quantity (int, required): Quantity - specification (str, required): Specification - unit (str, required): Unit of measure - pack (str, required): Packing info - qc_description (str, optional): QC description - qc_note (str, optional): QC note (required if qc_type=2) | |
| qc_type | No | 1=basic (default), 2=advanced | |
| priority | No | 50=normal (default), 25=fast, 10=rush | |
| note | No | Optional note | |
| is_inspection | No | Co-inspection flag | |
| is_authorized_seller | No | Authorized seller flag |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||