Cin7 Inventory Management
Manage Cin7 Core inventory via bash scripts. All commands run from the skill directory.
Required Environment Variables
- -
CIN7_ACCOUNT_ID — your Cin7 Core account ID - INLINECODE1 — your Cin7 Core application key
Products
List/search products
CODEBLOCK0
Get single product
CODEBLOCK1
Stock
Check stock levels
CODEBLOCK2
Adjust stock (damage, recount, write-off)
CODEBLOCK3
Transfer stock between locations
CODEBLOCK4
Sales Orders
List orders
CODEBLOCK5
Get single order
CODEBLOCK6
Create order
CODEBLOCK7
Update order
CODEBLOCK8
Sales report by date range
CODEBLOCK9
Purchase Orders
List purchase orders
CODEBLOCK10
Create purchase order
CODEBLOCK11
Customers & Suppliers
List/search customers
CODEBLOCK12
List/search suppliers
CODEBLOCK13
Cin7 库存管理
通过 bash 脚本管理 Cin7 Core 库存。所有命令均在技能目录下运行。
必需的环境变量
- - CIN7ACCOUNTID — 您的 Cin7 Core 账户 ID
- CIN7APPKEY — 您的 Cin7 Core 应用程序密钥
产品
列出/搜索产品
bash
bash scripts/get-products.sh
bash scripts/get-products.sh --search widget --page 2
获取单个产品
bash
bash scripts/get-product.sh --id product-id
库存
检查库存水平
bash
bash scripts/get-stock.sh
bash scripts/get-stock.sh --product-id product-id
bash scripts/get-stock.sh --page 2
调整库存(损坏、重新盘点、核销)
bash
bash scripts/stock-adjustment.sh --data {Lines:[{ProductID:id,Location:Main Warehouse,Quantity:5}]}
在仓库之间转移库存
bash
bash scripts/stock-transfer.sh --data {Lines:[{ProductID:id,From:Warehouse A,To:Warehouse B,Quantity:10}]}
销售订单
列出订单
bash
bash scripts/list-orders.sh
bash scripts/list-orders.sh --status COMPLETED --page 1
获取单个订单
bash
bash scripts/get-order.sh --id order-id
创建订单
bash
bash scripts/create-order.sh --data {Customer:John Smith,Lines:[{ProductID:id,Quantity:2}]}
更新订单
bash
bash scripts/update-order.sh --id order-id --data {Status:COMPLETED}
按日期范围生成销售报告
bash
bash scripts/sales-report.sh --from 2026-01-01 --to 2026-03-07
采购订单
列出采购订单
bash
bash scripts/get-purchases.sh
bash scripts/get-purchases.sh --status ORDERED --page 1
创建采购订单
bash
bash scripts/create-purchase.sh --data {Supplier:Acme Corp,Lines:[{ProductID:id,Quantity:100}]}
客户与供应商
列出/搜索客户
bash
bash scripts/get-customers.sh
bash scripts/get-customers.sh --search John
列出/搜索供应商
bash
bash scripts/get-suppliers.sh
bash scripts/get-suppliers.sh --search Acme