POST 创建 或 更新 ASN
POST /apicenter/api/asn
请求参数
Body 请求参数
{"items": [{"code": "-ALB-908","qty": 100,"po_number": "mabang-0919-001","expire_at": "2022-09-30","manufacture_at": "2022-08-31","length": 10,"width": 10,"height": 10,"weight": 30},{"code": "#","qty": 100,"po_number": "mabang-0919-002","expire_at": "2022-09-30","manufacture_at": "2022-08-31","length": 10,"width": 10,"height": 10,"weight": 30}],"centre_code": "mabang","client_code": "20","client_type": 2,"asn_number": "mabang-0919","is_return_asn": "N","asn_date": "2022-09-20","eta_at": "2022-09-21"}
请求参数结构
| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| items | Request Body | Array | 是 | 包含产品信息的数组 |
| centre_code | Request Body | String | 是 | 仓库代码 warehouseCode |
| client_code | Request Body | String | 是 | |
| client_type | Request Body | integer | 是 | 自定义平台为1,第三方平台为2 |
| asn_number | Request Body | String | 是 | ASN编号,批次号 |
| is_return_asn | Request Body | String | 是 | 是否为退货ASN,取值为 “Y” 或 “N” |
| asn_date | Request Body | String | 是 | ASN创建日期,格式为 “YYYY-MM-DD” |
| eta_at | Request Body | String | 是 | 预计到达日期,格式为 “YYYY-MM-DD” |
| code | items Array Element | String | 是 | 产品代码 |
| qty | items Array Element | integer | 是 | 产品数量 |
| po_number | items Array Element | String | 是 | 采购订单号 或者 箱号 |
| weight | items Array Element | decimal(6,3 ) | 否 | 箱子的重量(g) |
| length | items Array Element | decimal(6,3 ) | 否 | 箱子的长度(cm) |
| width | items Array Element | decimal(6,3 ) | 否 | 箱子的宽度(cm) |
| height | items Array Element | decimal(6,3 ) | 否 | 箱子的高度(cm) |
| expire_at | items Array Element | String | 否 | 产品过期日期,格式为 “YYYY-MM-DD” |
| manufacture_at | items Array Element | String | 否 | 产品生产日期,格式为 “YYYY-MM-DD” |
返回参数
返回示例
成功
{"code": 201,"data": {"centre_code": "mabang","client_code": "20","asn_number": "mabang-0919","asn_date": "2022-09-20","eta_at": "2022-09-21","remarks": null,"items": [{"code": "-ALB-908","qty": 100,"po_number": "mabang-0919-001","po_date": null,"expire_at": "2022-09-30","manufacture_at": "2022-08-31","lot_no": null,"barcode": null,"name": null,"description": null,"declare_name": null,"origin_country": null,"category_id": null,"category_name": null,"color": null,"size": null,"line": null,"style": null,"season": null,"gender": null,"business_line": null,"product_type": null,"ingredient": null,"business_type": null,"brand": null,"model": null,"battery_type": null,"manufacturer_name": null,"manufacturer_address": null,"queue_order": null,"weight": 30,"length": 10,"width": 10,"height": 10,"box_qty": 0,"is_packing_material": null,"is_expire_date_required": null,"is_lot_no_required": null,"is_manufacture_date_required": null},{"code": "#","qty": 100,"po_number": "mabang-0919-002","po_date": null,"expire_at": "2022-09-30","manufacture_at": "2022-08-31","lot_no": null,"barcode": null,"name": null,"description": null,"declare_name": null,"origin_country": null,"category_id": null,"category_name": null,"color": null,"size": null,"line": null,"style": null,"season": null,"gender": null,"business_line": null,"product_type": null,"ingredient": null,"business_type": null,"brand": null,"model": null,"battery_type": null,"manufacturer_name": null,"manufacturer_address": null,"queue_order": null,"weight": 30,"length": 10,"width": 10,"height": 10,"box_qty": 0,"is_packing_material": null,"is_expire_date_required": null,"is_lot_no_required": null,"is_manufacture_date_required": null}],"vas": []},"message": "success"}
返回参数结构
| 名称 | 类型 | 中文名 |
|---|---|---|
| centre_code | string | 仓库代码 |
| client_code | string | 商户号 |
| asn_number | string | 批次号 |
| asn_date | string | 创建时间 |
| eta_at | string | 预计入库时间 |
| remarks | String | |
| items | array | |
| code | string | SKU |
| qty | integer | 入库数量 |
| po_number | string | 买家批次号 |
| po_date | null | |
| expire_at | string | |
| manufacture_at | string | |
| lot_no | String | 箱号 |
| barcode | String | |
| name | String | 产品名称 |
| description | String | |
| declare_name | String | |
| origin_country | String | |
| category_id | String | |
| category_name | String | |
| color | String | |
| size | String | |
| line | String | |
| style | String | |
| season | String | |
| gender | String | |
| business_line | String | |
| product_type | String | |
| ingredient | String | |
| business_type | String | |
| brand | String | |
| model | String | |
| battery_type | String | |
| manufacturer_name | String | |
| manufacturer_address | String | |
| queue_order | String | |
| weight | BigDecimal | 箱子的重量(g) |
| length | BigDecimal | 箱子的长度(cm) |
| width | BigDecimal | 箱子的宽度(cm) |
| height | BigDecimal | 箱子的高度(cm) |
| box_qty | integer | 0 |
| is_packing_material | String | |
| is_expire_date_required | String | |
| is_lot_no_required | String | |
| is_manufacture_date_required | String | |
| vas | array |
