精品国产乱码一区二区三区APP,夜色88V精品国产亚洲AV,国产伦亲子伦亲子视频观看,国产日韩欧美三级

免費體驗

核貨寶供應鏈管理系統

演示平臺 演示地址 賬號密碼
系統后臺 http://b2b.hehuobao.net/admin 聯系客服
電腦端 http://b2b.hehuobao.net 聯系客服
移動端 客戶專屬價格,隨時隨地下單

新增普通商品(adminapi/goods/add)

請求參數

						{
						    "token":"apiKey-必填",
						    "goodsName": "商品名稱-必填",
						    "brandId": "品牌id-可選",
						    "goodsImg": "商品主圖相對路徑,通過uploadImg接口獲取-必填",
						    "goodsVideo": "商品視頻-可選",
						    "goodsSn": "商品編號-必填",
						    "productNo": "產品貨號-必填",
						    "marketPrice": "市場價-必填",
						    "goodsPrice": "商品價-必填",
						    "isPifa": "是否為批發商品 1:是 0:否 - 必填",
						    "pifaNum": "當isPifa=1時,該值表示添加的批發項目數",
						    "buyNum_0": "批發起始數量,當isPifa=1時,必填",
						    "rebate_0": "達到起始數量后立減的價格,當isPifa=1時,必填",
						    "goodsUnit": "商品單位-必填",
						    "minOrder": "起訂量-必填,為0標表示不設置起訂量",
						    "goodsWeight": "商品重量-必填",
						    "goodsVolume": "商品體積-必填",
						    "sysShippingFeeType": "運費計價方式-必填,1:按件 2:按重量 3:按體積",
						    "expDays": "保質期(天),商品分類類型為“快消品”時,該值不為空",
						    "goodsSeoKeywords": "seo關鍵字-可選",
						    "goodsSeoDesc": "seo描述-可選",
						    "goodsTips": "商品促銷信息-可選",
						    "isSale": "系統是否上架 1:是 0:否 - 必填",
						    "isDepotSale": "倉庫上架狀態 1:默認上架 0:手動上架 - 必填",
						    "isRecom": "是否設置為推薦商品 1:是 0:否 - 可選",
						    "isBest": "是否設置為精品 1:是 0:否 - 可選",
						    "isNew": "是否設置為新品 1:是 0:否 - 可選",
						    "isHot": "是否設置為熱銷商品 1:是 0:否 - 可選",
						    "goodsDesc": "商品描述-必填",
						    "goodsCatId": "最后一級商品分類id-必填",
						    "gallery": "商品相冊-可選"
						}
					

mock數據

						{
						    "goodsId": "0",
						    "goodsName": "新增普通商品",
						    "brandId": "",
						    "goodsImg": "upload/goods/2022-12/63aa4e7896e10.png",
						    "goodsVideo": "",
						    "goodsSn": "167210312695407",
						    "productNo": "167210312695407",
						    "marketPrice": "99",
						    "goodsPrice": "88",
						    "isPifa": "0",
						    "pifaNum": "0",
						    "goodsUnit": "臺",
						    "minOrder": "0",
						    "goodsWeight": "7",
						    "goodsVolume": "7",
						    "sysShippingFeeType": "2",
						    "expDays": "10",
						    "goodsSeoKeywords": "SEO關鍵字",
						    "goodsSeoDesc": "SEO描述",
						    "goodsTips": "商品促銷信息",
						    "isSale": "1",
						    "isDepotSale": "1",
						    "isRecom": "",
						    "isBest": "",
						    "isNew": "",
						    "isHot": "",
						    "goodsDesc": "商品描述內容商品描述內容商品描述內容商品描述內容商品描述內容",
						    "goodsCatId": "45",
						    "gallery": ""
						}
					

返回值

						{
						    "status": 1,
						    "msg": "新增成功",
						    "data": {
						        "id": "商品id"
						    }
						}
					

修改商品(adminapi/goods/edit)

請求參數

						{
						    "token":"apiKey-必填",
						    "goodsId":"商品id-必填",
						    "goodsName": "商品名稱-必填",
						    "brandId": "品牌id-可選",
						    "goodsImg": "商品主圖相對路徑,通過uploadImg接口獲取-必填",
						    "goodsVideo": "商品視頻-可選",
						    "goodsSn": "商品編號-必填",
						    "productNo": "產品貨號-必填",
						    "marketPrice": "市場價-必填",
						    "goodsPrice": "商品價-必填",
						    "isPifa": "是否為批發商品 1:是 0:否 - 必填",
						    "pifaNum": "當isPifa=1時,該值表示添加的批發項目數",
						    "buyNum_0": "批發起始數量,當isPifa=1時,必填",
						    "rebate_0": "達到起始數量后立減的價格,當isPifa=1時,必填",
						    "goodsUnit": "商品單位-必填",
						    "minOrder": "起訂量-必填,為0標表示不設置起訂量",
						    "goodsWeight": "商品重量-必填",
						    "goodsVolume": "商品體積-必填",
						    "sysShippingFeeType": "運費計價方式-必填,1:按件 2:按重量 3:按體積",
						    "expDays": "保質期(天),商品分類類型為“快消品”時,該值不為空",
						    "goodsSeoKeywords": "seo關鍵字-可選",
						    "goodsSeoDesc": "seo描述-可選",
						    "goodsTips": "商品促銷信息-可選",
						    "isSale": "系統是否上架 1:是 0:否 - 必填",
						    "isDepotSale": "倉庫上架狀態 1:默認上架 0:手動上架 - 必填",
						    "isRecom": "是否設置為推薦商品 1:是 0:否 - 可選",
						    "isBest": "是否設置為精品 1:是 0:否 - 可選",
						    "isNew": "是否設置為新品 1:是 0:否 - 可選",
						    "isHot": "是否設置為熱銷商品 1:是 0:否 - 可選",
						    "goodsDesc": "商品描述-必填",
						    "goodsCatId": "最后一級商品分類id-必填",
						    "gallery": "商品相冊-可選"
						}
					

