Von Creatorn beworbene Produkte
Einführung
Von einem Creator beworbene Produkte anhand der uid abrufen.
Endpunkt
bash
POST /creator/v1/productListAnfrage-Body
| Feld | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
filter | object | Ja | Filterparameter |
orderby | object | Nein | Sortierparameter |
page | integer | Nein | Seitennummer, Standard: 1 |
pagesize | integer | Nein | Einträge pro Seite, Standard: 10 |
filter-Optionen
| Feld | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
uid | string | Ja | Creator-UID |
days | string | Nein | Zeitraum, z. B. [0, 7, 14, 28, 90] |
orderby-Optionen
| Feld | Erforderlich | Beschreibung |
|---|---|---|
units_sold | Nein | Produktverkaufsmenge (absteigend) |
gmv | Nein | Produkt-GMV (absteigend) |
commission_rate_percent | Nein | Provisionssatz (absteigend) |
orderby-Format:{"field": "units_sold", "order": "desc"}. Wird der Wert nicht übergeben, werden die Ergebnisse für eine stabile Paginierung nachproduct_id(absteigend) sortiert.
Anfragebeispiel
bash
curl 'https://openapi.fastmoss.com/creator/v1/productList' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxxxxxxxxx' \
--data '{
"filter": {
"uid": "6893103660525831169",
"days": 7
},
"orderby": {
"field": "units_sold",
"order": "desc"
},
# "orderby": {
# "field": "gmv",
# "order": "desc"
# },
# "orderby": {
# "field": "commission_rate_percent",
# "order": "desc"
# },
"page": 1,
"pagesize": 10
}'Antwort-Body
data.total
Gesamtzahl der Ergebnisse
data.list
| Feld | Typ | Beschreibung |
|---|---|---|
product_id | string | Produkt-ID |
uid | string | Creator-UID |
seller_id | string | Verkäufer-ID |
commission_rate | integer | Provisionssatz |
product_rating | string | Produktbewertung |
shop_title | string | Shopname |
shop_avatar | string | Shop-Avatar-URL |
shop_units_count | integer | Shop-Verkäufe |
shop_gmv | float | Shop-GMV |
title | string | Produkttitel |
cover | string | Produkt-Cover-URL |
category | array[object] | Produktkategorie |
real_price | string | Produktpreis |
region | string | Produktregion |
gmv | float | Produkt-GMV |
units_sold | integer | Produktverkäufe |
l1_category_id | integer | Kategorie-ID Ebene 1 |
l2_category_id | integer | Kategorie-ID Ebene 2 |
l3_category_id | integer | Kategorie-ID Ebene 3 |
Antwortbeispiel
json
{
"code": 0,
"msg": "success",
"data": {
"total": 8,
"list": [
{
"product_id": "1729539239170312086",
"uid": "6893103660525831169",
"seller_id": "7494962456968727446",
"commission_rate": 0,
"product_rating": "0.0",
"shop_title": "Twobakeboys",
"shop_avatar": "https://s.500fd.com/tt_shop/6413a6ce066e4108a30e50d1033dac88~tplv-aphluv4xwc-resize-png:300:300.png",
"shop_units_count": 23867,
"shop_gmv": 607576.80,
"title": "Pineapple tart 230g per bottle",
"cover": "https://s.500fd.com/default/product_default.png",
"category": [
"Food & Beverages"
],
"real_price": "S$15.00",
"region": "SG",//product's region
"gmv": 0,
"units_sold": 0,
"l1_category_id":24,//product's l1 category_id
"l2_category_id":915336,//product's l2 category_id
"l3_category_id":700553//product's l3 category_id
}
]
}
}