fulfillment Tracking Info Update V2mutation deprecated
Requires write
access scope, write
access scope or write
access scope. Also: The user must have fulfill_and_ship_orders permission.
Updates tracking information for a fulfillment. Use fulfillment
instead.
Arguments
The ID of the fulfillment.
Anchor to notifyCustomernotifyCustomerWhether the customer will be notified of this update and future updates for the fulfillment. If this field is left blank, then notifications won't be sent to the customer when the fulfillment is updated.
The tracking input for the mutation, including tracking URL, number, and company.
FulfillmentTrackingInfoUpdateV2Payload returns
The updated fulfillment with tracking information.
The list of errors that occurred from executing the mutation.
Code examples for MUTATION: fulfillmentTrackingInfoUpdateV2
Query Reference for MUTATION: fulfillmentTrackingInfoUpdateV2
"mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput) {\n fulfillment {\n # Fulfillment fields\n }\n userErrors {\n field\n message\n }\n }\n}"
Input Reference for MUTATION: fulfillmentTrackingInfoUpdateV2
"{\n \"fulfillmentId\": \"gid://shopify/<objectName>/10079785100\",\n \"notifyCustomer\": true,\n \"trackingInfoInput\": {\n \"company\": \"<your-company>\",\n \"number\": \"<your-number>\",\n \"numbers\": [\n \"<your-numbers>\"\n ],\n \"url\": \"https://example.myshopify.com\",\n \"urls\": [\n \"https://example.myshopify.com\"\n ]\n }\n}"
Schema Reference for MUTATION: fulfillmentTrackingInfoUpdateV2
"input FulfillmentTrackingInput {\n company: String\n number: String\n numbers: [String!]\n url: URL\n urls: [URL!]\n}\n"
Display Examples for MUTATION: fulfillmentTrackingInfoUpdateV2
[ { "example": { "type_name": "fulfillmenttrackinginfoupdatev2", "title": "Add a tracking number and a tracking company name to a fulfillment", "description": "A fulfillment service app adds tracking information to a fulfillment that has\nbeen dropped off at a shipping carrier.\n\nWhen you specify a\n[Shopify-supported tracking company name](https://shopify.dev/api/admin-graphql/latest/objects/FulfillmentTrackingInfo#supported-tracking-companies),\nShopify will automatically build tracking urls for all tracking numbers provided.\nThe company name should directly match with one from the list (capitalization matters).\n", "query_string": "mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n status\n trackingInfo {\n company\n number\n url\n }\n }\n userErrors {\n field\n message\n }\n }\n}", "variables": { "fulfillmentId": "gid://shopify/Fulfillment/255858046", "notifyCustomer": true, "trackingInfoInput": { "company": "UPS", "number": "1Z001985YW99744790" } }, "response": { "data": { "fulfillmentTrackingInfoUpdateV2": { "fulfillment": { "id": "gid://shopify/Fulfillment/255858046", "status": "SUCCESS", "trackingInfo": [ { "company": "UPS", "number": "1Z001985YW99744790", "url": "https://www.ups.com/WebTracking?loc=en_US&requester=ST&trackNums=1Z001985YW99744790" } ] }, "userErrors": [] } } }, "api_name": "admin", "minimum_api_version": "2023-10", "maximum_api_version": "unstable", "location": "/components/fulfillments/test/unit/graph_api/admin/mutations/fulfillment_tracking_info_update_v2_test.rb", "curl_example": "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-10/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) { fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) { fulfillment { id status trackingInfo { company number url } } userErrors { field message } } }\",\n \"variables\": {\n \"fulfillmentId\": \"gid://shopify/Fulfillment/255858046\",\n \"notifyCustomer\": true,\n \"trackingInfoInput\": {\n \"company\": \"UPS\",\n \"number\": \"1Z001985YW99744790\"\n }\n }\n}'\n", "remix_example": "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n status\n trackingInfo {\n company\n number\n url\n }\n }\n userErrors {\n field\n message\n }\n }\n }`,\n {\n variables: {\n \"fulfillmentId\": \"gid://shopify/Fulfillment/255858046\",\n \"notifyCustomer\": true,\n \"trackingInfoInput\": {\n \"company\": \"UPS\",\n \"number\": \"1Z001985YW99744790\"\n }\n },\n },\n);\n\nconst data = await response.json();\n", "ruby_example": "session = ShopifyAPI::Auth::Session.new(\n shop: \"your-development-store.myshopify.com\",\n access_token: access_token\n)\nclient = ShopifyAPI::Clients::Graphql::Admin.new(\n session: session\n)\n\nquery = <<~QUERY\n mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n status\n trackingInfo {\n company\n number\n url\n }\n }\n userErrors {\n field\n message\n }\n }\n }\nQUERY\n\nvariables = {\n \"fulfillmentId\": \"gid://shopify/Fulfillment/255858046\",\n \"notifyCustomer\": true,\n \"trackingInfoInput\": {\n \"company\": \"UPS\",\n \"number\": \"1Z001985YW99744790\"\n }\n}\n\nresponse = client.query(query: query, variables: variables)\n", "node_example": "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: {\n \"query\": `mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n status\n trackingInfo {\n company\n number\n url\n }\n }\n userErrors {\n field\n message\n }\n }\n }`,\n \"variables\": {\n \"fulfillmentId\": \"gid://shopify/Fulfillment/255858046\",\n \"notifyCustomer\": true,\n \"trackingInfoInput\": {\n \"company\": \"UPS\",\n \"number\": \"1Z001985YW99744790\"\n }\n },\n },\n});\n", "php_example": "use Shopify\\Clients\\Graphql;\n\n$client = new Graphql(\"your-development-store.myshopify.com\", $accessToken);\n$query = <<<QUERY\n mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n status\n trackingInfo {\n company\n number\n url\n }\n }\n userErrors {\n field\n message\n }\n }\n }\nQUERY;\n\n$variables = [\n \"fulfillmentId\" => \"gid://shopify/Fulfillment/255858046\",\n \"notifyCustomer\" => true,\n \"trackingInfoInput\" => [\n \"company\" => \"UPS\",\n \"number\" => \"1Z001985YW99744790\",\n ],\n];\n\n$response = $client->query([\"query\" => $query, \"variables\" => $variables]);\n" }, "titleStringKey": "variables", "inputVariableEntries": [ { "arg": { "name": "fulfillmentId", "description": "The ID of the fulfillment.", "type": { "kind": "SCALAR", "name": "ID", "list": false, "non_null": true }, "defaultValue": null, "typeSignature": "ID!", "isDeprecated": false, "deprecationReason": null, "kind": "ARGUMENT" }, "key": "fulfillmentId", "argValue": " \"gid://shopify/Fulfillment/255858046\"", "typeKind": "MUTATION" }, { "arg": { "name": "notifyCustomer", "description": "Whether the customer will be notified of this update and future updates for the fulfillment.\nIf this field is left blank, then notifications won't be sent to the customer when the fulfillment is updated.", "type": { "kind": "SCALAR", "name": "Boolean", "list": false, "non_null": false }, "defaultValue": null, "typeSignature": "Boolean", "isDeprecated": false, "deprecationReason": null, "kind": "ARGUMENT" }, "key": "notifyCustomer", "argValue": " true", "typeKind": "MUTATION" }, { "arg": { "name": "trackingInfoInput", "description": "The tracking input for the mutation, including tracking URL, number, and company.", "type": { "kind": "INPUT_OBJECT", "name": "FulfillmentTrackingInput", "list": false, "non_null": true }, "defaultValue": null, "typeSignature": "FulfillmentTrackingInput!", "isDeprecated": false, "deprecationReason": null, "kind": "ARGUMENT" }, "key": "trackingInfoInput", "argValue": " {\"company\":\"UPS\",\"number\":\"1Z001985YW99744790\"}", "typeKind": "MUTATION" } ] }, { "example": { "type_name": "fulfillmenttrackinginfoupdatev2", "title": "Add tracking information with two tracking numbers and a supported tracking company name specified", "description": "A fulfillment service app adds tracking information to a fulfillment that has\nbeen dropped off at a shipping carrier and consists of two shipments.\n\nWhen you specify a\n[Shopify-supported tracking company name](https://shopify.dev/api/admin-graphql/latest/objects/FulfillmentTrackingInfo#supported-tracking-companies),\nShopify will automatically build tracking urls for all tracking numbers provided.\nThe company name should directly match with one from the list (capitalization matters).\n", "query_string": "mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n status\n trackingInfo {\n company\n number\n url\n }\n }\n userErrors {\n field\n message\n }\n }\n}", "variables": { "fulfillmentId": "gid://shopify/Fulfillment/255858046", "notifyCustomer": true, "trackingInfoInput": { "company": "UPS", "numbers": [ "1Z001985YW99744790", "1Z001985YW99744791" ] } }, "response": { "data": { "fulfillmentTrackingInfoUpdateV2": { "fulfillment": { "id": "gid://shopify/Fulfillment/255858046", "status": "SUCCESS", "trackingInfo": [ { "company": "UPS", "number": "1Z001985YW99744790", "url": "https://www.ups.com/WebTracking?loc=en_US&requester=ST&trackNums=1Z001985YW99744790" }, { "company": "UPS", "number": "1Z001985YW99744791", "url": "https://www.ups.com/WebTracking?loc=en_US&requester=ST&trackNums=1Z001985YW99744791" } ] }, "userErrors": [] } } }, "api_name": "admin", "minimum_api_version": "2023-10", "maximum_api_version": "unstable", "location": "/components/fulfillments/test/unit/graph_api/admin/mutations/fulfillment_tracking_info_update_v2_test.rb", "curl_example": "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-10/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) { fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) { fulfillment { id status trackingInfo { company number url } } userErrors { field message } } }\",\n \"variables\": {\n \"fulfillmentId\": \"gid://shopify/Fulfillment/255858046\",\n \"notifyCustomer\": true,\n \"trackingInfoInput\": {\n \"company\": \"UPS\",\n \"numbers\": [\n \"1Z001985YW99744790\",\n \"1Z001985YW99744791\"\n ]\n }\n }\n}'\n", "remix_example": "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n status\n trackingInfo {\n company\n number\n url\n }\n }\n userErrors {\n field\n message\n }\n }\n }`,\n {\n variables: {\n \"fulfillmentId\": \"gid://shopify/Fulfillment/255858046\",\n \"notifyCustomer\": true,\n \"trackingInfoInput\": {\n \"company\": \"UPS\",\n \"numbers\": [\n \"1Z001985YW99744790\",\n \"1Z001985YW99744791\"\n ]\n }\n },\n },\n);\n\nconst data = await response.json();\n", "ruby_example": "session = ShopifyAPI::Auth::Session.new(\n shop: \"your-development-store.myshopify.com\",\n access_token: access_token\n)\nclient = ShopifyAPI::Clients::Graphql::Admin.new(\n session: session\n)\n\nquery = <<~QUERY\n mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n status\n trackingInfo {\n company\n number\n url\n }\n }\n userErrors {\n field\n message\n }\n }\n }\nQUERY\n\nvariables = {\n \"fulfillmentId\": \"gid://shopify/Fulfillment/255858046\",\n \"notifyCustomer\": true,\n \"trackingInfoInput\": {\n \"company\": \"UPS\",\n \"numbers\": [\"1Z001985YW99744790\", \"1Z001985YW99744791\"]\n }\n}\n\nresponse = client.query(query: query, variables: variables)\n", "node_example": "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: {\n \"query\": `mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n status\n trackingInfo {\n company\n number\n url\n }\n }\n userErrors {\n field\n message\n }\n }\n }`,\n \"variables\": {\n \"fulfillmentId\": \"gid://shopify/Fulfillment/255858046\",\n \"notifyCustomer\": true,\n \"trackingInfoInput\": {\n \"company\": \"UPS\",\n \"numbers\": [\n \"1Z001985YW99744790\",\n \"1Z001985YW99744791\"\n ]\n }\n },\n },\n});\n", "php_example": "use Shopify\\Clients\\Graphql;\n\n$client = new Graphql(\"your-development-store.myshopify.com\", $accessToken);\n$query = <<<QUERY\n mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n status\n trackingInfo {\n company\n number\n url\n }\n }\n userErrors {\n field\n message\n }\n }\n }\nQUERY;\n\n$variables = [\n \"fulfillmentId\" => \"gid://shopify/Fulfillment/255858046\",\n \"notifyCustomer\" => true,\n \"trackingInfoInput\" => [\n \"company\" => \"UPS\",\n \"numbers\" => [\"1Z001985YW99744790\", \"1Z001985YW99744791\"],\n ],\n];\n\n$response = $client->query([\"query\" => $query, \"variables\" => $variables]);\n" }, "titleStringKey": "variables", "inputVariableEntries": [ { "arg": { "name": "fulfillmentId", "description": "The ID of the fulfillment.", "type": { "kind": "SCALAR", "name": "ID", "list": false, "non_null": true }, "defaultValue": null, "typeSignature": "ID!", "isDeprecated": false, "deprecationReason": null, "kind": "ARGUMENT" }, "key": "fulfillmentId", "argValue": " \"gid://shopify/Fulfillment/255858046\"", "typeKind": "MUTATION" }, { "arg": { "name": "notifyCustomer", "description": "Whether the customer will be notified of this update and future updates for the fulfillment.\nIf this field is left blank, then notifications won't be sent to the customer when the fulfillment is updated.", "type": { "kind": "SCALAR", "name": "Boolean", "list": false, "non_null": false }, "defaultValue": null, "typeSignature": "Boolean", "isDeprecated": false, "deprecationReason": null, "kind": "ARGUMENT" }, "key": "notifyCustomer", "argValue": " true", "typeKind": "MUTATION" }, { "arg": { "name": "trackingInfoInput", "description": "The tracking input for the mutation, including tracking URL, number, and company.", "type": { "kind": "INPUT_OBJECT", "name": "FulfillmentTrackingInput", "list": false, "non_null": true }, "defaultValue": null, "typeSignature": "FulfillmentTrackingInput!", "isDeprecated": false, "deprecationReason": null, "kind": "ARGUMENT" }, "key": "trackingInfoInput", "argValue": " {\"company\":\"UPS\",\"numbers\":[\"1Z001985YW99744790\",\"1Z001985YW99744791\"]}", "typeKind": "MUTATION" } ] }, { "example": { "type_name": "fulfillmenttrackinginfoupdatev2", "title": "Returns an user error if the fulfillment is not found", "description": "Mutation returns a user error if the queried fulfillment id does not exist or is not accessible to the app.\n", "query_string": "mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n }\n userErrors {\n field\n message\n }\n }\n}", "variables": { "fulfillmentId": "gid://shopify/Fulfillment/623721858", "trackingInfoInput": { "company": "UPS", "number": "1Z001985YW99744790" } }, "response": { "data": { "fulfillmentTrackingInfoUpdateV2": { "fulfillment": null, "userErrors": [ { "field": [ "fulfillmentId" ], "message": "Fulfillment does not exist." } ] } } }, "api_name": "admin", "minimum_api_version": "2023-10", "maximum_api_version": "unstable", "location": "/components/fulfillments/test/unit/graph_api/admin/mutations/fulfillment_tracking_info_update_v2_test.rb", "curl_example": "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-10/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) { fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) { fulfillment { id } userErrors { field message } } }\",\n \"variables\": {\n \"fulfillmentId\": \"gid://shopify/Fulfillment/623721858\",\n \"trackingInfoInput\": {\n \"company\": \"UPS\",\n \"number\": \"1Z001985YW99744790\"\n }\n }\n}'\n", "remix_example": "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n }\n userErrors {\n field\n message\n }\n }\n }`,\n {\n variables: {\n \"fulfillmentId\": \"gid://shopify/Fulfillment/623721858\",\n \"trackingInfoInput\": {\n \"company\": \"UPS\",\n \"number\": \"1Z001985YW99744790\"\n }\n },\n },\n);\n\nconst data = await response.json();\n", "ruby_example": "session = ShopifyAPI::Auth::Session.new(\n shop: \"your-development-store.myshopify.com\",\n access_token: access_token\n)\nclient = ShopifyAPI::Clients::Graphql::Admin.new(\n session: session\n)\n\nquery = <<~QUERY\n mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n }\n userErrors {\n field\n message\n }\n }\n }\nQUERY\n\nvariables = {\n \"fulfillmentId\": \"gid://shopify/Fulfillment/623721858\",\n \"trackingInfoInput\": {\n \"company\": \"UPS\",\n \"number\": \"1Z001985YW99744790\"\n }\n}\n\nresponse = client.query(query: query, variables: variables)\n", "node_example": "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: {\n \"query\": `mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n }\n userErrors {\n field\n message\n }\n }\n }`,\n \"variables\": {\n \"fulfillmentId\": \"gid://shopify/Fulfillment/623721858\",\n \"trackingInfoInput\": {\n \"company\": \"UPS\",\n \"number\": \"1Z001985YW99744790\"\n }\n },\n },\n});\n", "php_example": "use Shopify\\Clients\\Graphql;\n\n$client = new Graphql(\"your-development-store.myshopify.com\", $accessToken);\n$query = <<<QUERY\n mutation fulfillmentTrackingInfoUpdateV2($fulfillmentId: ID!, $trackingInfoInput: FulfillmentTrackingInput!, $notifyCustomer: Boolean) {\n fulfillmentTrackingInfoUpdateV2(fulfillmentId: $fulfillmentId, trackingInfoInput: $trackingInfoInput, notifyCustomer: $notifyCustomer) {\n fulfillment {\n id\n }\n userErrors {\n field\n message\n }\n }\n }\nQUERY;\n\n$variables = [\n \"fulfillmentId\" => \"gid://shopify/Fulfillment/623721858\",\n \"trackingInfoInput\" => [\n \"company\" => \"UPS\",\n \"number\" => \"1Z001985YW99744790\",\n ],\n];\n\n$response = $client->query([\"query\" => $query, \"variables\" => $variables]);\n" }, "titleStringKey": "variables", "inputVariableEntries": [ { "arg": { "name": "fulfillmentId", "description": "The ID of the fulfillment.", "type": { "kind": "SCALAR", "name": "ID", "list": false, "non_null": true }, "defaultValue": null, "typeSignature": "ID!", "isDeprecated": false, "deprecationReason": null, "kind": "ARGUMENT" }, "key": "fulfillmentId", "argValue": " \"gid://shopify/Fulfillment/623721858\"", "typeKind": "MUTATION" }, { "arg": { "name": "trackingInfoInput", "description": "The tracking input for the mutation, including tracking URL, number, and company.", "type": { "kind": "INPUT_OBJECT", "name": "FulfillmentTrackingInput", "list": false, "non_null": true }, "defaultValue": null, "typeSignature": "FulfillmentTrackingInput!", "isDeprecated": false, "deprecationReason": null, "kind": "ARGUMENT" }, "key": "trackingInfoInput", "argValue": " {\"company\":\"UPS\",\"number\":\"1Z001985YW99744790\"}", "typeKind": "MUTATION" } ] } ]