返回值

						{
						    "status": 1,
						    "msg": "編輯成功",
						    "data": {
						        "id": "商品id"
						    }
						}
					

商品出庫/入庫(POST)(adminapi/goods/editStock)

銷售規格id可以通過adminapi/goods/getById接口獲取(返回值中的saleSpec數組下的id)

請求參數(多規格)

						{
						  "token":"apiKey-必填",
						  "goodsId": "商品id-必填",
						  "depotId":"倉庫id-必填",
						  "stockType_xx": "出/入庫類型-必填(xx為銷售規格ID)(1:入庫 -1出庫)",
						  "stockQty_xx": "出/入庫量數-必填(xx為銷售規格ID)",
						  "manufactureDate_xx": "生產日期-(入庫-必填)(xx為銷售規格ID)"
						}
					

mock數據

						{
						  "token":"apiKey-必填",
						  "goodsId": "130",
						  "depotId":"63",
						  "stockType_226": "1",
						  "stockQty_226": "1",
						  "manufactureDate_226": "2022-12-27"
						}
					

請求參數(無規格)

						{
						  "goodsId": "商品id-必填",
						  "depotId":"倉庫id-必填",
						  "stockType": "出/入庫類型-必填(1:入庫 -1出庫)",
						  "stockQty": "出/入庫量數-必填",
						  "manufactureDate": "生產日期-商品類型為快消品-必填,例如:2022-12-27"
						}
					

mock數據

						{
						    "goodsId": 131,
						    "depotId": 63,
						    "stockType": 1,
						    "manufactureDate": "2022-12-27",
						    "stockQty": 11
						}
					

返回值

						{
						    "status": 1,
						    "msg": "操作成功"
						}
					

查詢商品(adminapi/goods/getById)

請求參數

						{
						    "token":"apiKey-必填",
						    "id": "商品id-必填"
						}
					

返回值

						{
						    "status": "接口請求狀態。1:成功  -1:失敗",
						    "msg": "返回信息",
						    "data": {
						        "goodsId": "商品ID",
						        "goodsSn": "商品編號",
						        "productNo": "商品貨號",
						        "goodsName": "商品名稱",
						        "goodsImg": "商品圖片",
						        "goodsType": "0:普通商品 1:快消品",
						        "marketPrice": "市場價",
						        "goodsPrice": "商品價格",
						        "goodsStock": "商品庫存數",
						        "goodsUnit": "商品單位",
						        "goodsTips": "商品促銷信息",
						        "isSale": "是否上架(1:是 0:否)",
						        "isBest": "是否精品(1:是 0:否)",
						        "isHot": "是否熱銷(1:是 0:否)",
						        "isNew": "是否新品(1:是 0:否)",
						        "isRecom": "是否推薦(1:是 0:否)",
						        "goodsCatIdPath": "商品分類ID路徑",
						        "goodsCatId1": "商品分類ID",
						        "goodsCatId": "商品分類ID",
						        "brandId": "品牌ID",
						        "goodsDesc": "商品描述",
						        "saleNum": "銷量",
						        "saleTime": "上架時間",
						        "visitNum": "訪問量",
						        "appraiseNum": "評價數",
						        "isSpec": "是否多規格(1:是 0:否)",
						        "gallery": ["商品相冊"],
						        "goodsSeoKeywords": "SEO關鍵字",
						        "dataFlag": "有效狀態,1:有效 -1:無效",
						        "createTime": "數據創建時間",
						        "goodsSerachKeywords": "商品搜索關鍵字",
						        "goodsVideo": "視頻",
						        "goodsVideoThumb": "視頻縮略圖",
						        "goodsSeoDesc": "SEO描述",
						        "goodsWeight": "重量",
						        "goodsVolume": "體積",
						        "manufactureDate": "生產日期",
						        "buyDate": "進貨日期",
						        "qualityDays": "保質期",
						        "completeStatus": "商品資料是否完整標識(1:完整,0:不完整)",
						        "expDays": "保質期",
						        "bakGoodsName": "備份商品名稱",
						        "bakGoodsImg": "備份商品圖片",
						        "bakGoodsSn": "備份商品編輯",
						        "bakProductNo": "備份商品貨號",
						        "goodsSrc": "商品來源",
						        "isPifa": "0:未設置批發 1:批發商品",
						        "minOrder": "起訂量",
						        "preGoodsStock": "預出庫數量",
						        "sysShippingFeeType": "運費計價方式(1:按件 2:按重量 3:按體積)",
						        "spec0": [
						            {
						                "isAllowImg": "是否允許上傳圖片1:是 0:否",
						                "catId": " 規格id ",
						                "itemId": " 規格項id ",
						                "itemName": " 規格項名稱 ",
						                "itemImg": " 規格圖片 "
						            },
						        ],
						        "spec1": [
						            {
						                "isAllowImg": "是否允許上傳圖片1:是 0:否",
						                "catId": " 規格id ",
						                "itemId": " 規格項id ",
						                "itemName": " 規格項名稱 ",
						                "itemImg": " 規格圖片 "
						            }
						        ],
						        "saleSpec": [
						            {
						                "id": "銷售規格id",
						                "isDefault": "是否為默認規格 0:否 1:是",
						                "productNo": "產品號",
						                "specIds": "212:213",
						                "marketPrice": "市場價",
						                "specPrice": "規格價格",
						                "specStock": "規格庫存",
						                "saleNum": "規格銷量",
						                "specWeight": "規格商品重量",
						                "specVolume": "規格商品體積"
						            }
						        ],
						        "attrs": [
						            {
						                "attrName": " 屬性名稱 ",
						                "attrVal": " 屬性值 ",
						            }
						        ],
						        "packagings": [
						            {
						                "packagingUnit": "包裝單位,例如:箱",
						                "packagingNum": "每件包裝的數量"
						            }
						        ]
						    }
						}
					

