Loading...
Loading...
Compare original and translation side by side
shopify store auth --store <domain> --scopes read_orders,write_fulfillmentsread_orderswrite_fulfillmentsshopify store auth --store <domain> --scopes read_orders,write_fulfillmentsread_orderswrite_fulfillments| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| store | string | yes | — | Store domain (e.g., mystore.myshopify.com) |
| updates | array | yes | — | List of |
| notify_customer | bool | no | false | Resend shipping confirmation with updated tracking |
| dry_run | bool | no | true | Preview updates without executing mutations |
| format | string | no | human | Output format: |
| 参数 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
| store | string | 是 | — | 店铺域名(例如:mystore.myshopify.com) |
| updates | array | 是 | — | 由 |
| notify_customer | bool | 否 | false | 是否使用更新后的跟踪信息重发发货确认通知 |
| dry_run | bool | 否 | true | 预览更新效果而不实际执行变更操作 |
| format | string | 否 | human | 输出格式: |
⚠️overwrites existing tracking info. SetfulfillmentUpdateunless you explicitly want to resend shipment notifications — customers will receive a new email for every updated fulfillment if enabled. Run withnotify_customer: falseto confirm the fulfillment list before committing.dry_run: true
⚠️会覆盖现有跟踪信息。除非你明确需要重发发货通知,否则请将fulfillmentUpdate设为false——如果开启该选项,每个更新的履约单都会给客户发送一封新邮件,可能造成用户困扰。在实际执行前,请先使用notify_customer运行,确认要更新的履约单列表无误。dry_run: true
orderid: <order_id>updatesfulfillments { id, trackingInfo }fulfillmentUpdatefulfillmentId: <id>trackingInfoUpdateInput: { company, number, url }notifyCustomerfulfillment { id, trackingInfo }userErrorsorderupdatesid: <order_id>fulfillments { id, trackingInfo }fulfillmentUpdatefulfillmentId: <id>trackingInfoUpdateInput: { company, number, url }notifyCustomerfulfillment { id, trackingInfo }userErrorsundefinedundefined
```graphql
```graphqlundefinedundefined╔══════════════════════════════════════════════╗
║ SKILL: Tracking Update Bulk ║
║ Store: <store domain> ║
║ Started: <YYYY-MM-DD HH:MM UTC> ║
╚══════════════════════════════════════════════╝[N/TOTAL] <QUERY|MUTATION> <OperationName>
→ Params: <brief summary of key inputs>
→ Result: <count or outcome>dry_run: true[DRY RUN]format: human══════════════════════════════════════════════
OUTCOME SUMMARY
Fulfillments targeted: <n>
Tracking numbers updated: <n>
Notifications sent: <n>
Errors: <n>
Output: tracking_update_<date>.csv
══════════════════════════════════════════════format: json{
"skill": "tracking-update-bulk",
"store": "<domain>",
"started_at": "<ISO8601>",
"completed_at": "<ISO8601>",
"dry_run": true,
"outcome": {
"targeted": 0,
"updated": 0,
"notifications_sent": 0,
"errors": 0,
"output_file": "tracking_update_<date>.csv"
}
}╔══════════════════════════════════════════════╗
║ SKILL: Tracking Update Bulk ║
║ Store: <store domain> ║
║ Started: <YYYY-MM-DD HH:MM UTC> ║
╚══════════════════════════════════════════════╝[N/TOTAL] <QUERY|MUTATION> <OperationName>
→ Params: <brief summary of key inputs>
→ Result: <count or outcome>dry_run: true[DRY RUN]format: human══════════════════════════════════════════════
OUTCOME SUMMARY
Fulfillments targeted: <n>
Tracking numbers updated: <n>
Notifications sent: <n>
Errors: <n>
Output: tracking_update_<date>.csv
══════════════════════════════════════════════format: json{
"skill": "tracking-update-bulk",
"store": "<domain>",
"started_at": "<ISO8601>",
"completed_at": "<ISO8601>",
"dry_run": true,
"outcome": {
"targeted": 0,
"updated": 0,
"notifications_sent": 0,
"errors": 0,
"output_file": "tracking_update_<date>.csv"
}
}tracking_update_<YYYY-MM-DD>.csvorder_namefulfillment_idold_tracking_numbernew_tracking_numbercarriernotify_customerstatustracking_update_<YYYY-MM-DD>.csvorder_namefulfillment_idold_tracking_numbernew_tracking_numbercarriernotify_customerstatus| Error | Cause | Recovery |
|---|---|---|
| API rate limit exceeded | Wait 2 seconds, retry up to 3 times |
| Fulfillment cancelled or not found | Log error, skip, continue |
| Fulfillment ID not on order | Stale ID in updates list | Log mismatch, skip, continue |
| 错误 | 原因 | 解决方案 |
|---|---|---|
| API速率超限 | 等待2秒,最多重试3次 |
| 履约单已取消或不存在 | 记录错误,跳过该条,继续执行 |
| 履约单ID不在对应订单中 | updates列表中的ID已失效 | 记录不匹配信息,跳过该条,继续执行 |
notify_customer: falsefulfillment_idupdatesupdatesnotify_customer: falseupdatesfulfillment_idupdates