# Small Shop & Standard Trading Component Merchandise Interface
Interface Name | Introductions |
---|---|
Get the list of affiliate product categories and category ID | Support developers through the interface to get the first class list of alliance goods and category ID |
Check out full quantity of items | Supports developers to obtain information about the full amount of affiliate products (up to 50 items at a time) and to filter according to item keywords (name, store, spuID), item price, item commission, commission ratio, and whether affiliate coupons exist |
Check out the league's selection of products | Supports developers to obtain information on selected affiliate items (up to 50 items at a time), and supports screening based on item prices, item commissions, commission ratios, and whether affiliate coupons exist |
Get merchandise promotional materials | Through the interface to obtain the promotion of goods material, including store appID, product details page Path, promotion copy and promotion of short chain, product pictures, etc. |
# 1. Get Affiliate Shop & Standard Trading Component Item Category List and Category ID
# Interface Dxplaination
Through the interface to obtain a list of the first class of the alliance goods and category ID, can be used to screen the alliance goods
# Request address
GET https://api.weixin.qq.com/union/promoter/product/category?access_token=ACCESS_TOKEN
# Request parameters
attribute | type | Default values | Required to fill in | Introductions |
---|---|---|---|---|
access_Token | string | yes | [Interface call credentials](https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken .html) |
# Return value
# Object
Back. JSON Data packet
attribute | type | Introductions |
---|---|---|
Error code | number | Error code |
errmsg | string | Error message |
productCats | Array.< Object> | Category Data |
productCats The structure is
attribute | type | Introductions |
---|---|---|
catId | string | Category ID |
Name | string | Category Name |
# Return an example
{
"errcode": 0,
"productCats": [
{
"catId": "1234",
"name": "Home textiles"
},
{
"catId": "1235",
"name": "Furniture"
},
{
"catId": "1236",
"name": "Mother and baby"
},
]
}
# 2. Check out the Alliance's Small Shop & Standard Trading Components
# Interface Dxplaination
Supports developers to obtain lists and details of items available for promotion based on a variety of criteria, including item keyword (name, store, spuID), item cumulative sales volume, item price, item commission, commission ratio, whether affiliate coupons are included, delivery method, shipping area, etc.
# Request address
GET https://api.weixin.qq.com/union/promoter/product/list?access_token=ACCESS_TOKEN
# Request parameters
attribute | type | Default values | Required to fill in | Introductions |
---|---|---|---|---|
access_Token | string | yes | [Interface call credentials]((https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken .html)) | |
from | string | yes | Shift, starting from 0 | |
limit | string | yes | Number of pages per page | |
query | string | no | Search keywords, specific meanings andqueryType Relevant | |
queryType | number | 0 | no | Search Type |
maxPrice | number | no | Maximum price of commodities, unit segment | |
minPrice | number | 0 | no | Minimum price of commodities, unit |
minCommissionValue | number | 0 | no | Minimum commission amount, unit divided |
minCommissionRatio | number | 0 | no | Minimum commission ratio, 1 thousandth of a unit |
sortType | number | 0 | no | |
categoryId | number | no | A single category ID, with values from theGet category list interface | |
shopAppIds | Array.< string> | no | A Mini StoreAppID list | |
hasCoupon | number | 0 | no | Is there a Union voucher? 1 is a couponed item and 0 is a total item? |
category | string | no | Multiple category IDs, separated by English commas. If it exists at the same time as the categoryid, take the categoryid | |
noCategory | string | no | Blacklist category ID, do not pull out the blacklist category goods, multiple separated by English commas | |
productId | string | no | Product SPUID, multiple separated by English commas | |
shippingMethods | string | no | Distribution, JSON object character string, the specific structure inshippingMethods The structure is | |
addressList | string | no | Shipping address list, JSON array character string, single structure seeaddress |
queryType An enumeration
value | type | Introductions |
---|---|---|
0 | number | Search for Product Name |
1 | number | Search for the name of the Mini Store |
2 | number | Search Product SPU ID |
sortType An enumeration
value | type | Introductions |
---|---|---|
0 | number | Default ordering |
1 | number | The order of increase in product prices |
2 | number | Order of decline in product prices |
3 | number | Increase in commission ratio |
4 | number | Descending order of commission ratio |
5 | number | Increase in the value of commissions |
6 | number | The values of commissions are reduced in order |
7 | number | Increase in sales value |
8 | number | Sales value descending order |
shippingMethods The structure is
attribute | type | Introductions |
---|---|---|
express | number | Is Express supported, 1: Yes, 0: No |
sameCity | number | Is Same City Delivery supported, 1: Yes, 0: No |
pickup | number | Do you support home pick-up? 1: Yes, 0: No |
address The structure is
attribute | type | Introductions |
---|---|---|
addressInfo | Object | Address Information |
addressType | Object | Address type, structure same shippingMethods |
addressInfo The structure is
attribute | type | Introductions |
---|---|---|
province | string | National standards shipping addresses First level addresses |
cityName | string | National Standard Shipping Address Level 2 Address |
countyName | string | National Standard Shipping Address Level 3 Address |
# Return value
attribute | type | Introductions |
---|---|---|
Error code | number | Error code |
errmsg | string | Error message |
total | number | Total number of goods |
productList | Array.< Object> | Product List Data |
productList The structure is
attribute | type | Introductions |
---|---|---|
productId | string | Product SPU ID |
product | Object | Product Data |
LeagueExInfo | Object | Affiliate commission-related data |
shopInfo | Object | Product Owned Small Shop Data |
couponInfo | Object | Alliance coupon data |
product The structure is
attribute | type | Introductions |
---|---|---|
productId | string | Product SPU ID |
Info | Object | Product Specific Information |
info.title | string | Item Title |
info.subTitle | string | Sub-Title of product |
info.headImg | Array.< string> | Main picture of commodities |
info.category | Array.< string> | Categories of goods |
info.category[].catId | Object | Category ID |
info.category[].name | Object | Category Name |
info.brand | string | Brand Name |
info.brandId | string | Brand ID |
info.model | string | model |
info.detail | Object | Item Detailed Data |
info.detail.detailImg | Array.< string> | Item Details Photo |
info.param | Array.< Object> | Commodity parameters |
info.minPrice | number | Minimum price of commodities, unit |
info.totalStockNum | number | Total inventory |
info.totalSoldNum | number | Cumulative sales |
info.totalOrderNum | number | cumulative order volume |
skus | Array.< Object> | Product SKU |
skus[].skuId | string | Product SKU ID |
skus[].productSkuInfo.thumbImg | string | Product SKU A small picture |
skus[]. productSkuInfo.salePrice | Object | Product SKU Sales price, unit segment |
skus[].productSkuInfo.marketPrice | Object | Product SKU Market prices, unit divisions |
skus[].productSkuInfo.stockInfo.stockNum | number | Product SKU stock |
LeagueExInfo The structure is
attribute | type | Introductions |
---|---|---|
hasCommission | number | Is there a commission? 1/0 |
commissionRatio | number | Commission ratio, one thousandth of a million |
commissionValue | number | Amount of commission, unit |
shopInfo The structure is
attribute | type | Introductions |
---|---|---|
Name | string | Name of small shop |
appId | string | A Mini StoreAppID |
username | string | Small Shop Original ID |
headImgUrl | string | Icons of small shops |
shippingMethods | Object | The mode of distribution, structure seeshippingMethods The structure is |
addressList | Array.< address> | Place of shipment, only when the delivery method includesSame-town distribution, home deliveryThat's why this item came into being. |
sameCityTemplate | Object | Scope of delivery only when the mode of delivery includesSame-day delivery That's why this item came into being. |
freightTemplate | Object | Shipping tariff template, only when the delivery method is includedexpress deliveryThat's why this happened. |
couponInfo The structure is
attribute | type | Introductions |
---|---|---|
hasCoupon | number | Is there a Union voucher? 1 is a couponed item and 0 is a total item? |
couponId | string | Ticket ID |
couponDetail | Object | Ticket Details |
couponDetail The structure is
attribute | type | Introductions |
---|---|---|
restNum | number | Inventory of coupons |
type | number | Types of tickets |
discountInfo | Object | The note size |
validInfo | Object | period of validity |
receiveInfo | Object | Availability of tickets |
discountInfo The structure is
attribute | type | Introductions |
---|---|---|
discountCondition.productIds[] | string | Designated products id |
discountCondition.productCnt | number | Number of goods |
discountCondition.productPrice | number | Amount of goods |
discountNum | number | Number of discounts, such as 5.1 fold for 5.1 * 1000 |
discountFee | number | The amount directly reduced is in units |
validInfo The structure is
attribute | type | Introductions |
---|---|---|
validType | number | Type of Validity, 1 Specify a time period for the product, 2 For days of effect |
validDayNum | number | Number of days in effect |
startTime | string | Valid start time |
EndTime | string | Valid end time |
receiveInfo The structure is
attribute | type | Introductions |
---|---|---|
startTime | string | Get a Start Time Stamp |
EndTime | string | Get the end time stamp |
limitNumOnePerson | number | Limit on number of cards per person |
sameCityTemplate The structure is
attribute | type | Introductions |
---|---|---|
deliverScopeType | number | How distribution ranges are defined, 0: by distance, 1: by region |
scope | string | Scope of Delivery |
region | Object | The distribution scope and structure of the whole city distribution is the sameaddressInfo |
freightTemplate The structure is
attribute | type | Introductions |
---|---|---|
notSendArea | Object | Areas not shipped |
notSendArea The structure is
attribute | type | Introductions |
---|---|---|
addressInfoList | Array.< addressInfo> | List of addresses in non-Shipping Areas |
# Return an example
{
"errcode": 0,
"errmsg": "",
"productList": [
{
"productId": "7554942",
"product": {
"productId": "7554942",
"status": 5,
"info": {
"title": " Add Items and Save Case_UpProduct",
"subTitle": "This is the sub-title of the product,"
"headImg": [
"https://wxamusic.wx.qq.com/wxasr/Getminipic /zncFu89-HApz37MU8ZbwXB-7W09r7a2spQoE8wPrMFG4kgySC04JEIgbjTy8izde?media-id=zncFu89-HApz37MU8ZbwXB-7W09r7a2spQoE8wPrMFG4kgySC04JEIgbjTy8izde&appid=wx678687fa5226e237
],
"category": [
{
"catId": "1247",
"name": "furniture,"
"fCatId": "0",
"updateTime": "0",
"catType": 1,
"bizuin": "3845180796",
"brandCat": "9223372036854775807",
"catInfo": {
"isRequired": 0,
"isCustomize": 0,
"catLevel": 1
},
"auditId": "0",
"desc": "",
"priority": 0
},
{
"catId": "1267",
"name": "Children's furniture,"
"fCatId": "1247",
"catType": 1,
"version": 0,
"bizuin": "0",
"catInfo": {
"isRequired": 0,
"isCustomize": 0,
"catLevel": 2
},
"auditId": "0",
"desc": "",
"priority": 0
},
{
"catId": "1270",
"name": "Children's beds,"
"fCatId": "1267",
"createTime": "0",
"updateTime": "0",
"catType": 1,
"version": 0,
"bizuin": "0",
"brandCat": "9223372036854775807",
"catInfo": {
"isRequired": 0,
"isCustomize": 0,
"specType": 0,
"specTypeDesc": "",
"attrTemplateId": "0",
"attrTemplateName": "",
"maxAttrNum": 18,
"editByUser": 0,
"catLevel": 3,
"highestPriceFixing": 0,
"wording": "",
"description": "",
"maxProductNum": 0,
"qualification": "",
"productQualification": "",
"quaNeedAudit": "",
"maxQualificationImg": 0,
"catGroup": 0,
"individualAuditInfo": {
"qualification": "",
"productQualification": "",
"quaNeedAudit": "",
"maxQualificationImg": 0
},
"enterpriseAuditInfo": {
"qualification": "",
"productQualification": "",
"quaNeedAudit": "",
"maxQualificationImg": 0
}
},
"auditId": "0",
"desc": "",
"priority": 0
}
],
"brand": "",
"brandId": "2100000000",
"model": "",
"detail": {
"detailImg": [
"https://wxamusic.wx.qq.com/wxasr/Getminipic /zncFu89-HApz37MU8ZbwXB-7W09r7a2spQoE8wPrMFG4kgySC04JEIgbjTy8izde?media-id=zncFu89-HApz37MU8ZbwXB-7W09r7a2spQoE8wPrMFG4kgySC04JEIgbjTy8izde&appid=wx678687fa5226e237
],
"detailVideos": [],
"detailVideoInfo": []
},
"param": [],
"minPrice": 2000,
"expressInfo": {
"templateId": "37927"
},
"totalStockNum": 0
},
"skus": []
},
"leagueExInfo": {
"hasCommission": 1,
"commissionRatio": 8000,
"commissionValue": 1600
},
"shopInfo": {
"name": "little shop for pork belly,"
"guaranteeFlag": 0,
"headImgUrl": "http://wx.qlogo.cn /mmhead/Q3auHgzwzM77ia7ibuPAQBJgME8gFF9APicaSpd7evrLCVb5hn2zsUBOw
}
},
{
"productId": "6565746",
"product": {
"productId": "6565746",
"status": 5,
"info": {
"title": "Testing wigs,"
"subTitle": "Testing wigs,"
"headImg": [
"https://snsdy.tc.qq.com/161/20304/snscosdownload/SZ/reserved/5fd316dc0000ef4b0000000043785609000000a000004f50"
],
"category": [
{
"catId": "1001",
"name": ""
},
{
"catId": "1030",
"name": ""
},
{
"catId": "1031",
"name": ""
}
],
"brandId": "2100000000",
"detail": {
"detailImg": [],
"detailVideos": [],
"detailVideoInfo": [],
"desc": "Test Goods"
},
"param": [],
"minPrice": 100,
"expressInfo": {
"templateId": "1024691"
},
"totalStockNum": 39995
},
"skus": [
{
"skuId": "11913889",
"status": 5,
"productSkuInfo": {
"saleParam": [
{
"categories": [
{
"catId": "35245",
"name": "Choose a product,"
"fCatId": "1031",
"catType": 3,
"bizuin": "3853210889",
"brandCat": "0",
"catInfo": {
"isCustomize": 1,
"editByUser": 0
},
"desc": "",
"priority": 0
},
{
"catId": "1000000000000",
"name": "111",
"fCatId": "35245",
"bizuin": "3853210889",
"catInfo": {
"editByUser": 1
},
"desc": "",
"priority": 1
}
]
},
{
"categories": [
{
"catId": "35246",
"name": "Choose the color,"
"fCatId": "1031",
"catType": 3,
"bizuin": "3853210889",
"brandCat": "0",
"catInfo": {
"isCustomize": 1,
"editByUser": 0
},
"desc": "",
"priority": 0
},
{
"catId": "1000000000001",
"name": "3333",
"fCatId": "35246",
"bizuin": "3853210889",
"catInfo": {
"editByUser": 1
},
"desc": "",
"priority": 1
}
]
}
],
"thumbImg": "",
"skuCode": "",
"salePrice": 100,
"marketPrice": 100,
"stockInfo": {
"stockNum": 20000
},
"appidForMedia": ""
}
},
{
"skuId": "11915862",
"status": 5,
"productSkuInfo": {
"saleParam": [
{
"categories": [
{
"catId": "35245",
"name": "Choose a product,"
"fCatId": "1031",
"catType": 3,
"bizuin": "3853210889",
"brandCat": "0",
"catInfo": {
"isCustomize": 1,
"editByUser": 0
},
"desc": "",
"priority": 0
},
{
"catId": "1000000000002",
"name": "1112",
"fCatId": "35245",
"bizuin": "3853210889",
"catInfo": {
"editByUser": 1
},
"desc": "",
"priority": 2
}
]
},
{
"categories": [
{
"catId": "35246",
"name": "Choose the color,"
"fCatId": "1031",
"catType": 3,
"bizuin": "3853210889",
"brandCat": "0",
"catInfo": {
"isCustomize": 1,
"editByUser": 0
},
"desc": "",
"priority": 0
},
{
"catId": "1000000000001",
"name": "3333",
"fCatId": "35246",
"bizuin": "3853210889",
"catInfo": {
"editByUser": 1
},
"desc": "",
"priority": 1
}
]
}
],
"thumbImg": "",
"skuCode": "",
"salePrice": 100,
"marketPrice": 100,
"stockInfo": {
"stockNum": 20000
},
"appidForMedia": ""
}
}
]
},
"leagueExInfo": {
"hasCommission": 1,
"commissionRatio": 3300,
"commissionValue": 33
},
"shopInfo": {
"name": "Yu Yuan is a cute little girl,"
"guaranteeFlag": 0,
"headImgUrl": "http://wx.qlogo.cn /mmhead/574 VdhMFwaETvsGUwOpJsHAWaM3UDznibq3MMMiaOPSt7Ir1ecTLOfJQ/0"
}
}
],
"total": 100
}
# 3. Check out the Alliance's Choice Small Shop & Standard Trading Components merchandise
# Interface Dxplaination
Supports developers to obtain lists and details of affiliate-selected items based on a variety of criteria, including item price, item commission, cumulative sales of items, commission ratio, whether affiliate coupons are included, delivery methods, shipping areas
# Request address
GET https://api.weixin.qq.com/union/promoter/product/select?access_token=ACCESS_TOKEN
# Request parameters
attribute | type | Default values | Required to fill in | Introductions |
---|---|---|---|---|
access_Token | string | yes | [Interface call credentials]((https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken .html)) | |
from | string | yes | Shift, starting from 0 | |
limit | string | yes | Number of pages per page | |
maxPrice | number | no | Maximum price of commodities, unit segment | |
minPrice | number | 0 | no | Minimum price of commodities, unit |
minCommissionValue | number | 0 | no | Minimum commission amount, unit divided |
minCommissionRatio | number | 0 | no | Minimum commission ratio, 1 thousandth of a unit |
sortType | number | 0 | no | |
categoryId | number | no | A single category ID, with values from theGet category list interface | |
shopAppIds | Array.< string> | no | A Mini StoreAppID list | |
hasCoupon | number | 0 | no | Is there a Union voucher? 1 is a couponed item and 0 is a total item? |
category | string | no | Multiple category IDs, separated by English commas. If it exists at the same time as the categoryid, take the categoryid | |
noCategory | string | no | Blacklist category ID, do not pull out the blacklist category goods, multiple separated by English commas | |
productId | string | no | Product SPUID, multiple separated by English commas | |
shippingMethods | string | no | Distribution, JSON object character string, the specific structure inshippingMethods The structure is | |
addressList | string | no | Shipping address list, JSON array character string, single structure seeaddress |
sortType An enumeration
value | type | Introductions |
---|---|---|
0 | number | Default ordering |
1 | number | The order of increase in product prices |
2 | number | Order of decline in product prices |
3 | number | Increase in commission ratio |
4 | number | Descending order of commission ratio |
5 | number | Increase in the value of commissions |
6 | number | The values of commissions are reduced in order |
7 | number | Increase in sales value |
8 | number | Sales value descending order |
shippingMethods The structure is
attribute | type | Introductions |
---|---|---|
express | number | Is Express supported, 1: Yes, 0: No |
sameCity | number | Is Same City Delivery supported, 1: Yes, 0: No |
pickup | number | Do you support home pick-up? 1: Yes, 0: No |
address The structure is
attribute | type | Introductions |
---|---|---|
addressInfo | Object | Address Information |
addressType | Object | Address type, structure same shippingMethods |
addressInfo The structure is
attribute | type | Introductions |
---|---|---|
province | string | National standards shipping addresses First level addresses |
cityName | string | National Standard Shipping Address Level 2 Address |
countyName | string | National Standard Shipping Address Level 3 Address |
# Return value
attribute | type | Introductions |
---|---|---|
Error code | number | Error code |
errmsg | string | Error message |
total | number | Total number of goods |
productList | Array.< Object> | Product List Data |
productList The structure is
attribute | type | Introductions |
---|---|---|
productId | string | Product SPU ID |
product | Object | Product Data |
LeagueExInfo | Object | Affiliate commission-related data |
shopInfo | Object | Product Owned Small Shop Data |
couponInfo | Object | Alliance coupon data |
product The structure is
attribute | type | Introductions |
---|---|---|
productId | string | Product SPU ID |
Info | Object | Product Specific Information |
info.title | string | Item Title |
info.subTitle | string | Sub-Title of product |
info.headImg | Array.< string> | Main picture of commodities |
info.category | Array.< string> | Categories of goods |
info.category[].catId | Object | Category ID |
info.category[].name | Object | Category Name |
info.brand | string | Brand Name |
info.brandId | string | Brand ID |
info.model | string | model |
info.detail | Object | Item Detailed Data |
info.detail.detailImg | Array.< string> | Item Details Photo |
info.param | Array.< Object> | Commodity parameters |
info.minPrice | number | Minimum price of commodities, unit |
info.totalStockNum | number | Total inventory |
info.totalSoldNum | number | Cumulative sales |
info.totalOrderNum | number | cumulative order volume |
skus | Array.< Object> | Product SKU |
skus[].skuId | string | Product SKU ID |
skus[].productSkuInfo.thumbImg | string | Product SKU A small picture |
skus[]. productSkuInfo.salePrice | Object | Product SKU Sales price, unit segment |
skus[].productSkuInfo.marketPrice | Object | Product SKU Market prices, unit divisions |
skus[].productSkuInfo.stockInfo.stockNum | number | Product SKU stock |
LeagueExInfo The structure is
attribute | type | Introductions |
---|---|---|
hasCommission | number | Is there a commission? 1/0 |
commissionRatio | number | Commission ratio, one thousandth of a million |
commissionValue | number | Amount of commission, unit |
shopInfo The structure is
attribute | type | Introductions |
---|---|---|
Name | number | Name of small shop |
appId | string | A Mini StoreAppID |
username | string | Small Shop Original ID |
headImgUrl | string | Icons of small shops |
shippingMethods | Object | The mode of distribution, structure seeshippingMethods The structure is |
addressList | Array.< address> | Place of shipment, only when the delivery method includesSame-town distribution, home deliveryThat's why this item came into being. |
sameCityTemplate | Object | Scope of delivery only when the mode of delivery includesSame-day delivery That's why this item came into being. |
freightTemplate | Object | Shipping tariff template, only when the delivery method is includedexpress deliveryThat's why this happened. |
couponInfo The structure is
attribute | type | Introductions |
---|---|---|
hasCoupon | number | Is there a Union voucher? 1 is a couponed item and 0 is a total item? |
couponId | string | Ticket ID |
couponDetail | Object | Ticket Details |
couponDetail The structure is
attribute | type | Introductions |
---|---|---|
restNum | number | Inventory of coupons |
type | number | Types of tickets |
discountInfo | Object | The note size |
validInfo | Object | period of validity |
receiveInfo | Object | Availability of tickets |
discountInfo The structure is
attribute | type | Introductions |
---|---|---|
discountCondition.productIds[] | string | Designated products id |
discountCondition.productCnt | number | Number of goods |
discountCondition.productPrice | number | Amount of goods |
discountNum | number | Number of discounts, such as 5.1 fold for 5.1 * 1000 |
discountFee | number | The amount directly reduced is in units |
validInfo The structure is
attribute | type | Introductions |
---|---|---|
validType | number | Type of Validity, 1 Specify a time period for the product, 2 For days of effect |
validDayNum | number | Number of days in effect |
startTime | string | Valid start time |
EndTime | string | Valid end time |
receiveInfo The structure is
attribute | type | Introductions |
---|---|---|
startTime | string | Get a Start Time Stamp |
EndTime | string | Get the end time stamp |
limitNumOnePerson | number | Limit on number of cards per person |
sameCityTemplate The structure is
attribute | type | Introductions |
---|---|---|
deliverScopeType | number | How distribution ranges are defined, 0: by distance, 1: by region |
scope | string | Scope of Delivery |
region | Object | The distribution scope and structure of the whole city distribution is the sameaddressInfo |
freightTemplate The structure is
attribute | type | Introductions |
---|---|---|
notSendArea | Object | Areas not shipped |
notSendArea The structure is
attribute | type | Introductions |
---|---|---|
addressInfoList | Array.< addressInfo> | List of addresses in non-Shipping Areas |
# Return an example
{
"errcode": 0,
"errmsg": "",
"productList": [
{
"productId": "7554942",
"product": {
"productId": "7554942",
"status": 5,
"info": {
"title": " Add Items and Save Case_UpProduct",
"subTitle": "This is the sub-title of the product,"
"headImg": [
"https://wxamusic.wx.qq.com/wxasr/Getminipic /zncFu89-HApz37MU8ZbwXB-7W09r7a2spQoE8wPrMFG4kgySC04JEIgbjTy8izde?media-id=zncFu89-HApz37MU8ZbwXB-7W09r7a2spQoE8wPrMFG4kgySC04JEIgbjTy8izde&appid=wx678687fa5226e237
],
"category": [
{
"catId": "1247",
"name": "furniture,"
"fCatId": "0",
"updateTime": "0",
"catType": 1,
"bizuin": "3845180796",
"brandCat": "9223372036854775807",
"catInfo": {
"isRequired": 0,
"isCustomize": 0,
"catLevel": 1
},
"auditId": "0",
"desc": "",
"priority": 0
},
{
"catId": "1267",
"name": "Children's furniture,"
"fCatId": "1247",
"catType": 1,
"version": 0,
"bizuin": "0",
"catInfo": {
"isRequired": 0,
"isCustomize": 0,
"catLevel": 2
},
"auditId": "0",
"desc": "",
"priority": 0
},
{
"catId": "1270",
"name": "Children's beds,"
"fCatId": "1267",
"createTime": "0",
"updateTime": "0",
"catType": 1,
"version": 0,
"bizuin": "0",
"brandCat": "9223372036854775807",
"catInfo": {
"isRequired": 0,
"isCustomize": 0,
"specType": 0,
"specTypeDesc": "",
"attrTemplateId": "0",
"attrTemplateName": "",
"maxAttrNum": 18,
"editByUser": 0,
"catLevel": 3,
"highestPriceFixing": 0,
"wording": "",
"description": "",
"maxProductNum": 0,
"qualification": "",
"productQualification": "",
"quaNeedAudit": "",
"maxQualificationImg": 0,
"catGroup": 0,
"individualAuditInfo": {
"qualification": "",
"productQualification": "",
"quaNeedAudit": "",
"maxQualificationImg": 0
},
"enterpriseAuditInfo": {
"qualification": "",
"productQualification": "",
"quaNeedAudit": "",
"maxQualificationImg": 0
}
},
"auditId": "0",
"desc": "",
"priority": 0
}
],
"brand": "",
"brandId": "2100000000",
"model": "",
"detail": {
"detailImg": [
"https://wxamusic.wx.qq.com/wxasr/Getminipic /zncFu89-HApz37MU8ZbwXB-7W09r7a2spQoE8wPrMFG4kgySC04JEIgbjTy8izde?media-id=zncFu89-HApz37MU8ZbwXB-7W09r7a2spQoE8wPrMFG4kgySC04JEIgbjTy8izde&appid=wx678687fa5226e237
],
"detailVideos": [],
"detailVideoInfo": []
},
"param": [],
"minPrice": 2000,
"expressInfo": {
"templateId": "37927"
},
"totalStockNum": 0
},
"skus": []
},
"leagueExInfo": {
"hasCommission": 1,
"commissionRatio": 8000,
"commissionValue": 1600
},
"shopInfo": {
"name": "little shop for pork belly,"
"guaranteeFlag": 0,
"headImgUrl": "http://wx.qlogo.cn /mmhead/Q3auHgzwzM77ia7ibuPAQBJgME8gFF9APicaSpd7evrLCVb5hn2zsUBOw
}
},
{
"productId": "6565746",
"product": {
"productId": "6565746",
"status": 5,
"info": {
"title": "Testing wigs,"
"subTitle": "Testing wigs,"
"headImg": [
"https://snsdy.tc.qq.com/161/20304/snscosdownload/SZ/reserved/5fd316dc0000ef4b0000000043785609000000a000004f50"
],
"category": [
{
"catId": "1001",
"name": ""
},
{
"catId": "1030",
"name": ""
},
{
"catId": "1031",
"name": ""
}
],
"brandId": "2100000000",
"detail": {
"detailImg": [],
"detailVideos": [],
"detailVideoInfo": [],
"desc": "Test Goods"
},
"param": [],
"minPrice": 100,
"expressInfo": {
"templateId": "1024691"
},
"totalStockNum": 39995
},
"skus": [
{
"skuId": "11913889",
"status": 5,
"productSkuInfo": {
"saleParam": [
{
"categories": [
{
"catId": "35245",
"name": "Choose a product,"
"fCatId": "1031",
"catType": 3,
"bizuin": "3853210889",
"brandCat": "0",
"catInfo": {
"isCustomize": 1,
"editByUser": 0
},
"desc": "",
"priority": 0
},
{
"catId": "1000000000000",
"name": "111",
"fCatId": "35245",
"bizuin": "3853210889",
"catInfo": {
"editByUser": 1
},
"desc": "",
"priority": 1
}
]
},
{
"categories": [
{
"catId": "35246",
"name": "Choose the color,"
"fCatId": "1031",
"catType": 3,
"bizuin": "3853210889",
"brandCat": "0",
"catInfo": {
"isCustomize": 1,
"editByUser": 0
},
"desc": "",
"priority": 0
},
{
"catId": "1000000000001",
"name": "3333",
"fCatId": "35246",
"bizuin": "3853210889",
"catInfo": {
"editByUser": 1
},
"desc": "",
"priority": 1
}
]
}
],
"thumbImg": "",
"skuCode": "",
"salePrice": 100,
"marketPrice": 100,
"stockInfo": {
"stockNum": 20000
},
"appidForMedia": ""
}
},
{
"skuId": "11915862",
"status": 5,
"productSkuInfo": {
"saleParam": [
{
"categories": [
{
"catId": "35245",
"name": "Choose a product,"
"fCatId": "1031",
"catType": 3,
"bizuin": "3853210889",
"brandCat": "0",
"catInfo": {
"isCustomize": 1,
"editByUser": 0
},
"desc": "",
"priority": 0
},
{
"catId": "1000000000002",
"name": "1112",
"fCatId": "35245",
"bizuin": "3853210889",
"catInfo": {
"editByUser": 1
},
"desc": "",
"priority": 2
}
]
},
{
"categories": [
{
"catId": "35246",
"name": "Choose the color,"
"fCatId": "1031",
"catType": 3,
"bizuin": "3853210889",
"brandCat": "0",
"catInfo": {
"isCustomize": 1,
"editByUser": 0
},
"desc": "",
"priority": 0
},
{
"catId": "1000000000001",
"name": "3333",
"fCatId": "35246",
"bizuin": "3853210889",
"catInfo": {
"editByUser": 1
},
"desc": "",
"priority": 1
}
]
}
],
"thumbImg": "",
"skuCode": "",
"salePrice": 100,
"marketPrice": 100,
"stockInfo": {
"stockNum": 20000
},
"appidForMedia": ""
}
}
]
},
"leagueExInfo": {
"hasCommission": 1,
"commissionRatio": 3300,
"commissionValue": 33
},
"shopInfo": {
"name": "Yu Yuan is a cute little girl,"
"guaranteeFlag": 0,
"headImgUrl": "http://wx.qlogo.cn /mmhead/574 VdhMFwaETvsGUwOpJsHAWaM3UDznibq3MMMiaOPSt7Ir1ecTLOfJQ/0"
}
}
],
"total": 100
}
# 4. Get small shops & standard trading components merchandise promotional materials
# Interface Dxplaination
Through the interface to obtain the promotion of goods material, including store appID, product details page Path, promotion copy and promotion of short chain, product pictures, etc.
# Request address
POST https://api.weixin.qq.com/union/promoter/product/Generate access _token=ACCESS_TOKEN
# Request parameters
attribute | type | Default values | Required to fill in | Introductions |
---|---|---|---|---|
access_Token | string | yes | [Interface call credentials]((https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken .html)) | |
pid | string | yes | Generalized bit PID | |
productList | Array.< Object> | yes | List of Products | |
productList[].productId | string | yes | Product SPU ID | |
productList[].appId | string | yes | AppID of the Mini Store where the item is located | |
productList[].customizeInfo | string | no | Custom parameters, up to 80 characters |
# POST Example
{
"pid": "oUnIc49zinb1mtlfB5K-NfGJxxNE_341161518",
"productList": [
{
"productId": "14495788",
"appId": "wxb82530c28"
}
]
}
# Return value
# Object
Back. JSON Data packet
attribute | type | Introductions |
---|---|---|
Error code | number | Error code |
errmsg | string | Error message |
list | Array.< Object> | |
list[].productId | string | Product SPU ID |
list[].pid | string | Generalized bit PID |
list[].productInfo | Object | Information about commodities |
list[].shareInfo | Object | Promote relevant information |
productInfo The structure is
attribute | type | Introductions |
---|---|---|
productId | string | Product SPU ID |
title | string | Item Title |
subTitle | string | Sub-Title of product |
headImg | Array.< string> | Main picture of commodities |
minPrice | number | Minimum price of commodities, unit |
discount | number | Amount of product concessions, unit |
discountPrice | number | Minimum price after product bonds, unit division |
shopName | string | Store Name |
pluginResult | number | Whether to cite Mini Store components (items that do not cite components are not promoted), 0: No, 1: Yes |
totalStockNum | number | Inventory of goods |
ShareInfo The structure is
attribute | type | Introductions |
---|---|---|
appId | string | Mini Program to promote goods AppID |
path | string | Mini Program to promote goods Path |
couponPath | string | Promotion of goods with coupons Mini Program Path |
wxaCode | string | It has been abandoned. Promotional product details page without couponed sunflower code picture |
couponWxaCode | string | It has been abandoned. Photo with couponed sunflower numbers on the promotional product details page |
promotionUrl | string | Promote short chains of goods |
couponPromotionUrl | string | Promote short chains of commodities with coupons |
promotionWording | string | Promotion of Goods Essays |
couponPromotionWording | string | Promotion of product coupon essays |
Code | number | Getting Material Status Code, 0 indicates normal getting material |
# Return an example
{
"errcode": 0,
"errmsg": "ok",
"list": [
{
"pid": "oUkIc71zinc2mtlfC7K-NfGJxxNE_328751529",
"productInfo": {
"productId": "14495674",
"title": "Laundry detergent,"
"subTitle": "",
"headImg": [
"https://store.mp.video.tencent-cloud.com/161/20304/snscosdownload/SZ/reserved/601151160005275c000000003e9f9d09000000a000004f50"
],
"minPrice": 12300,
"shopName": "Little Pork Belly Shop"
},
"shareInfo": {
"appId": "wxb825f130c284597f",
"path": "plugin-private://wx34345ae5855f892d/pages/productDetail/productDetail?productId=14495788&ticket=dasdfa2V0NzIx123MTI4MDAxODadfdI4NDE3NabcMA",
"wxaCode": "data:image/jpegbase64,iVBORw0KGgoAAAANSUhEUgAAAa4A",
"promotionWording": " PraiseSave the Money Quickly at Good PriceAffordable pricesnYellow rice winenN open rob: 123 yuan, 2311 yuan discount than the market price " ,
"promotionUrl": "https://mmbizurl.cn/s/017btcGpB "
}
}
]
}
# Error code
value | Introductions |
---|---|
201000 | Abnormal quantity acquisition of promotional materials |
201001 | Volume acquisition of promotional materials exceeds ceiling |