刪除商品(adminapi/goods/del)

請求參數

						{
						  "token":"apiKey-必填",
						  "ids":["商品id-必填", ...]
						}
					

返回值

						{
						    "status": 1,
						    "msg": "刪除成功"
						}
					

上下架(adminapi/goods/isSale)

請求參數

						{
						  "token":"apiKey-必填",
						  "ids":["商品id-必填", ...],
						  "isSale":"0:下架 1:上架",
						}
					

返回值

						{
						    "status": 1,
						    "msg": "商品上架成功",
						    "data": {
						        "num": "成功上架數"
						    }
						}
					

根據商品分類獲取規格屬性(adminapi/goods/getSpecAttrs)

請求參數

						{
						  "token":"apiKey-必填",
						  "goodsCatId":"最后一級商品分類id"
						}
					

返回值

						{
						    "status": 1,
						    "msg": "",
						    "data": {
						        "spec0": {
						            "catId": "商品規格分類id",
						            "catName": "商品規格分類名稱",
						            "isAllowImg": "此處恒定為1,spec0下的商品規格分類表示支持上傳規格圖片"
						        },
						        "spec1": [
						            {
						                "catId": "商品規格分類id",
						                "catName": "商品規格分類名稱",
						                "isAllowImg": "此處恒定為0,spec1下的商品規格分類表示不支持上傳規格圖片"
						            }
						        ],
						        "attrs": [
						            {
						                "attrId": "商品屬性id",
						                "attrName": "商品屬性名稱",
						                "attrType": "屬性類型 0:輸入框 1:多選項 2:下拉框",
						                "attrVal": "屬性值,例如:屬性選項1,屬性選項2"
						            }
						        ]
						    }
						}
					

新增(編輯)規格商品(adminapi/goods/add、adminapi/goods/edit)

請求參數

						{
						    "token":"apiKey-必填",
						    "goodsId": "商品id-可選,請求edit接口時必填",
						    "goodsName": "商品名稱-必填",
						    "brandId": "品牌id-可選;品牌與商品分類綁定,確保所選分類下存在品牌id",
						    "goodsImg": "商品主圖相對路徑,通過uploadImg接口上傳圖片后獲取-必填",
						    "goodsVideo": "商品視頻相對路徑,通過uploadImg接口上傳視頻后獲取-可選",
						    "goodsSn": "商品編號-必填",
						    "productNo": "產品貨號-必填",
						    "marketPrice": "市場價-必填",
						    "goodsPrice": "商品價格-必填",
						    "isPifa": "是否為批發商品 1:是 0:否 - 必填",
						    "pifaNum": "當isPifa=1時,該值表示添加的批發項目數",
						    "buyNum_0": "批發起始數量,當isPifa=1時,必填",
						    "rebate_0": "達到起始數量后立減的價格,當isPifa=1時,必填",
						    "goodsUnit": "商品單位-必填",
						    "minOrder": "起訂量-必填,為0標表示不設置起訂量",
						    "goodsWeight": "商品重量-必填",
						    "goodsVolume": "商品體積-必填",
						    "sysShippingFeeType": "運費計價方式-必填,1:按件 2:按重量 3:按體積",
						    "goodsSeoKeywords": "SEO關鍵字-可選",
						    "goodsSeoDesc": "SEO描述-可選",
						    "goodsTips": "商品促銷信息-可選",
						    "isSale": "系統是否上架 1:是 0:否 - 必填",
						    "isDepotSale": "倉庫上架狀態 1:默認上架 0:手動上架 - 必填",
						    "isRecom": "是否設置為推薦商品 1:是 0:否 - 可選",
						    "isBest": "是否設置為精品 1:是 0:否 - 可選",
						    "isNew": "是否設置為新品 1:是 0:否 - 可選",
						    "isHot": "是否設置為熱銷商品 1:是 0:否 - 可選",
						    "goodsDesc": "商品描述-必填",
						    "defaultSpec": "默認選中的規格,例如:11_0-12_1(字符串生成規則見下方規格商品補充說明)",
						    "productNo_17_0-18_1": "當前規格商品貨號,例如:163894457786324-1",
						    "marketPrice_17_0-18_1": "當前規格商品市場價,例如:1999",
						    "specPrice_17_0-18_1": "當前規格商品店鋪價,例如:1000",
						    "specWeight_17_0-18_1": "當前規格商品重量,例如:1",
						    "specVolume_17_0-18_1": "當前規格商品體積,例如:1",
						    "goodsCatId": "最后一級商品分類id-必填",
						    "specNum": "暫無用處",
						    "specName_17_0": "規格名稱,例如:紅色",
						    "specImg_17_0": "規格圖片",
						    "specName_18_1": "規格名稱,例如:16G",
						    "specImg_18_1": "",
						    "specsIds": "規格分類id鍵值組合后的字符串,例如11_0-12_1;多個字符串用,分割",
						    "specidsmap": "規格分類id鍵值組合后的字符串,例如:11_0-12_1;多個字符串用,分割",
						    "specmap": "",
						    "attr_2": "商品屬性",
						    "gallery": "商品相冊-可選,例如:upload/goods/2021-12/61b04f761d588.png,upload/goods/2021-12/61b04f761d589.png",
						    "packagingUnit": ["商品包裝單位"],
						    "packagingNum": ["商品包裝對應的最小單位數,例如1箱12件,12為packagingNum"]
						}
					

