shopify-admin-tracking-update-bulk
Original:🇺🇸 English
Translated
Batch-update tracking numbers and URLs on existing fulfillments when a carrier reassigns tracking IDs.
4installs
Added on
NPX Install
npx skill4agent add 40rty-ai/shopify-admin-skills shopify-admin-tracking-update-bulkTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Purpose
Looks up existing fulfillments on orders and updates their tracking numbers and carrier URLs in bulk. Used when a carrier reissues tracking IDs after a label reprint, a 3PL batch-uploads corrected tracking, or a carrier integration pushes wrong tracking numbers. Replaces manual tracking corrections in Shopify Admin order by order.
Prerequisites
- Authenticated Shopify CLI session:
shopify store auth --store <domain> --scopes read_orders,write_fulfillments - API scopes: ,
read_orderswrite_fulfillments
Parameters
| 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: |
Safety
⚠️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
Workflow Steps
-
OPERATION:— query Inputs:
orderfor each order inid: <order_id>Expected output: Order withupdatesto confirm existing fulfillment IDs matchfulfillments { id, trackingInfo } -
OPERATION:— mutation Inputs:
fulfillmentUpdate,fulfillmentId: <id>,trackingInfoUpdateInput: { company, number, url }Expected output:notifyCustomer,fulfillment { id, trackingInfo }userErrors
GraphQL Operations
graphql
# order:query — validated against api_version 2025-01
query OrderFulfillments($id: ID!) {
order(id: $id) {
id
name
fulfillments {
id
status
trackingInfo {
company
number
url
}
}
}
}graphql
# fulfillmentUpdate:mutation — validated against api_version 2025-01
mutation FulfillmentUpdate($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {
fulfillmentUpdate(
fulfillmentId: $fulfillmentId
trackingInfoUpdateInput: $trackingInfoInput
notifyCustomer: $notifyCustomer
) {
fulfillment {
id
status
trackingInfo {
company
number
url
}
}
userErrors {
field
message
}
}
}Session Tracking
Claude MUST emit the following output at each stage. This is mandatory.
On start, emit:
╔══════════════════════════════════════════════╗
║ SKILL: Tracking Update Bulk ║
║ Store: <store domain> ║
║ Started: <YYYY-MM-DD HH:MM UTC> ║
╚══════════════════════════════════════════════╝After each step, emit:
[N/TOTAL] <QUERY|MUTATION> <OperationName>
→ Params: <brief summary of key inputs>
→ Result: <count or outcome>If , prefix every mutation step with and do not execute it.
dry_run: true[DRY RUN]On completion, emit:
For (default):
format: human══════════════════════════════════════════════
OUTCOME SUMMARY
Fulfillments targeted: <n>
Tracking numbers updated: <n>
Notifications sent: <n>
Errors: <n>
Output: tracking_update_<date>.csv
══════════════════════════════════════════════For , emit:
format: jsonjson
{
"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"
}
}Output Format
CSV file with columns:
, , , , , ,
tracking_update_<YYYY-MM-DD>.csvorder_namefulfillment_idold_tracking_numbernew_tracking_numbercarriernotify_customerstatusError Handling
| 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 |
Best Practices
- Keep unless the carrier is tracking a replacement shipment — customers find repeated shipping emails confusing and may open unnecessary support tickets.
notify_customer: false - Provide directly in the
fulfillment_idinput when possible to skip the order lookup step entirely.updates - For 3PL integrations that send corrected tracking via CSV, parse the CSV into the array before running this skill.
updates