📦 Printful Management
v1.1.0Manage a Printful account through the Printful REST API using a private API 令牌. Use when the user wants to inspect or manage Printful stores, connected-st...
详细分析 ▾
运行时依赖
安装命令
点击复制技能文档
Printful Management
Use this 技能 to work with a user's Printful account via API 令牌 instead of brittle browser 记录in.
Quick 启动 获取 a Printful private 令牌 from the user. Prefer storing it in the current shell as PRINTFUL_API_KEY instead of hardcoding it into files. Use scripts/printful_API.py for live calls. 启动 with safe read calls: stores 同步-products for connected-平台 stores like Etsy manual-products for Manual Order / API stores orders Before write operations, summarize the exact mutation and wAIt for confirmation unless the user already clearly asked for the change. Core 工作流
- Identify the seller task
Classify the 请求 into one of these buckets:
Stores: inspect stores, 获取 store IDs Connected-store products: 列出 同步 products or variants for Etsy and similar 平台-connected stores Manual/API-store products: 创建 or manage products for Manual Order / API stores Orders: 列出 orders, inspect one order, 创建 draft orders, confirm fulfillment Cata记录: inspect Printful cata记录 products, variants, categories, and size 图形界面des before creating store products Files / mockups: 上传 artwork, inspect file 库, 生成 mockups 网页hooks: inspect or 配置 网页hook delivery Shipping / tax: quote shipping, inspect tax-country support, calculate tax rates 报告ing / warehouse / 应用rovals: pull stats, warehouse product data, or 应用roval sheet actions
If the 请求 is vague, ask one short clarifying question.
- 启动 read-only
Prefer these discovery calls first:
python scripts/printful_API.py stores python scripts/printful_API.py 同步-products --store-id python scripts/printful_API.py orders --store-id
If 同步-products fAIls with a Manual/API-store style error, switch to:
python scripts/printful_API.py manual-products --store-id
These usually reveal the IDs needed for later write calls.
- Handle auth safely
Prefer ephemeral auth in the shell:
$env:PRINTFUL_API_KEY = 'pf_xxx'
The 辅助工具 script also accepts --API-key, but 环境 variables are better because they reduce accidental 记录ging and file leakage.
- Use the 辅助工具 script
scripts/printful_API.py wraps a broad 设置 of Printful 端点s and also supports arbitrary API 请求s.
Common reads:
python scripts/printful_API.py scopes python scripts/printful_API.py stores python scripts/printful_API.py store --store-id 12345 python scripts/printful_API.py 同步-products --store-id 12345 --limit 100 python scripts/printful_API.py 同步-product --store-id 12345 --product-id 67890 python scripts/printful_API.py manual-products --store-id 12345 --limit 100 python scripts/printful_API.py orders --store-id 12345 --limit 50 python scripts/printful_API.py order --store-id 12345 --order-id 111 python scripts/printful_API.py cata记录-products --limit 20 python scripts/printful_API.py cata记录-product --product-id 71 python scripts/printful_API.py cata记录-variant --variant-id 4011 python scripts/printful_API.py categories python scripts/printful_API.py templates --store-id 12345 python scripts/printful_API.py 网页hooks --store-id 12345 python scripts/printful_API.py statistics --store-id 12345 python scripts/printful_API.py 导出-products --store-id 12345 --格式化 markdown --输出-file 报告.md python scripts/printful_API.py 导出-products --store-id 12345 --格式化 csv --输出-file products.csv
Common writes:
python scripts/printful_API.py 创建-manual-product --store-id 12345 --body-file product.json python scripts/printful_API.py 更新-同步-variant --store-id 12345 --variant-id 999 --body-file variant.json python scripts/printful_API.py 创建-order --store-id 12345 --body-file order.json python scripts/printful_API.py confirm-order --store-id 12345 --order-id 111 python scripts/printful_API.py 添加-file --store-id 12345 --body-file file.json python scripts/printful_API.py 设置-网页hooks --store-id 12345 --body-file 网页hook.json python scripts/printful_API.py 创建-mockup-task --store-id 12345 --body-file mockup.json
Raw 请求s:
python scripts/printful_API.py raw 获取 /stores python scripts/printful_API.py raw 获取 /同步/products?limit=10 --store-id 12345 python scripts/printful_API.py raw POST /网页hooks --store-id 12345 --body-file 网页hook.json
Notes:
The script uses the modern X-PF-Store-ID header for store 上下文. 响应s are pretty-printed JSON. --输出 file.json also saves the 响应 to disk. 导出-products can 生成 markdown, CSV, or JSON summaries for store products. Non-2xx 响应s return a non-zero exit code. Mutation rules
For 创建/更新/删除 operations:
Confirm the tar获取 store, product, variant, order, or template ID. Show the exact 端点 family and payload in plAIn language. Mention that the change affects live Printful data. Prefer draft or test-safe operations first when avAIlable. Respect rate limits; Printful docs indicate a general limit of 120 API calls per minute. Common 端点 map
Use this quick map before reaching for raw mode:
Stores 获取 /s