補充說明

新增商品規格前,需通過getSpecAttrs接口獲取商品規格、屬性

getSpecAttrs接口返回示例:

						{
						    "status": 1,
						    "msg": "",
						    "data": {
						        "spec0": {
						            "catId": 11,
						            "catName": "顏色",
						            "isAllowImg": 1
						        },
						        "spec1": [
						            {
						                "catId": 12,
						                "catName": "版本",
						                "isAllowImg": 0
						            }
						        ],
						        "attrs": [
						            {
						                "attrId": 1,
						                "attrName": "顏色",
						                "attrType": 2,
						                "attrVal": "白色,黑色"
						            }
						        ]
						    }
						}
					

假設根據getSpecAttrs接口返回的數據,在頁面上生成如下表單

image-20211208175721843

"specName_11_0"生成規則

specName_規格分類id_第幾個輸入框(“顏色”的catId=11;上圖"紅色"為第0個輸入框)

"specName_12_1"生成規則

specName_規格分類id_第幾個輸入框(“版本”的catId=12;上圖"16G"為第1個輸入框)

"11_0-12_1"字符串的生成規則

						{"defaultSpec":"11_0-12_1","specsIds": "11_0-12_1","specidsmap": ":11_0-12_1"}
						defaultSpec表示選中哪項為默認規格
						11、12值來源于商品規格分類id,可通過adminapi/goods/getSpecAttrs接口獲取(返回示例見上方)
						0、1表示第幾個輸入框。
						?
						catId=11為的規格名稱是“顏色”;catId=12的規格名稱是“版本”;
						需要為商品設置上這兩項規格組合,
						例如“紅色、16G”這個規格,則需生成{"specName_11_0":"紅色","specName_12_1":"16G"}
						組合后生成"11_0-12_1"
					

"11_0-12_1"字符串生成后,則將該字符串作為該規格組合的“市場價、銷售價”等數據的鍵值的后綴,將"11_0-12_1"看做“后綴"

						"productNo_后綴": "當前規格商品貨號,例如:163894457786324-1",
						"marketPrice_后綴": "當前規格商品市場價,例如:1999",
						"specPrice_后綴": "當前規格商品店鋪價,例如:1000",
						"specStock_后綴": "當前規格商品庫存,例如:1000",
						"warnStock_后綴": "當前規格商品預警庫存,例如:1",
						"specWeight_后綴": "當前規格商品重量,例如:1",
						"specVolume_后綴": "當前規格商品體積,例如:1",
					

mock數據

						{
						    "token":"123456",
						    "goodsId": "0",
						    "goodsName": "測試新增商品",
						    "brandId": "1",
						    "goodsImg": "upload/goods/2022-12/63a9129e0cf08.png",
						    "goodsVideo": "",
						    "goodsSn": "0000000000127",
						    "productNo": "167202458232707",
						    "marketPrice": "1000.00",
						    "goodsPrice": "900.00",
						    "isPifa": "0",
						    "pifaNum": "0",
						    "goodsUnit": "箱",
						    "minOrder": "0",
						    "goodsWeight": "1.00",
						    "goodsVolume": "1.00",
						    "sysShippingFeeType": "1",
						    "goodsSeoKeywords": "SEO關鍵字",
						    "goodsSeoDesc": "SEO描述",
						    "goodsTips": "商品促銷信息",
						    "isSale": "1",
						    "isRecom": "",
						    "isBest": "",
						    "isNew": "",
						    "isHot": "",
						    "goodsDesc": "這里是商品描述",
						    "defaultSpec": "17_0-18_2",
						    "productNo_17_0-18_2": "167202458232707-1",
						    "marketPrice_17_0-18_2": "1000.00",
						    "specPrice_17_0-18_2": "900.00",
						    "specWeight_17_0-18_2": "1.00",
						    "specVolume_17_0-18_2": "1.00",
						    "productNo_17_0-18_3": "167202458232707-2",
						    "marketPrice_17_0-18_3": "1000.00",
						    "specPrice_17_0-18_3": "900.00",
						    "specWeight_17_0-18_3": "1.00",
						    "specVolume_17_0-18_3": "1.00",
						    "productNo_17_1-18_2": "167202458232707-3",
						    "marketPrice_17_1-18_2": "1000.00",
						    "specPrice_17_1-18_2": "900.00",
						    "specWeight_17_1-18_2": "1.00",
						    "specVolume_17_1-18_2": "1.00",
						    "productNo_17_1-18_3": "167202458232707-4",
						    "marketPrice_17_1-18_3": "1000.00",
						    "specPrice_17_1-18_3": "900.00",
						    "specWeight_17_1-18_3": "1.00",
						    "specVolume_17_1-18_3": "1.00",
						    "goodsCatId": "65",
						    "specNum": "4",
						    "specName_17_0": "紅",
						    "specImg_17_0": "",
						    "specName_17_1": "藍",
						    "specImg_17_1": "",
						    "specName_18_2": "8G",
						    "specImg_18_2": "",
						    "specName_18_3": "12G",
						    "specImg_18_3": "",
						    "gallery": "upload/goods/2022-12/63a913031b580.jpg",
						    "specsIds": "17_0-18_2,17_0-18_3,17_1-18_2,17_1-18_3",
						    "specidsmap": "210:17_0-18_2,211:17_0-18_3,212:17_1-18_2,213:17_1-18_3",
						    "specmap": "192:17_0,193:18_2,194:18_3,195:17_1"
						}
					

