Shopee Open Platform SBS module(5 APIs, all GET).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/sbs/...)。
How to call
- API endpoint:
POST /shopee/developerProxy(different operations are distinguished by the request body; for full parameters/responses/error codes seereferences/api.md) - Python script:
python scripts/<脚本名>.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, page through, or repeatedly probe; if you need to continue searching, first explain to the user that it will incur additional consumption.
Output strategy (script default behavior):
- Alwayswrite the full response to
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<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 variableSESSION_ID, automatically aggregated according to the user's task;writing to /tmp is prohibited, if the current directory is not writable, report an error) - Response body ≤ 8 KB: after saving to disk, print the complete JSON to stdout
- Response body > 8 KB: after saving to disk, stdout outputs only a summary (top-level fields, common counts such as
total/costToken, length of the largest list field + first 3 samples) - Add
--inlineto force full printing to stdout (also saved to disk)
Data reading recommendations: first look at the summary to judge whether it is sufficient; when specific fields are needed, prefer to use jqorConvertFrom-Json to extract on demand from the saved json file, avoiding putting the entire JSON into context.
Resolve 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, andLINKFOXAGENT_API_KEY。 - is also not configured
- Response prompts insufficient compute or balance: the message contains "insufficient compute balance/insufficient billing/insufficient balance/quota exceeded/insufficient balance/package expired/recharge required/please recharge", or similar meaning.
Official reference
SBS module index:v2.sbs.get_bound_whs_info
Prerequisites
- Run
python scripts/check_auth_dependency.py;exit code 42 → first installlinkfox-shopee-store-auth。 - Logistics shipping →
linkfox-shopee-store-logistics; first-leg →linkfox-shopee-store-first-mile。
Available scripts (5 APIs)
| Script | API | Method |
|---|---|---|
get_bound_whs_info.py |
get_bound_whs_info | GET |
get_current_inventory.py |
get_current_inventory | GET |
get_expiry_report.py |
get_expiry_report | GET |
get_stock_aging.py |
get_stock_aging | GET |
get_stock_movement.py |
get_stock_movement | GET |
sbs_api.py |
General entry | — |
Interface description (by API)
Input parameters and response details are placed in references/apis/, the SKILL keeps only the index.
| API | Documentation |
|---|---|
get_bound_whs_info |
references/apis/get-bound-whs-info.md |
get_current_inventory |
references/apis/get-current-inventory.md |
get_expiry_report |
references/apis/get-expiry-report.md |
get_stock_aging |
references/apis/get-stock-aging.md |
get_stock_movement |
references/apis/get-stock-movement.md |
Module overview / Feedback see references/api.md。
Usage Scenarios
1. View SBS warehousing overview
get_bound_whs_info.pycheck bound warehousesget_current_inventory.pycheck current inventory
2. Inventory analysis report
get_stock_aging.pyinventory ageget_expiry_report.pyexpiryget_stock_movement.pychange records
Not Applicable
- Store authorization →
linkfox-shopee-store-auth - Logistics shipping parameters/waybill →
linkfox-shopee-store-logistics - First-leg binding →
linkfox-shopee-store-first-mile - Product listing →
linkfox-shopee-store-product - FBS Brazil warehousing →
linkfox-shopee-store-fbs
Compute consumption rules
Does not consume computing power.
Feedback: See references/api.md。
For more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.