Skip to content

Door de creator gepromote producten ​

Inleiding ​

Haal producten op die een creator promoot via de uid.

Eindpunt ​

bash
POST /creator/v1/productList

Aanvraagbody ​

VeldTypeVerplichtBeschrijving
filterobjectJaFilterparameters
orderbyobjectNeeSorteerparameters
pageintegerNeePaginanummer, standaard: 1
pagesizeintegerNeeItems per pagina, standaard: 10

filter-opties ​

VeldTypeVerplichtBeschrijving
uidstringJaCreator-UID
daysstringNeeTijdsbereik, bijv. [0, 7, 14, 28, 90]

orderby-opties ​

VeldVerplichtBeschrijving
units_soldNeeProductverkoopvolume (aflopend)
gmvNeeProduct-GMV (aflopend)
commission_rate_percentNeeCommissiepercentage (aflopend)

Formaat van orderby: {"field": "units_sold", "order": "desc"}. Als het niet wordt meegegeven, worden de resultaten op product_id (aflopend) gesorteerd voor stabiele paginering.

Voorbeeld van een aanvraag ​

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
}'

Antwoordbody ​

data.total ​

Totaal aantal resultaten

data.list ​

VeldTypeBeschrijving
product_idstringProduct-ID
uidstringCreator-UID
seller_idstringVerkoper-ID
commission_rateintegerCommissiepercentage
product_ratingstringProductbeoordeling
shop_titlestringShopnaam
shop_avatarstringShopavatar-URL
shop_units_countintegerShopverkoop
shop_gmvfloatShop-GMV
titlestringProducttitel
coverstringProductcover-URL
categoryarray[object]Productcategorie
real_pricestringProductprijs
regionstringProductregio
gmvfloatProduct-GMV
units_soldintegerProductverkoop
l1_category_idintegerCategorie-ID niveau 1
l2_category_idintegerCategorie-ID niveau 2
l3_category_idintegerCategorie-ID niveau 3

Voorbeeld van een antwoord ​

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
      }
     ]
 }
}