返回值

						{
						    "status": 1,
						    "msg": "新增成功",
						    "data": {
						        "id": "商品id"
						    }
						}
					

獲取倉庫列表(adminapi/depots/pageQuery)

請求參數

						{
						    "token":"apiKey-必填",
						    "depotName":"倉庫名稱-選填",
						    "page":"頁碼-默認為1",
						    "limit":"每頁條數-默認為15"
						}
					

返回值

						{
						    "total": "總條數",
						    "per_page": "每頁顯示條數",
						    "current_page": "當前頁碼",
						    "last_page": "最后一頁頁碼",
						    "data": [
						        {
						            "depotId": "倉庫id",
						            "depotName": "倉庫名稱",
						            "depotNo": "倉庫編號",
						            "staffId": "倉庫負責人職員ID",
						            "areaId": "倉庫地區最后一級ID",
						            "areaIdPath": "倉庫地區ID路徑字符串",
						            "address": "倉庫詳細地址",
						            "depotStatus": "倉庫狀態 1:正常 0:停用",
						            "depotStatusDes": "倉庫停用說明",
						            "createTime": "數據創建時間",
						            "dataFlag": "有效狀態,1:有效 -1:無效",
						            "deliverAreaIds": "倉庫配送范圍地區ID字符串",
						            "staffName": "倉庫負責人職員名稱"
						        }
						    ]
						}
					

商品分類查詢(adminapi/goodscats/listquery)

請求參數

						{
						    "token":"apiKey-必填",
						    "parentId": "父id,默認值為0"
						}
					

返回值

						{
						    "status": 1,
						    "msg": "",
						    "data": [
						        {
						            "catId": "分類id",
						            "parentId": "父id",
						            "catName": "分類名稱",
						            "catSort": "分類排序號",
						            "catType": "商品分類類型 1:快消品 0:普通商品"
						        }
						    ]
						}
					

新增(adminapi/goodscats/add)

請求參數

						{
						    "token":"apiKey-必填",
						    "parentId": "分類父級id",
						    "catId": "分類id",
						    "catName": "分類名稱-必填",
						    "catType": "分類類型 0:普通商品 1:快消品",
						    "catImg": "分類移動端圖標",
						    "isShow": "是否顯示 1:是 0:否",
						    "catSort": "分類排序號",
						    "id": "分類id"
						}
					

返回值

						{"status":1,"msg":"新增成功"}
					

修改(adminapi/goodscats/edit)

請求參數

						{
						    "token":"apiKey-必填",
						    "parentId": "分類父級id",
						    "catId": "分類id",
						    "catName": "分類名稱-必填",
						    "catType": "分類類型 0:普通商品 1:快消品",
						    "catImg": "分類移動端圖標",
						    "isShow": "是否顯示 1:是 0:否",
						    "catSort": "分類排序號",
						    "id": "分類id"
						}
					

返回值

						{"status":1,"msg":"編輯成功"}
					

刪除(adminapi/goodscats/del)

請求參數

						{
						  "token":"apiKey-必填",
						  "id": "商品分類id-必填"
						}
					

返回值

						{"status":1,"msg":"刪除成功"}
					

獲取商品規格分類列表(adminapi/speccats/pageQuery)

請求參數

						{
						    "token":"apiKey-必填",
						    "keyName":"規格名稱-選填",
						    "goodsCatPath":"商品分類組成的字符串-選填",
						    "page":"頁碼-默認為1",
						    "limit":"每頁條數-默認為15"
						}
					

返回值

						{
						    "total": "總條數",
						    "per_page": "每頁顯示條數",
						    "current_page": "當前頁碼",
						    "last_page": "最后一頁頁碼",
						    "data": [
						        {
						            "catId": "規格id",
						            "catName": "規格名稱",
						            "catSort": "規格排序",
						            "children": "為空",
						            "createTime": "創建時間",
						            "dataFlag": "有效狀態,1:有效 -1:無效",
						            "goodsCatId": "最后一級商品分類id",
						            "goodsCatNames": "規格所屬商品分類",
						            "goodsCatPath": "規格所屬商品分類組成的字符串",
						            "id": "規格id",
						            "isAllowImg": "是否允許上傳圖片 1:是 0:否",
						            "isShow": "是否顯示 1:是 0:否",
						            "isextend": "默認值false",
						            "name": "規格名稱"
						        }
						    ]
						}
					

新增(adminapi/speccats/add)

請求參數

						{
						    "token":"apiKey-必填",
						    "catName": "規格名稱-必填",
						    "isAllowImg": "是否允許上傳圖片 1:是 0:否",
						    "isShow": "是否顯示 1:是 0:否",
						    "goodsCatId": "最后一級商品分類id-必填"
						}
					

返回值

						{"status":1,"msg":"新增成功"}
					

修改(adminapi/speccats/edit)

請求參數

						{
						    "token":"apiKey-必填",
						    "catId":"商品規格分類id-必填",
						    "catName": "規格名稱-必填",
						    "isAllowImg": "是否允許上傳圖片 1:是 0:否",
						    "isShow": "是否顯示 1:是 0:否",
						    "goodsCatId": "最后一級商品分類id-必填"
						}
					

