外采单或者调拨单相关app接口.md
5.75 KB
1、外采单列表
外采单列表(/purchase/list)
请求参数
参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
---|---|---|---|---|
proRequisitionFormId | int | 可 | 1212 | 外采单id |
productSkn | int | 可 | 1212 | productSkn |
sknFactoryCode | string | 可 | 1212 | 商家商品编号 |
skuFactoryCode | String | 可 | 1212 | 条码 |
startTime | int | 可 | 开始时间(页面上选择日期当日的0点) | |
endTime | int | 可 | 结束时间(页面上选择日期当日的24点) | |
shopId | int | 否 | 411 | 店铺ID |
pageSize | int | 否 | 10 | 每页显示数量 |
pageNo | int | 否 | 1 | 页数 |
statusList | List | 否 | [1] | 状态列表(1:未处理 2:已处理 3:已入库) |
isOvertime | String | 可 | N | 是否超时(Y:超时 N:否) |
请求示例 http://127.0.0.1:8081/gateway/purchase/list
请求样例数据
{
"shopId": 952,
"pageNo": 1,
"pageSize": 100,
"offset": 0,
"statusList" : [1]
}
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"offset": 0,
"records": [
{
"productSkc": 236723,
"brandName": "COMBACK",
"isOvertime": "N",
"lackNum": 0,
"salesPrice": 179.00,
"purchasePrice": 175.4200,
"skuFactoryCode": "C0274",
"proRequisitionFormId": 195518,
"productName": "combackC0274",
"buyingNums": 6,
"shipmentsNums": 0,
"inStoreNum": 0,
"productSku": 772115,
"sizeName": "F",
"createTime": 1493350862,
"predictArrivalTime": 1493610038,
"purchaseDiscount": 0.9800,
"sknFactoryCode": "",
"id": 3500983,
"productSkn": 51116043,
"retailPrice": 360.00,
"shipmentTime": 0,
"factoryGoodsName":"白色",
"originalPurchasePrice": 0.0000,
"status": 1
},
{
"productSkc": 305239,
"brandName": "Into The Rainbow",
"isOvertime": "N",
"lackNum": 0,
"salesPrice": 162.00,
"purchasePrice": 158.7600,
"skuFactoryCode": "ITRGA601OJ-21YEX",
"proRequisitionFormId": 195518,
"productName": "Into The Rainbow 冲锋衣 ITRGA601OJ-21",
"buyingNums": 70,
"shipmentsNums": 0,
"inStoreNum": 0,
"productSku": 962611,
"sizeName": "M",
"createTime": 1493350862,
"predictArrivalTime": 1493610038,
"purchaseDiscount": 0.9800,
"sknFactoryCode": "",
"id": 3501000,
"productSkn": 51173778,
"retailPrice": 539.00,
"shipmentTime": 0,
"factoryGoodsName":"白色",
"originalPurchasePrice": 0.0000,
"status": 1
}
],
"pageNo": 1,
"totalPage": 18,
"pageSize": 100,
"totalCount": 1711
},
"md5": "9dbd26575de72afc29b89b82e86e329c",
"message": "SUCCESS"
}
2、外采单发货接口
外采单发货接口(/purchase/delivery)
请求参数
参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
---|---|---|---|---|
expressId | int | 否 | 2 | 物流公司id |
expressNumber | String | 否 | 2212112222 | 物流单号 |
shopId | int | 否 | 2 | 店铺ID |
expressGoodsMap | map | 否 | key为外采单号, value为外采单发货商品明细list |
外采单发货商品明细
参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
---|---|---|---|---|
productSku | int | 否 | 22222 | sku |
num | int | 否 | 2 | 发货数量 |
注意,通用的头部没有列出。
请求示例 http://127.0.0.1:8088/platform/SellerProductController/querySellerProductImg?productSkn=512587800
请求样例数据
正常返回:
{
"code": 200,
"data": [
{
"colorId": 11,
"createTime": 1491984544,
"factoryCode": "ASD005",
"factoryGoodsName": "红色",
"goodsColorImage": "/2017/04/12/16/01a5e0e7e3d9a1cdc0542df59d7f8be489.jpg",
"goodsImagesList": [
{
"angle": 0,
"genderCover": 0,
"id": 1002900,
"imageUrl": "http://img10.static.yhbimg.com/goodsimg/2017/04/12/16/01a5e0e7e3d9a1cdc0542df59d7f8be489.jpg",
"isDefault": "Y",
"orderBy": 0,
"productSkc": 680280,
"productSkn": 512587800,
"status": 1
},
{
"angle": 0,
"genderCover": 1,
"id": 1002902,
"imageUrl": "http://img11.static.yhbimg.com/goodsimg/2017/04/14/10/01230bd0b1607b5cfee0d91d33ec11cb9d.jpg",
"isDefault": "N",
"orderBy": 1,
"productSkc": 680280,
"productSkn": 512587800,
"status": 1
}
],
"goodsName": "红色",
"isDefault": "Y",
"productSkc": 680280,
"productSkn": 512587800,
"updateTime": 1491984544
}
],
"md5": "142f4d004247f904751020d5b348f9e3",
"message": "查询图片信息成功."
}
异常返回:
{
"code": 400,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "店铺id错误"
}
{
"code": 500,
"data": [],
"md5": "8b233b3ba501d3563be331aa58d0fe0d",
"message": "查询图片信息失败:错误信息."
}