Excel 导入档案
上传 Excel 批量导入货品档案,已存在的自动跳过;可以指定仓库,也能选择允许超卖的数量。
| 请求方式 | POST |
|---|---|
| 接口路径 | /api/isbn/importArchive |
| Content-Type | form-data |
| 鉴权 | X-Nideshop-Token |
请求参数
| 参数 | 类型 | 必填 | 位置 |
|---|---|---|---|
warehouseId | Integer | 是 | URL 参数 |
file | file | 是 | 表单文件 |
curl 调用
curl -s 'https://www.8shu8.com/api/isbn/importArchive?warehouseId=1' \ -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \ -F 'file=@example.jpg'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": "string"
}