返回值

						{"status":1,"msg":"編輯成功"}
					

查詢(adminapi/speccats/getById)

請求參數

						{
						  "token":"apiKey-必填",
						  "catId": "商品規格分類id-必填"
						}
					

返回值

						{
						    "token":"apiKey-必填",
						    "catId": "商品規格分類id",
						    "goodsCatId": "最后一級商品分類id",
						    "goodsCatPath": "商品分類組成的字符串",
						    "catName": "規格名稱",
						    "isAllowImg": "是否允許上傳圖片 1:是 0:否",
						    "isShow": "是否顯示 1:是 0:否"
						}
					

刪除(adminapi/speccats/del)

請求參數

						{
						  "token":"apiKey-必填",
						  "catId": "商品規格分類id-必填"
						}
					

返回值

						{"status":1,"msg":"刪除成功"}
					

新增(adminapi/attributes/add)

請求參數

						{
						    "token":"apiKey-必填",
						    "attrName": "屬性名稱-必填",
						    "attrType": "屬性類型-必填 0:輸入框 1:多選項 2:下拉框",
						    "attrVal": "當attrType不為0時-必填,例如:屬性選項1,屬性選項2",
						    "isShow": "是否顯示 1:是 0:否",
						    "attrSort": "排序號",
						    "goodsCatId": "最后一級商品分類id-必填"
						}
					

返回值

						{"status":1,"msg":"新增成功"}
					

修改(adminapi/attributes/edit)

請求參數

						{
						    "token":"apiKey-必填",
						    "attrId": "屬性id-必填",
						    "attrName": "屬性名稱-必填",
						    "attrType": "屬性類型-必填 0:輸入框 1:多選項 2:下拉框",
						    "attrVal": "當attrType不為0時-必填,例如:屬性選項1,屬性選項2",
						    "isShow": "是否顯示 1:是 0:否",
						    "attrSort": "排序號",
						    "goodsCatId": "最后一級商品分類id-必填"
						}
					

返回值

						{"status":1,"msg":"編輯成功"}
					

查詢(adminapi/attributes/getById)

請求參數

						{
						  "token":"apiKey-必填",
						  "attrId": "屬性id-必填"
						}
					

返回值

						{
						    "attrId": "屬性id",
						    "attrName": "屬性名稱",
						    "attrType": "屬性類型 0:輸入框 1:多選項 2:下拉框",
						    "attrVal": "屬性值,例如:屬性選項1,屬性選項2",
						    "isShow": "是否顯示 1:是 0:否",
						    "attrSort": "排序號",
						    "goodsCatId": "最后一級商品分類id"
						}
					

刪除(adminapi/attributes/del)

請求參數

						{
						  "token":"apiKey-必填",
						  "attrId": "屬性id-必填"
						}
					

返回值

						{"status":1,"msg":"刪除成功"}
					

獲取訂單列表(adminapi/orders/pageQuery)

請求參數

						{
						    "token":"apiKey-必填",
						    "status":"訂單狀態-必填  -3:用戶拒收 -2:未付款的訂單 -1:用戶取消 0:待發貨 1:配送中 2:用戶確認收貨",
						    "page":"頁碼-默認為1",
						    "pagesize":"每頁條數-默認為15",
						    "startDate":"訂單開始時間-可選",
						    "endDate":"訂單結束時間-可選",
						    "orderNo":"訂單號-可選",
						}
					

返回值

						{
						    "status": "接口請求狀態。1:成功  -1:失敗",
						    "msg": "ok",
						    "data": {
						        "total": "數據總條數",
						        "per_page": "每頁顯示數",
						        "current_page": "當前頁碼",
						        "last_page": "總頁碼",
						        "data": [
						            {
						                "orderId": "訂單ID",
						                "orderNo": "訂單號",
						                "createTime": "創建時間,2022-11-11 09:59:11",
						                "userName": "用戶名稱",
						                "orderSrc": "訂單來源,例如:third",
						                "platformMoney": "平臺對外供貨價格",
						                "orderStatus": "主訂單狀態  -3:用戶拒收 -2:未付款的訂單 -1:用戶取消 0:待發貨 1:配送中 2:用戶確認收貨",
						                "deliverStatus": "發貨狀態 0:未發貨 1:部分發布  10:全部發貨",
						                "sellerName": "深圳美膚管理公司",
						                "userTotalMoney": "用戶端訂單銷售總金額",
						                "payFrom": "支付方式,例如:credit",
						                "userRealTotalMoney": "用戶端用戶主訂單實際金額",
						                "isPay": "訂單是否已支付 1:是 0:否",
						                "userIsPay": "用戶是否已支付 1:是 0:否",
						                "userPayFrom": "用戶支付方式",
						                "orderStatusText": "訂單狀態說明,例如:待發貨",
						                "deliverStatusText": "發貨狀態說明,例如:待發貨",
						                "orderSrcText": "訂單來源文字說明",
						                "payFromText": "支付方式文字說明",
						                "list": [
						                    {
						                        "id": "ID",
						                        "orderId": "訂單ID",
						                        "goodsId": "商品ID",
						                        "goodsNum": "商品數",
						                        "goodsPrice": "商品價格",
						                        "goodsUnit": "商品單位",
						                        "goodsName": "商品名",
						                        "goodsImg": "商品圖片",
						                        "createTime": "創建時間,例如2021-04-08 18:39:10",
						                        "orderGoodsStatus": "訂單商品發貨狀態 0:待發貨 1:已發貨 -1:缺貨",
						                        "isSellerReject": "訂單商品拒收狀態 0:未拒收 1:拒收",
						                        "sellerRejectReason": "拒收原因",
						                        "sellerRejectOtherReason": "經銷商拒收說明,當sellerRejectReason=10000時該字段不為空",
						                        "isCheckGoods": "驗貨狀態 1:已處理 0:待處理",
						                        "rejectNum": "拒收數量",
						                        "lossNum": "損耗數量",
						                        "manufactureDates": "商品生產日期",
						                        "failureTime": "記錄標記為缺貨(拒收)時間",
						                        "checkoutJson": "出庫記錄json",
						                        "goodsSpecNames": "商品規格",
						                        "shotGoodsSpecNames": "商品規格名"
						                    }
						                ],
						                "isCancelOrder": "訂單是否可取消(1:是 0:否)",
						                "isRejectOrder": "是否可拒收(1:是 0:否)",
						                "isReceiveOrder": "是否可收貨(1:是 0:否)"
						            }
						        ]
						    }
						}
					

