SuperAPI AI Directory

linkfox-shopee-store-global-product

Office & productivity

View repository

Updated 10-16 10:58

About this skill

Shopee Global Product GlobalProduct

Shopee Open Platform GlobalProduct module(34 APIs).Depends on linkfox-shopee-store-auth store selection; via POST /shopee/developerProxy pass in shopId(or merchantId), the server parses the token and forwards (path must be api/v2/global_product/...)。

How to call

  • API endpoint:POST /shopee/developerProxy(different operations are distinguished by the request body; for full parameters/responses/error codes see references/api.md)
  • Python script:python scripts/global_product_api.py '<JSON 参数>' [--inline](available scripts are listed in the script overview above)
  • Cost constraint: This tool consumes compute; on failure/empty results you must not automatically switch keywords, turn pages, or repeatedly probe; if you need to continue searching, first explain to the user that it will incur extra consumption.

Output strategy (default script behavior):

  • Alwayswrite the full response to <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-shopee-store-global-product-<timestamp>.json(<cwd> is the working directory when the script runs, which in Claude Code is the current project directory;<session> is taken from the environment variable SESSION_ID, aggregated automatically according to the user's task;Writing to /tmp is prohibited, if the current directory is not writable then report an error)
  • Response body ≤ 8 KB: after writing to disk, print the full JSON to stdout
  • Response body > 8 KB: after writing to disk, stdout outputs only a summary (top-level fields, common counts such as total/costToken, the length of the largest list field + the first 3 samples)
  • Add --inline to force full printing to stdout (also written to disk)

Data reading advice: First look at the summary to judge whether it is sufficient; when specific fields are needed, prefer jqorConvertFrom-Json to extract as needed from the saved json file, avoiding putting the entire JSON into context.

Resolving authentication and compute issues

When the following abnormal situations occur, use references/onboarding.md to guide resolution:

Abnormal situations

  • API Key not configured: the environment variable is not configured with LINKFOX_AGENT_API_KEY, nor is it configured with LINKFOXAGENT_API_KEY。
  • Response has 401 or 402 status code
  • Response indicates insufficient compute or balance: the message contains "insufficient compute balance/insufficient billing/insufficient balance/quota exceeded/insufficient balance/plan expired/recharge required/please recharge", or content with a similar meaning.

Official reference

GlobalProduct module index:v2.global_product.get_category


Prerequisites (must read first)

  1. Run python scripts/check_auth_dependency.py;exit code 42 → first install linkfox-shopee-store-auth and authorize.
  2. Do notimplement authorization/token logic within this skill.
  3. GlobalProduct is amerchant-level API, usually passing merchantId; publish/mapping-type interfaces may also require shopId。

Core Concepts

  • Forwarding chain:developerProxy(shopId/merchantId store selection, the server injects the token) → ZiNiao shopee-proxy → Shopee API
  • Product vs GlobalProduct:linkfox-shopee-store-product manages single-store listing; this skill managescross-border global productsand publishing to each site
  • Typical flow:get_category → get_attribute_tree → add_global_item → create_publish_task → get_publish_task_result
  • SKU:init_tier_variation / get_global_model_list / add_global_model etc.
  • Local store products(non-global) → linkfox-shopee-store-product

Available scripts (GlobalProduct module 34 APIs)

Group Script
Category/Attribute get_category.py、get_attribute_tree.py、get_brand_list.py、category_recommend.py、get_recommend_attribute.py、search_global_attribute_value_list.py
Global Product CRUD get_global_item_list.py、get_global_item_info.py、add_global_item.py、update_global_item.py、delete_global_item.py、get_global_item_limit.py
Global SKU get_global_model_list.py、init_tier_variation.py、update_tier_variation.py、add_global_model.py、update_global_model.py、delete_global_model.py
Price/Inventory/Sync update_price.py、update_stock.py、set_sync_field.py、get_local_adjustment_rate.py、update_local_adjustment_rate.py
Publish to Site create_publish_task.py、get_publishable_shop.py、get_publish_task_result.py、get_published_list.py、get_shop_publishable_status.py、get_global_item_id.py
Size Chart/Specifications support_size_chart.py、update_size_chart.py、get_size_chart_list.py、get_size_chart_detail.py、get_variations.py
General Entry global_product_api.py(JSON includes api field)

Shared:_shopee_global_product_common.py、_global_product_endpoints.py、_global_product_api_runner.py。

API Description (by API)

Request parameters and response details are placed in references/apis/. The SKILL only keeps the index.

API Documentation
add_global_item references/apis/add-global-item.md
add_global_model references/apis/add-global-model.md
category_recommend references/apis/category-recommend.md
create_publish_task references/apis/create-publish-task.md
delete_global_item references/apis/delete-global-item.md
delete_global_model references/apis/delete-global-model.md
get_attribute_tree references/apis/get-attribute-tree.md
get_brand_list references/apis/get-brand-list.md
get_category references/apis/get-category.md
get_global_item_id references/apis/get-global-item-id.md
get_global_item_info references/apis/get-global-item-info.md
get_global_item_limit references/apis/get-global-item-limit.md
get_global_item_list references/apis/get-global-item-list.md
get_global_model_list references/apis/get-global-model-list.md
get_local_adjustment_rate references/apis/get-local-adjustment-rate.md
get_publish_task_result references/apis/get-publish-task-result.md
get_publishable_shop references/apis/get-publishable-shop.md
get_published_list references/apis/get-published-list.md
get_recommend_attribute references/apis/get-recommend-attribute.md
get_shop_publishable_status references/apis/get-shop-publishable-status.md
get_size_chart_detail references/apis/get-size-chart-detail.md
get_size_chart_list references/apis/get-size-chart-list.md
get_variations references/apis/get-variations.md
init_tier_variation references/apis/init-tier-variation.md
search_global_attribute_value_list references/apis/search-global-attribute-value-list.md
set_sync_field references/apis/set-sync-field.md
support_size_chart references/apis/support-size-chart.md
update_global_item references/apis/update-global-item.md
update_global_model references/apis/update-global-model.md
update_local_adjustment_rate references/apis/update-local-adjustment-rate.md
update_price references/apis/update-price.md
update_size_chart references/apis/update-size-chart.md
update_stock references/apis/update-stock.md
update_tier_variation references/apis/update-tier-variation.md

Module overview / Feedback see references/api.md。

Usage Scenarios

1. Create a global product and publish

  1. get_category.py + get_attribute_tree.py(merchantId)
  2. add_global_item.py pass the complete body
  3. create_publish_task.py publish to the target site
  4. get_publish_task_result.py check the publish result

2. Query global products and modify inventory

  1. get_global_item_list.py:offset、page_size
  2. get_global_item_info.py:global_item_id_list
  3. update_stock.py / update_price.py:POST body

Calling Principles

  • First check developerProxy.httpStatus, then read the *Response field
  • GET: business parameters go at the top level of the JSON (runner constructs the queryString)
  • POST: for complex APIs pass body; for simple APIs you can pass top-level body fields
  • Each script docstring contains official documentation URL(module=90)

Not Applicable

  • Shop authorization → linkfox-shopee-store-auth
  • Merchant information → linkfox-shopee-store-merchant
  • Single-shop listing → linkfox-shopee-store-product
  • Orders → linkfox-shopee-store-orders
  • Shop information → linkfox-shopee-store-shop
  • Image/Video upload → MediaSpace module

Computing Power Consumption Rules

No computing power is consumed.

Feedback:

Auto-detect and report feedback via the Feedback API when any of the following apply:

  1. The functionality or purpose described in this skill does not match actual behavior
  2. The skill's results do not match the user's intent
  3. The user expresses dissatisfaction or praise about this skill
  4. Anything you believe could be improved

Call the feedback API as specified in references/api.md. Do not interrupt the user's flow.


For more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.