POST ASN创建
POST /apicenter/api/asn
Body 请求参数
{"items": [{"code": "testNEWBIEsku-0919-001","qty": 100,"po_number": "testNEWBIEpno-0919-001","expire_at": "2022-09-30","manufacture_at": "2022-08-31"},{"code": "testNEWBIEsku-0919-001","qty": 100,"po_number": "testNEWBIEpno-0919-002","expire_at": "2022-09-30","manufacture_at": "2022-08-31"},{"code": "testNEWBIEsku-0919-001","qty": 100,"po_number": "testNEWBIEpno-0919-003","expire_at": "2022-09-30","manufacture_at": "2022-08-31"}],"centre_code": "FT","client_code": "ITST","asn_number": "testNEWBIEasn-0919-001","is_return_asn": "N","asn_date": "2022-09-20","eta_at": "2022-09-21"}
请求参数
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| body | body | object | 否 | none | |
| » items | body | [object] | 是 | none | |
| »» code | body | string | 是 | sku | none |
| »» qty | body | integer | 是 | 入库数量 | none |
| »» po_number | body | string | 是 | 入库箱号 | 买家批次号 |
| »» expire_at | body | string | 是 | none | |
| »» manufacture_at | body | string | 是 | none | |
| » centre_code | body | string | 是 | 仓库编码 | none |
| » client_code | body | string | 是 | 店铺编号 | 获取关联的公司信息 |
| » asn_number | body | string | 是 | 批次号 | none |
| » asn_date | body | string | 是 | 创建时间 | 自定义创建时间 |
| » eta_at | body | string | 是 | 预计到达时间 | none |
返回示例
200 Response
{"code": 0,"data": {"centre_code": "string","client_code": "string","asn_number": "string","asn_date": "string","eta_at": "string","remarks": null,"items": [{"code": "string","qty": 0,"po_number": "string","po_date": null,"expire_at": "string","manufacture_at": "string","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": null,"length": null,"width": null,"height": null,"box_qty": 0,"is_packing_material": null,"is_expire_date_required": null,"is_lot_no_required": null,"is_manufacture_date_required": null}],"vas": ["string"]},"message": "string"}
返回结果
| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | 成功 | Inline |
返回数据结构
状态码 200
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | 响应码 | none |
| » data | object | true | none | 响应数据 | none |
| »» centre_code | string | true | none | 仓库代码 | none |
| »» client_code | string | true | none | 商户号 | none |
| »» asn_number | string | true | none | 批次号 | none |
| »» asn_date | string | true | none | 创建时间 | none |
| »» eta_at | string | true | none | 预计入库时间 | none |
| »» remarks | null | true | none | none | |
| »» items | [object] | true | none | none | |
| »»» code | string | true | none | none | |
| »»» qty | integer | true | none | none | |
| »»» po_number | string | true | none | none | |
| »»» po_date | null | true | none | none | |
| »»» expire_at | string | true | none | none | |
| »»» manufacture_at | string | true | none | none | |
| »»» lot_no | null | true | none | none | |
| »»» barcode | null | true | none | none | |
| »»» name | null | true | none | none | |
| »»» description | null | true | none | none | |
| »»» declare_name | null | true | none | none | |
| »»» origin_country | null | true | none | none | |
| »»» category_id | null | true | none | none | |
| »»» category_name | null | true | none | none | |
| »»» color | null | true | none | none | |
| »»» size | null | true | none | none | |
| »»» line | null | true | none | none | |
| »»» style | null | true | none | none | |
| »»» season | null | true | none | none | |
| »»» gender | null | true | none | none | |
| »»» business_line | null | true | none | none | |
| »»» product_type | null | true | none | none | |
| »»» ingredient | null | true | none | none | |
| »»» business_type | null | true | none | none | |
| »»» brand | null | true | none | none | |
| »»» model | null | true | none | none | |
| »»» battery_type | null | true | none | none | |
| »»» manufacturer_name | null | true | none | none | |
| »»» manufacturer_address | null | true | none | none | |
| »»» queue_order | null | true | none | none | |
| »»» weight | null | true | none | none | |
| »»» length | null | true | none | none | |
| »»» width | null | true | none | none | |
| »»» height | null | true | none | none | |
| »»» box_qty | integer | true | none | none | |
| »»» is_packing_material | null | true | none | none | |
| »»» is_expire_date_required | null | true | none | none | |
| »»» is_lot_no_required | null | true | none | none | |
| »»» is_manufacture_date_required | null | true | none | none | |
| »» vas | [string] | true | none | none | |
| » message | string | true | none | 响应描述 | none |
