--- title: fulfillmentOrdersSetFulfillmentDeadline - GraphQL Admin description: Sets the latest date and time by which the fulfillment orders need to be fulfilled. api_version: 2026-01 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/fulfillmentorderssetfulfillmentdeadline md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/fulfillmentorderssetfulfillmentdeadline.md --- # fulfillment​Orders​Set​Fulfillment​Deadline mutation Requires `write_merchant_managed_fulfillment_orders` access scope, `write_third_party_fulfillment_orders` access scope or `write_marketplace_fulfillment_orders` access scope. Also: The user must have fulfill\_and\_ship\_orders permission. Sets the latest date and time by which the fulfillment orders need to be fulfilled. ## Arguments * fulfillmentDeadline * fulfillmentOrderIds *** ## Fulfillment​Orders​Set​Fulfillment​Deadline​Payload returns * success * userErrors *** ## Examples * ### Sets deadline for fulfillment orders #### Description The merchant or an order management app set the date and time, by which the fulfillment orders have to be fulfilled #### Query ```graphql mutation fulfillmentOrdersSetFulfillmentDeadline($fulfillmentDeadline: DateTime!, $fulfillmentOrderIds: [ID!]!) { fulfillmentOrdersSetFulfillmentDeadline(fulfillmentDeadline: $fulfillmentDeadline, fulfillmentOrderIds: $fulfillmentOrderIds) { success userErrors { field message } } } ``` #### Variables ```json { "fulfillmentDeadline": "2024-11-25T18:44:04Z", "fulfillmentOrderIds": [ "gid://shopify/FulfillmentOrder/234125762", "gid://shopify/FulfillmentOrder/564786110" ] } ``` #### cURL ```bash curl -X POST \ https://your-development-store.myshopify.com/admin/api/2026-01/graphql.json \ -H 'Content-Type: application/json' \ -H 'X-Shopify-Access-Token: {access_token}' \ -d '{ "query": "mutation fulfillmentOrdersSetFulfillmentDeadline($fulfillmentDeadline: DateTime!, $fulfillmentOrderIds: [ID!]!) { fulfillmentOrdersSetFulfillmentDeadline(fulfillmentDeadline: $fulfillmentDeadline, fulfillmentOrderIds: $fulfillmentOrderIds) { success userErrors { field message } } }", "variables": { "fulfillmentDeadline": "2024-11-25T18:44:04Z", "fulfillmentOrderIds": [ "gid://shopify/FulfillmentOrder/234125762", "gid://shopify/FulfillmentOrder/564786110" ] } }' ``` #### React Router ```javascript import { authenticate } from "../shopify.server"; export const loader = async ({request}) => { const { admin } = await authenticate.admin(request); const response = await admin.graphql( `#graphql mutation fulfillmentOrdersSetFulfillmentDeadline($fulfillmentDeadline: DateTime!, $fulfillmentOrderIds: [ID!]!) { fulfillmentOrdersSetFulfillmentDeadline(fulfillmentDeadline: $fulfillmentDeadline, fulfillmentOrderIds: $fulfillmentOrderIds) { success userErrors { field message } } }`, { variables: { "fulfillmentDeadline": "2024-11-25T18:44:04Z", "fulfillmentOrderIds": [ "gid://shopify/FulfillmentOrder/234125762", "gid://shopify/FulfillmentOrder/564786110" ] }, }, ); const json = await response.json(); return json.data; } ``` #### Ruby ```ruby session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Graphql::Admin.new( session: session ) query = <<~QUERY mutation fulfillmentOrdersSetFulfillmentDeadline($fulfillmentDeadline: DateTime!, $fulfillmentOrderIds: [ID!]!) { fulfillmentOrdersSetFulfillmentDeadline(fulfillmentDeadline: $fulfillmentDeadline, fulfillmentOrderIds: $fulfillmentOrderIds) { success userErrors { field message } } } QUERY variables = { "fulfillmentDeadline": "2024-11-25T18:44:04Z", "fulfillmentOrderIds": [ "gid://shopify/FulfillmentOrder/234125762", "gid://shopify/FulfillmentOrder/564786110" ] } response = client.query(query: query, variables: variables) ``` #### Node.js ```javascript const client = new shopify.clients.Graphql({session}); const data = await client.query({ data: { "query": `mutation fulfillmentOrdersSetFulfillmentDeadline($fulfillmentDeadline: DateTime!, $fulfillmentOrderIds: [ID!]!) { fulfillmentOrdersSetFulfillmentDeadline(fulfillmentDeadline: $fulfillmentDeadline, fulfillmentOrderIds: $fulfillmentOrderIds) { success userErrors { field message } } }`, "variables": { "fulfillmentDeadline": "2024-11-25T18:44:04Z", "fulfillmentOrderIds": [ "gid://shopify/FulfillmentOrder/234125762", "gid://shopify/FulfillmentOrder/564786110" ] }, }, }); ``` #### Response ```json { "fulfillmentOrdersSetFulfillmentDeadline": { "success": true, "userErrors": [] } } ``` * ### fulfillmentOrdersSetFulfillmentDeadline reference