SuperAPI AI Directory

linkfox-temu-compliance-global

Coding & development

View repository

Updated 10-16 06:23

About this skill

Temu Global — E-commerce Compliance

This skill (linkfox-temu-compliance-global) covers the OpenAPIs related to Global of the Partner Platform for E-commerce Compliance / Product Compliance .

Connected: 9 interfaces; see the list in partner-global-catalog.md。

Gateway (built into this skill):

Capability Method Path
Compliance OpenAPI (global_compliance_*、temu_global_proxy) POST https://tool-gateway.linkfox.com/temu/proxy
Signed file download POST https://tool-gateway.linkfox.com/temu/fileDownload

Related skills

Scenario skill
E-commerce Compliance(this skill) linkfox-temu-compliance-global
Product list/detail/edit/inventory linkfox-temu-manage-product-global
Price linkfox-temu-price-global
Promotion linkfox-temu-promotion-global
Gateway and Temu token This skill scripts/

How to call

  • API endpoint:POST /temu/proxy(different operations are distinguished by the request body; for full parameters/responses/error codes see references/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 or empty results, do not automatically switch keywords, paginate, or repeatedly probe; if further retrieval is needed, first explain to the user that it will incur additional consumption.

Output strategy (default script 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 executes, 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, and if the current directory is not writable, 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 on demand 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 situation

  • API Key not configured: the environment variable is not configured LINKFOX_AGENT_API_KEY, and LINKFOXAGENT_API_KEY。
  • Response 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/package expired/recharge required/please recharge", or content with a similar meaning.

API documentation

Document Content
api.md Gateway, authentication, error codes
partner-global-catalog.md Interface directory
apis/README.md Per-interface documentation

Default parameters

Field Default Description
site global Partner Global
managementType semi-managed Semi-managed
tokenPurpose product-inventory Product/Compliance Scenarios

Scripts (by type)

Script type Status
global_compliance_edit.py bg.compliance.edit Integrated
global_compliance_metadata_get.py bg.compliance.metadata.get Integrated
global_compliance_goods_compliancelabel_get.py bg.goods.compliancelabel.get Integrated
global_compliance_arbok_cert_query_need_upload_items.py bg.arbok.open.cert.queryNeedUploadItems Integrated
global_compliance_arbok_cert_upload_product_cert.py bg.arbok.open.cert.uploadProductCert Integrated
global_compliance_flash_upload_recognize.py bg.flash.open.upload.recognize Integrated
global_compliance_flash_upload_real_image.py bg.flash.open.upload.real.image Integrated
global_compliance_arbok_upload_upload_file.py bg.arbok.open.upload.uploadFile Integrated
global_compliance_arbok_product_cert_query.py bg.arbok.open.product.cert.query Integrated
temu_global_proxy.py Any type General
temu_global_file_download.py Signed File Download General

Example

python scripts/global_compliance_edit.py '<JSON>'  # bg.compliance.edit
python scripts/global_compliance_metadata_get.py '<JSON>'  # bg.compliance.metadata.get

Feedback: skillName:linkfox-temu-compliance-global

Gateway and Authorization Scripts

Authorization Notes:references/access-token.md

Compute Consumption Rules

No compute is consumed.