獲取訂單詳情(adminapi/orders/getById)

請求參數

						{
						    "token":"apiKey-必填",
						    "orderId":"訂單id"
						}
					

返回值

						{
						    "status": "接口請求狀態。1:成功  -1:失敗",
						    "msg": "",
						    "data": {
						        "orderId": "訂單ID",
						        "orderNo": "訂單號",
						        "totalMoney": "采購應付總金額",
						        "platformMoney": "采購商品總金額",
						        "orderNo": "訂單號",
						        "userName": "用戶名稱",
						        "userAddress": "收貨人地址",
						        "userPhone": "收貨人手機號",
						        "areaId": "最后一級地區id",
						        "areaIdPath": "地區ID路徑字符串,例如:440000_440300_440304_",
						        "sellerId": "經銷商id",
						        "isInvoice": "是否開發票",
						        "invoiceClient": "發票抬頭",
						        "orderRemarks": "訂單備注",
						        "orderSrc": "標記訂單來源",
						        "orderStatus": "主訂單狀態  -3:用戶拒收 -2:未付款的訂單 -1:用戶取消 0:待發貨 1:配送中 2:用戶確認收貨",
						        "deliverStatus": "發貨狀態 0:未發貨 1:部分發布  10:全部發貨",
						        "createTime": "創建時間",
						        "dataFlag": 1,
						        "invoiceJson": {
						            "invoiceType": "發票類型(1:增值稅專用發票0:普通發票)",
						            "invoiceHead": "發票抬頭",
						            "invoiceCode": "發票稅號",
						            "invoiceAddr": "注冊地址",
						            "invoicePhoneNumber": "注冊電話",
						            "invoiceBankName": "開戶銀行",
						            "invoiceBankNo": "銀行賬戶"
						        },
						        "isClose": "訂單是否已關閉 1:是 0:否,由管理員操作",
						        "platformCancelRemarks": "平臺取消訂單說明",
						        "sellerCancelReason": "取消訂單理由id",
						        "sellerCancelOtherReason": "取消訂單說明,當sellerCancelReason=10000時該字段不為空",
						        "changeOrderStatusRemarks": "平臺變更訂單狀態說明",
						        "realTotalMoney": "主訂單實際金額(金額返還后剩余的訂單金額)",
						        "finishedTime": "訂單完成時間",
						        "isMakeInvoice": "是否已開發票",
						        "refundMoney": "退款金額,0.00",
						        "sellerDeliverMoney": "經銷商運費",
						        "isAppraise": "是否評價(1:是 0:否)",
						        "userTotalMoney": "銷售商品總金額",
						        "userRealTotalMoney": "銷售實付總金額",
						        "deliverType": "配送方式(1:自提 0:快遞)",
						        "sysDeliverMoney": "運費",
						        "orderStatusText": "訂單狀態說明,例如:待發貨",
						        "deliverStatusText": "配送狀態說明,例如:待發貨",
						        "payFromText": "支付方式說明",
						        "goods": [
						            {
						                "id": "訂單商品表id",
						                "orderId": "訂單id",
						                "depotOrderId": "倉庫訂單id",
						                "sellerGoodsId": "經銷商商品id",
						                "sysGoodsId": "商品id",
						                "goodsNum": "商品數",
						                "goodsPrice": "商品價格",
						                "goodsUnit": "盒",
						                "platformMoney": "平臺供貨格",
						                "goodsMoney": "商品價格",
						                "goodsName": "商品名",
						                "goodsImg": "商品圖片",
						                "sysGoodsSpecId": "系統規格商品id",
						                "sysGoodsSpecNames": "規格商品名稱",
						                "createTime": "創建時間",
						                "orderGoodsStatus": "訂單商品發貨狀態 0:待發貨 1:已發貨 -1:缺貨",
						                "isSellerReject": "訂單商品拒收狀態 0:未拒收 1:拒收",
						                "sellerRejectReason": "拒收原因",
						                "sellerRejectOtherReason": "經銷商拒收說明,當sellerRejectReason=10000時該字段不為空",
						                "isCheckGoods": "驗貨狀態 1:已處理 0:待處理",
						                "rejectNum": "拒收數量",
						                "lossNum": "損耗數量",
						                "manufactureDates": "商品生產日期",
						                "failureTime": "記錄標記為缺貨(拒收)時間",
						                "checkoutJson": "出庫記錄json",
						                "sellerGoodsName": "經銷商品名稱",
						                "sellerGoodsPrice": "經銷商商品價格",
						                "goodsCode": "訂單商品代碼,當訂單為贈品時該值為'gift'",
						                "promotionJson": "優惠信息json",
						                "couponVal": "優惠券優惠價格",
						                "rewardVal": "滿減優惠價格",
						                "platformRewardVal": "平臺-滿減優惠價格",
						                "platformGoodsCode": "平臺-訂單商品代碼,當訂單為贈品時該值為'gift'",
						                "platformPromotionJson": "平臺-優惠信息json",
						                "sysGoodsSn": "商品貨號",
						                "sysProductNo": "商品產品號",
						                "platformCouponVal": "平臺-優惠券優惠價格",
						                "depotId": "倉庫id",
						                "depotOrderStatus": "倉庫訂單狀態",
						                "depotName": "倉庫名稱",
						                "depotOrderNo": "倉庫訂單號碼",
						                "orderGoodsStatusText": "訂單商品狀態說明"
						            }
						        ]
						    }
						}
					

