POST 创建 或 更新 ASN

POST /apicenter/api/asn

请求参数

Body 请求参数

  1. {
  2. "items": [
  3. {
  4. "code": "-ALB-908",
  5. "qty": 100,
  6. "po_number": "mabang-0919-001",
  7. "expire_at": "2022-09-30",
  8. "manufacture_at": "2022-08-31",
  9. "length": 10,
  10. "width": 10,
  11. "height": 10,
  12. "weight": 30
  13. },
  14. {
  15. "code": "#",
  16. "qty": 100,
  17. "po_number": "mabang-0919-002",
  18. "expire_at": "2022-09-30",
  19. "manufacture_at": "2022-08-31",
  20. "length": 10,
  21. "width": 10,
  22. "height": 10,
  23. "weight": 30
  24. }
  25. ],
  26. "centre_code": "mabang",
  27. "client_code": "20",
  28. "client_type": 2,
  29. "asn_number": "mabang-0919",
  30. "is_return_asn": "N",
  31. "asn_date": "2022-09-20",
  32. "eta_at": "2022-09-21"
  33. }

请求参数结构

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

返回参数

返回示例

成功

  1. {
  2. "code": 201,
  3. "data": {
  4. "centre_code": "mabang",
  5. "client_code": "20",
  6. "asn_number": "mabang-0919",
  7. "asn_date": "2022-09-20",
  8. "eta_at": "2022-09-21",
  9. "remarks": null,
  10. "items": [
  11. {
  12. "code": "-ALB-908",
  13. "qty": 100,
  14. "po_number": "mabang-0919-001",
  15. "po_date": null,
  16. "expire_at": "2022-09-30",
  17. "manufacture_at": "2022-08-31",
  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": 30,
  43. "length": 10,
  44. "width": 10,
  45. "height": 10,
  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. "code": "#",
  54. "qty": 100,
  55. "po_number": "mabang-0919-002",
  56. "po_date": null,
  57. "expire_at": "2022-09-30",
  58. "manufacture_at": "2022-08-31",
  59. "lot_no": null,
  60. "barcode": null,
  61. "name": null,
  62. "description": null,
  63. "declare_name": null,
  64. "origin_country": null,
  65. "category_id": null,
  66. "category_name": null,
  67. "color": null,
  68. "size": null,
  69. "line": null,
  70. "style": null,
  71. "season": null,
  72. "gender": null,
  73. "business_line": null,
  74. "product_type": null,
  75. "ingredient": null,
  76. "business_type": null,
  77. "brand": null,
  78. "model": null,
  79. "battery_type": null,
  80. "manufacturer_name": null,
  81. "manufacturer_address": null,
  82. "queue_order": null,
  83. "weight": 30,
  84. "length": 10,
  85. "width": 10,
  86. "height": 10,
  87. "box_qty": 0,
  88. "is_packing_material": null,
  89. "is_expire_date_required": null,
  90. "is_lot_no_required": null,
  91. "is_manufacture_date_required": null
  92. }
  93. ],
  94. "vas": []
  95. },
  96. "message": "success"
  97. }

返回参数结构

名称 类型 中文名
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