POST ASN创建

POST /apicenter/api/asn

Body 请求参数

  1. {
  2. "items": [
  3. {
  4. "code": "testNEWBIEsku-0919-001",
  5. "qty": 100,
  6. "po_number": "testNEWBIEpno-0919-001",
  7. "expire_at": "2022-09-30",
  8. "manufacture_at": "2022-08-31"
  9. },
  10. {
  11. "code": "testNEWBIEsku-0919-001",
  12. "qty": 100,
  13. "po_number": "testNEWBIEpno-0919-002",
  14. "expire_at": "2022-09-30",
  15. "manufacture_at": "2022-08-31"
  16. },
  17. {
  18. "code": "testNEWBIEsku-0919-001",
  19. "qty": 100,
  20. "po_number": "testNEWBIEpno-0919-003",
  21. "expire_at": "2022-09-30",
  22. "manufacture_at": "2022-08-31"
  23. }
  24. ],
  25. "centre_code": "FT",
  26. "client_code": "ITST",
  27. "asn_number": "testNEWBIEasn-0919-001",
  28. "is_return_asn": "N",
  29. "asn_date": "2022-09-20",
  30. "eta_at": "2022-09-21"
  31. }

请求参数

名称 位置 类型 必选 中文名 说明
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

  1. {
  2. "code": 0,
  3. "data": {
  4. "centre_code": "string",
  5. "client_code": "string",
  6. "asn_number": "string",
  7. "asn_date": "string",
  8. "eta_at": "string",
  9. "remarks": null,
  10. "items": [
  11. {
  12. "code": "string",
  13. "qty": 0,
  14. "po_number": "string",
  15. "po_date": null,
  16. "expire_at": "string",
  17. "manufacture_at": "string",
  18. "lot_no": null,
  19. "barcode": null,
  20. "name": null,
  21. "description": null,
  22. "declare_name": null,
  23. "origin_country": null,
  24. "category_id": null,
  25. "category_name": null,
  26. "color": null,
  27. "size": null,
  28. "line": null,
  29. "style": null,
  30. "season": null,
  31. "gender": null,
  32. "business_line": null,
  33. "product_type": null,
  34. "ingredient": null,
  35. "business_type": null,
  36. "brand": null,
  37. "model": null,
  38. "battery_type": null,
  39. "manufacturer_name": null,
  40. "manufacturer_address": null,
  41. "queue_order": null,
  42. "weight": null,
  43. "length": null,
  44. "width": null,
  45. "height": null,
  46. "box_qty": 0,
  47. "is_packing_material": null,
  48. "is_expire_date_required": null,
  49. "is_lot_no_required": null,
  50. "is_manufacture_date_required": null
  51. }
  52. ],
  53. "vas": [
  54. "string"
  55. ]
  56. },
  57. "message": "string"
  58. }

返回结果

状态码 状态码含义 说明 数据模型
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