訂單發貨(adminapi/orders/deliverOrder)

請求參數

						{
						    "token":"apiKey-必填",
						    "orderId":"訂單id"
						    "deliverType":"配送類型 0:無需快遞配送  1:需要快遞配送",
						    "erpExpressId":"ERP快遞公司ID,如果無需快遞配送則傳0",
						    "expressNo":'快遞單號,有快遞公司則需要傳',
						    "orderGoodsIds":"本次發貨的訂單-商品ID列表,以,號分割"
						}
					

返回值

						{
						    "status": "接口請求狀態。1:成功  -1:失敗",
						    "msg": "發貨成功"
						}
					

訂單拆分(adminapi/orders/splitOrder)

請求參數

						{
						    "token":"apiKey-必填",
						    "orderId":"訂單id"
						    "orders":"拆分訂單的數組,
						                格式:orders=[
						                   [
						                   "deliverMoney"=>"運費","goodsIds"=>[
                                              [
                                                    "orderGoodsId"=>'本次拆分的訂單-商品ID',
                                                    "num"=>'本次拆分的訂單-商品數量'
                                              ]
                                           ]
                                           ]
						                  ]"

						}
					

返回值

						{
						    "status": "接口請求狀態。1:成功  -1:失敗",
						    "msg": "拆分成功"
						}
					

訂單恢復(被拆分的訂單)(adminapi/orders/revokeOrder)

請求參數

						{
						    "token":"apiKey-必填",
						    "orderId":"訂單id"
						}
					

返回值

						{
						    "status": "接口請求狀態。1:成功  -1:失敗",
						    "msg": "恢復成功"
						}
					

同步快遞列表(adminapi/express/add

請求參數

						{
						    "token":"apiKey-必填",
						    "express":"訂快遞數組 express=[
                               ['erpExpressId'=>'erp里的快遞公司ID','expressName'=>'快遞公司名稱']
						    ]"
						}
					

返回值

						{
						    "status": "接口請求狀態。1:成功  -1:失敗",
						    "msg": "恢復成功"
						}
					

推送

接收方需返回以下信息表示接口響應成功

						{status:1}
					

訂單發貨(notifyUrl?method=purchaseDeliver)

推送參數

						{
						  "orderId": "訂單ID",
						  "orderGoodsIds": "發貨商品(格式:[goodsId_goodsSpecId,goodsId_goodsSpecId])",
						  "deliverType": "發貨方式(deliverType==1需要物流,deliverType=0無需物流)",
						  "expressName": "快遞公司名",
						  "expressNo": "快遞編號"
						}
					

訂單商品缺貨(notifyUrl?method=purchaseStockOut)

推送參數

						{
						  "orderId": "訂單ID",
						  "orderGoodsIds": "缺貨商品(格式:[goodsId_goodsSpecId,goodsId_goodsSpecId])"
						}
					

修改商品

推送參數

						{
						  "method": "editGoods",
						  "goodsId": "商品id"
						}
					

修改商品后會通知第三方,請通過adminapi/goods/getById獲取最新的商品數據進行同步更新

上下架商品(修改商品操作也會觸發該事件)

推送參數

						{
						  "method": "changeSale",
						  "ids": "商品id組成的數組,例如[1,2,4]",
						  "isSale":"1:上架 0:下架"
						}
					

刪除商品

推送參數

						{
						  "method": "delGoods",
						  "ids": "商品id組成的數組,例如[1,2,4]"
						}
					

商品出入庫

推送參數

						{
						  "method": "editStock",
						  "goodsId": "商品id"
						}
					

修改商品庫存后會通知第三方,請通過adminapi/goods/getById獲取最新的商品數據進行同步更新

添加微信立即咨詢

咨詢熱線:15918671994

—— 專業電商系統及解決方案提供服務商 ——

多用戶
商城系統

訂單
管理系統

訂貨
管理系統

多語言
商城系統

掃描二維碼

添加客服咨詢詳情

  • <bdo id="tleia"><strong id="tleia"></strong></bdo>
      <rp id="tleia"><optgroup id="tleia"><legend id="tleia"></legend></optgroup></rp>
    1. <rp id="tleia"></rp>
    2. 主站蜘蛛池模板: 烟台市| 昆山市| 南华县| 大田县| 深水埗区| 隆林| 芦山县| 同仁县| 广安市| 蕲春县| 贡嘎县| 普兰县| 邵阳县| 桑植县| 康马县| 温宿县| 凤庆县| 上杭县| 沽源县| 东阿县| 黄平县| 扬州市| 东兰县| 海宁市| 柞水县| 米泉市| 襄垣县| 东乡| 开化县| 田林县| 凤凰县| 鸡东县| 阿克苏市| 太湖县| 泸溪县| 兴安盟| 独山县| 班玛县| 柳河县| 夏邑县| 汉中市|