Version: 2024-07
Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-07/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"query LocationsForMoveList($fulfillmentOrderId: ID!) { fulfillmentOrder(id: $fulfillmentOrderId) { locationsForMove(first: 10) { edges { node { location { id name } message movable availableLineItemsCount { count } unavailableLineItemsCount { count } } } } } }\",\n \"variables\": {\n \"fulfillmentOrderId\": \"gid://shopify/FulfillmentOrder/564786110\"\n }\n}'\n" Node example: "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: {\n \"query\": `query LocationsForMoveList($fulfillmentOrderId: ID!) {\n fulfillmentOrder(id: $fulfillmentOrderId) {\n locationsForMove(first: 10) {\n edges {\n node {\n location {\n id\n name\n }\n message\n movable\n availableLineItemsCount {\n count\n }\n unavailableLineItemsCount {\n count\n }\n }\n }\n }\n }\n }`,\n \"variables\": {\n \"fulfillmentOrderId\": \"gid://shopify/FulfillmentOrder/564786110\"\n },\n },\n});\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 query LocationsForMoveList($fulfillmentOrderId: ID!) {\n fulfillmentOrder(id: $fulfillmentOrderId) {\n locationsForMove(first: 10) {\n edges {\n node {\n location {\n id\n name\n }\n message\n movable\n availableLineItemsCount {\n count\n }\n unavailableLineItemsCount {\n count\n }\n }\n }\n }\n }\n }\nQUERY\n\nvariables = {\n \"fulfillmentOrderId\": \"gid://shopify/FulfillmentOrder/564786110\"\n}\n\nresponse = client.query(query: query, variables: variables)\n" PHP example: "use Shopify\\Clients\\Graphql;\n\n$client = new Graphql(\"your-development-store.myshopify.com\", $accessToken);\n$query = <<<QUERY\n query LocationsForMoveList($fulfillmentOrderId: ID!) {\n fulfillmentOrder(id: $fulfillmentOrderId) {\n locationsForMove(first: 10) {\n edges {\n node {\n location {\n id\n name\n }\n message\n movable\n availableLineItemsCount {\n count\n }\n unavailableLineItemsCount {\n count\n }\n }\n }\n }\n }\n }\nQUERY;\n\n$variables = [\n \"fulfillmentOrderId\" => \"gid://shopify/FulfillmentOrder/564786110\",\n];\n\n$response = $client->query([\"query\" => $query, \"variables\" => $variables]);\n" Remix example: "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n query LocationsForMoveList($fulfillmentOrderId: ID!) {\n fulfillmentOrder(id: $fulfillmentOrderId) {\n locationsForMove(first: 10) {\n edges {\n node {\n location {\n id\n name\n }\n message\n movable\n availableLineItemsCount {\n count\n }\n unavailableLineItemsCount {\n count\n }\n }\n }\n }\n }\n }`,\n {\n variables: {\n \"fulfillmentOrderId\": \"gid://shopify/FulfillmentOrder/564786110\"\n },\n },\n);\n\nconst data = await response.json();\n" Graphql query: "query LocationsForMoveList($fulfillmentOrderId: ID!) {\n fulfillmentOrder(id: $fulfillmentOrderId) {\n locationsForMove(first: 10) {\n edges {\n node {\n location {\n id\n name\n }\n message\n movable\n availableLineItemsCount {\n count\n }\n unavailableLineItemsCount {\n count\n }\n }\n }\n }\n }\n}"
input: { "fulfillmentOrderId": "gid://shopify/FulfillmentOrder/564786110" }
response: { "data": { "fulfillmentOrder": { "locationsForMove": { "edges": [ { "node": { "location": { "id": "gid://shopify/Location/346779380", "name": "Ottawa Store" }, "message": "No items are stocked at this location.", "movable": false, "availableLineItemsCount": { "count": 0 }, "unavailableLineItemsCount": { "count": 1 } } }, { "node": { "location": { "id": "gid://shopify/Location/648019273", "name": "Ottawa Store geo located" }, "message": "No items are stocked at this location.", "movable": false, "availableLineItemsCount": { "count": 0 }, "unavailableLineItemsCount": { "count": 1 } } }, { "node": { "location": { "id": "gid://shopify/Location/884687543", "name": "Ottawa Warehouse" }, "message": "No items are stocked at this location.", "movable": false, "availableLineItemsCount": { "count": 0 }, "unavailableLineItemsCount": { "count": 1 } } }, { "node": { "location": { "id": "gid://shopify/Location/124656943", "name": "Shipping Origin" }, "message": "Current location.", "movable": false, "availableLineItemsCount": { "count": 0 }, "unavailableLineItemsCount": { "count": 1 } } }, { "node": { "location": { "id": "gid://shopify/Location/215093630", "name": "Snowdevil Shipwire Warehouse" }, "message": "No items are stocked at this location.", "movable": false, "availableLineItemsCount": { "count": 0 }, "unavailableLineItemsCount": { "count": 1 } } }, { "node": { "location": { "id": "gid://shopify/Location/750123840", "name": "Toronto Store" }, "message": "No items are stocked at this location.", "movable": false, "availableLineItemsCount": { "count": 0 }, "unavailableLineItemsCount": { "count": 1 } } }, { "node": { "location": { "id": "gid://shopify/Location/415211365", "name": "US Store" }, "message": "No items are stocked at this location.", "movable": false, "availableLineItemsCount": { "count": 0 }, "unavailableLineItemsCount": { "count": 1 } } } ] } } } }
Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-07/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"query FulfillmentOrderShow($id: ID!) { fulfillmentOrder(id: $id) { assignedLocation { location { id } } channelId destination { address1 address2 city company countryCode zip firstName lastName } fulfillAt fulfillBy requestStatus status lineItems(first: 10) { edges { node { inventoryItemId remainingQuantity requiresShipping weight { unit value } } } } } }\",\n \"variables\": {\n \"id\": \"gid://shopify/FulfillmentOrder/564786110\"\n }\n}'\n" Node example: "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: {\n \"query\": `query FulfillmentOrderShow($id: ID!) {\n fulfillmentOrder(id: $id) {\n assignedLocation {\n location {\n id\n }\n }\n channelId\n destination {\n address1\n address2\n city\n company\n countryCode\n zip\n firstName\n lastName\n }\n fulfillAt\n fulfillBy\n requestStatus\n status\n lineItems(first: 10) {\n edges {\n node {\n inventoryItemId\n remainingQuantity\n requiresShipping\n weight {\n unit\n value\n }\n }\n }\n }\n }\n }`,\n \"variables\": {\n \"id\": \"gid://shopify/FulfillmentOrder/564786110\"\n },\n },\n});\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 query FulfillmentOrderShow($id: ID!) {\n fulfillmentOrder(id: $id) {\n assignedLocation {\n location {\n id\n }\n }\n channelId\n destination {\n address1\n address2\n city\n company\n countryCode\n zip\n firstName\n lastName\n }\n fulfillAt\n fulfillBy\n requestStatus\n status\n lineItems(first: 10) {\n edges {\n node {\n inventoryItemId\n remainingQuantity\n requiresShipping\n weight {\n unit\n value\n }\n }\n }\n }\n }\n }\nQUERY\n\nvariables = {\n \"id\": \"gid://shopify/FulfillmentOrder/564786110\"\n}\n\nresponse = client.query(query: query, variables: variables)\n" PHP example: "use Shopify\\Clients\\Graphql;\n\n$client = new Graphql(\"your-development-store.myshopify.com\", $accessToken);\n$query = <<<QUERY\n query FulfillmentOrderShow($id: ID!) {\n fulfillmentOrder(id: $id) {\n assignedLocation {\n location {\n id\n }\n }\n channelId\n destination {\n address1\n address2\n city\n company\n countryCode\n zip\n firstName\n lastName\n }\n fulfillAt\n fulfillBy\n requestStatus\n status\n lineItems(first: 10) {\n edges {\n node {\n inventoryItemId\n remainingQuantity\n requiresShipping\n weight {\n unit\n value\n }\n }\n }\n }\n }\n }\nQUERY;\n\n$variables = [\n \"id\" => \"gid://shopify/FulfillmentOrder/564786110\",\n];\n\n$response = $client->query([\"query\" => $query, \"variables\" => $variables]);\n" Remix example: "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n query FulfillmentOrderShow($id: ID!) {\n fulfillmentOrder(id: $id) {\n assignedLocation {\n location {\n id\n }\n }\n channelId\n destination {\n address1\n address2\n city\n company\n countryCode\n zip\n firstName\n lastName\n }\n fulfillAt\n fulfillBy\n requestStatus\n status\n lineItems(first: 10) {\n edges {\n node {\n inventoryItemId\n remainingQuantity\n requiresShipping\n weight {\n unit\n value\n }\n }\n }\n }\n }\n }`,\n {\n variables: {\n \"id\": \"gid://shopify/FulfillmentOrder/564786110\"\n },\n },\n);\n\nconst data = await response.json();\n" Graphql query: "query FulfillmentOrderShow($id: ID!) {\n fulfillmentOrder(id: $id) {\n assignedLocation {\n location {\n id\n }\n }\n channelId\n destination {\n address1\n address2\n city\n company\n countryCode\n zip\n firstName\n lastName\n }\n fulfillAt\n fulfillBy\n requestStatus\n status\n lineItems(first: 10) {\n edges {\n node {\n inventoryItemId\n remainingQuantity\n requiresShipping\n weight {\n unit\n value\n }\n }\n }\n }\n }\n}"
input: { "id": "gid://shopify/FulfillmentOrder/564786110" }
response: { "data": { "fulfillmentOrder": { "assignedLocation": { "location": { "id": "gid://shopify/Location/124656943" } }, "channelId": null, "destination": { "address1": "123 Amoebobacterieae St", "address2": "Unit 806", "city": "Ottawa", "company": "", "countryCode": "CA", "zip": "K2P0V6", "firstName": "Bob", "lastName": "Bobsen" }, "fulfillAt": null, "fulfillBy": null, "requestStatus": "UNSUBMITTED", "status": "OPEN", "lineItems": { "edges": [ { "node": { "inventoryItemId": "gid://shopify/InventoryItem/43729076", "remainingQuantity": 1, "requiresShipping": true, "weight": { "unit": "GRAMS", "value": 1500.0 } } } ] } } } }
Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-07/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"query FulfillmentList($fulfillmentOrderId: ID!) { fulfillmentOrder(id: $fulfillmentOrderId) { fulfillments(first: 10) { edges { node { id fulfillmentLineItems(first: 10) { edges { node { id lineItem { title variant { id } } quantity originalTotalSet { shopMoney { amount currencyCode } } } } } status estimatedDeliveryAt service { handle } trackingInfo(first: 10) { company number url } originAddress { address1 address2 city countryCode provinceCode zip } } } } } }\",\n \"variables\": {\n \"fulfillmentOrderId\": \"gid://shopify/FulfillmentOrder/158170091\"\n }\n}'\n" Node example: "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: {\n \"query\": `query FulfillmentList($fulfillmentOrderId: ID!) {\n fulfillmentOrder(id: $fulfillmentOrderId) {\n fulfillments(first: 10) {\n edges {\n node {\n id\n fulfillmentLineItems(first: 10) {\n edges {\n node {\n id\n lineItem {\n title\n variant {\n id\n }\n }\n quantity\n originalTotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n }\n }\n status\n estimatedDeliveryAt\n service {\n handle\n }\n trackingInfo(first: 10) {\n company\n number\n url\n }\n originAddress {\n address1\n address2\n city\n countryCode\n provinceCode\n zip\n }\n }\n }\n }\n }\n }`,\n \"variables\": {\n \"fulfillmentOrderId\": \"gid://shopify/FulfillmentOrder/158170091\"\n },\n },\n});\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 query FulfillmentList($fulfillmentOrderId: ID!) {\n fulfillmentOrder(id: $fulfillmentOrderId) {\n fulfillments(first: 10) {\n edges {\n node {\n id\n fulfillmentLineItems(first: 10) {\n edges {\n node {\n id\n lineItem {\n title\n variant {\n id\n }\n }\n quantity\n originalTotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n }\n }\n status\n estimatedDeliveryAt\n service {\n handle\n }\n trackingInfo(first: 10) {\n company\n number\n url\n }\n originAddress {\n address1\n address2\n city\n countryCode\n provinceCode\n zip\n }\n }\n }\n }\n }\n }\nQUERY\n\nvariables = {\n \"fulfillmentOrderId\": \"gid://shopify/FulfillmentOrder/158170091\"\n}\n\nresponse = client.query(query: query, variables: variables)\n" PHP example: "use Shopify\\Clients\\Graphql;\n\n$client = new Graphql(\"your-development-store.myshopify.com\", $accessToken);\n$query = <<<QUERY\n query FulfillmentList($fulfillmentOrderId: ID!) {\n fulfillmentOrder(id: $fulfillmentOrderId) {\n fulfillments(first: 10) {\n edges {\n node {\n id\n fulfillmentLineItems(first: 10) {\n edges {\n node {\n id\n lineItem {\n title\n variant {\n id\n }\n }\n quantity\n originalTotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n }\n }\n status\n estimatedDeliveryAt\n service {\n handle\n }\n trackingInfo(first: 10) {\n company\n number\n url\n }\n originAddress {\n address1\n address2\n city\n countryCode\n provinceCode\n zip\n }\n }\n }\n }\n }\n }\nQUERY;\n\n$variables = [\n \"fulfillmentOrderId\" => \"gid://shopify/FulfillmentOrder/158170091\",\n];\n\n$response = $client->query([\"query\" => $query, \"variables\" => $variables]);\n" Remix example: "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n query FulfillmentList($fulfillmentOrderId: ID!) {\n fulfillmentOrder(id: $fulfillmentOrderId) {\n fulfillments(first: 10) {\n edges {\n node {\n id\n fulfillmentLineItems(first: 10) {\n edges {\n node {\n id\n lineItem {\n title\n variant {\n id\n }\n }\n quantity\n originalTotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n }\n }\n status\n estimatedDeliveryAt\n service {\n handle\n }\n trackingInfo(first: 10) {\n company\n number\n url\n }\n originAddress {\n address1\n address2\n city\n countryCode\n provinceCode\n zip\n }\n }\n }\n }\n }\n }`,\n {\n variables: {\n \"fulfillmentOrderId\": \"gid://shopify/FulfillmentOrder/158170091\"\n },\n },\n);\n\nconst data = await response.json();\n" Graphql query: "query FulfillmentList($fulfillmentOrderId: ID!) {\n fulfillmentOrder(id: $fulfillmentOrderId) {\n fulfillments(first: 10) {\n edges {\n node {\n id\n fulfillmentLineItems(first: 10) {\n edges {\n node {\n id\n lineItem {\n title\n variant {\n id\n }\n }\n quantity\n originalTotalSet {\n shopMoney {\n amount\n currencyCode\n }\n }\n }\n }\n }\n status\n estimatedDeliveryAt\n service {\n handle\n }\n trackingInfo(first: 10) {\n company\n number\n url\n }\n originAddress {\n address1\n address2\n city\n countryCode\n provinceCode\n zip\n }\n }\n }\n }\n }\n}"
input: { "fulfillmentOrderId": "gid://shopify/FulfillmentOrder/158170091" }
response: { "data": { "fulfillmentOrder": { "fulfillments": { "edges": [ { "node": { "id": "gid://shopify/Fulfillment/684880463", "fulfillmentLineItems": { "edges": [ { "node": { "id": "gid://shopify/FulfillmentLineItem/423076942", "lineItem": { "title": "Element", "variant": { "id": "gid://shopify/ProductVariant/214453824" } }, "quantity": 1, "originalTotalSet": { "shopMoney": { "amount": "10.0", "currencyCode": "USD" } } } } ] }, "status": "SUCCESS", "estimatedDeliveryAt": null, "service": { "handle": "manual" }, "trackingInfo": [ { "company": "UPS", "number": "1Z1234512345123456", "url": "https://www.ups.com/WebTracking?loc=en_US&requester=ST&trackNums=1Z1234512345123456" } ], "originAddress": null } } ] } } } }