来自 TikTok Shop 官方资料快照 ·
- 当前资料结构化阅读页
- 固定快照已留存,可追溯
- 官方原文可核对
资料正文
§1 Plan an integration and generate a runnable demo
Turn a business requirement into an implementation plan first, then ask the agent to generate code only after the API contract and prerequisites are confirmed.
§2 Step 1: create the integration plan
📝 Prompt to copy Design an implementation-ready TikTok Shop integration for [BUSINESS SCENARIO] in [MARKET]. Use the current official API and webhook definitions. Specify the sequence, endpoint versions, scopes, App and Shop prerequisites, data mapping, pagination, webhook handling, retries, idempotency, test plan, success criteria, rollout steps, and known constraints. Separate mandatory steps from optional recommendations and cite the sources used.
§3 Step 2: generate a runnable demo
📝 Prompt to copy Create a runnable [LANGUAGE / FRAMEWORK] demo for the approved integration plan. Confirm the endpoint version, required scopes, prerequisites, and request fields before writing code. Include environment-variable based credentials, request construction, pagination or webhook handling when relevant, error handling, test data, run commands, and objective success checks. List any unsupported or unverified step instead of fabricating it.
§4 Definition of runnable
- The project installs and starts with documented commands.
- Credentials are read from environment variables and are never committed.
- The endpoint, version, scope, and required fields match the checked source.
- The happy path and at least one failure path have observable success criteria.
- Generated code is reviewed and tested by the developer before production use.
§5 Recommended review
| Review | Question |
|---|---|
| Contract | Does the code match the current request and response schema? |
| Business flow | Are prerequisites, ordering, retries, and status transitions complete? |
| Security | Are secrets excluded from code, logs, prompts, and screenshots? |
| Evidence | Can each important implementation choice be traced to an official source? |
§6 Was this page helpful?
Was this page helpful?
Tell us what worked, what was unclear, or what should be added. TTS Open Toolkit Feedback Form
