# FulfillmentOrder

        <p>
          The FulfillmentOrder resource represents either an item or a group of items in an
          <a href="/docs/admin-api/rest/reference/orders/order">order</a> that are to be fulfilled from the same location.
          There can be more than one fulfillment order for an <a href="/docs/admin-api/rest/reference/orders/order">order</a> at a given location.
        </p>
        {{ '/api/reference/fulfillment_order_relationships.png' | image }}
        <p>
          Fulfillment orders represent the work which is intended to be done in relation to an order.
          When the fulfillment of some or all line items has started, a
          <a href="https://shopify.dev/api/admin-rest/latest/resources/fulfillment">Fulfillment</a>
          is created by a merchant or third party to represent the ongoing or completed work of fulfillment.
          <a href="#fulfillment-order-creation">See below for more details on creating fulfillments</a>.
        </p>

        <div class="note">
          <h4>Note</h4>
          <p>
            Shopify creates fulfillment orders automatically when an order is created.
            It is not possible to manually create fulfillment orders.
          </p>
          <p>
            <a href="#fulfillment-order-lifecycle">See below for more details on the lifecycle of a fulfillment order</a>.
          </p>
        </div>

        <h2>Retrieving fulfillment orders<h2>
        <p>
          All fulfillment orders related to a given order can be retrieved with the
          <a href="https://shopify.dev/api/admin-rest/latest/resources/fulfillmentorder#get-orders-order-id-fulfillment-orders">Get fulfillment orders by order ID</a>
          endpoint.
          <a href="#api-access-scopes">API access scopes</a> govern which fulfillments orders are returned to clients.
          An API client will only receive a subset of the fulfillment orders which belong to an order
          if they don't have the necessary access scopes to view all of the fulfillment orders.
        </p>
        <p>
          Fulfillment service apps can retrieve the fulfillment orders which have been assigned to their locations with the
          <a href="/docs/api/admin-rest/latest/resources/assignedfulfillmentorder">AssignedFulfillmentOrder</a> resource.
          The <code>assignment_status</code> parameter in the
          <a href="https://shopify.dev/api/admin-rest/latest/resources/assignedfulfillmentorder#get-assigned-fulfillment-orders?assignment-status=cancellation-requested&amp;location-ids[]=24826418">Retrieve a list of assigned fulfillment orders</a>
          query controls whether all assigned fulfillment orders
          should be returned or only those where a merchant has sent a <a href="/docs/api/admin-rest/latest/resources/fulfillmentrequest">fulfilment request</a>
          and it has yet to be responded to.
          The API client must be granted the <code>read_assigned_fulfillment_orders</code> access scope to access
          the assigned fulfillment orders.
        </p>
        <p>
          A specific fulfillment order can be retrieved with the
          <a href="https://shopify.dev/api/admin-rest/latest/resources/fulfillmentorder#get-orders-order-id-fulfillment-orders">Get fulfillment order</a>
          endpoint.
        </p>

        <h2 id="fulfillment-order-lifecycle">The lifecycle of a fulfillment order</h2>

        <h3 id="fulfillment-order-creation">Fulfillment Order Creation</h3>
        <p>
          After an order is created, a background worker performs the order routing process which determines
          which locations will be responsible for fulfilling the purchased items.
          Once the order routing process is complete, one or more fulfillment orders will be created
          and assigned to these locations. It is not possible to manually create fulfillment orders.
        </p>

        <p>
          Once a fulfillment order has been created, it will have one of two different lifecycles depending on
          the type of location which the fulfillment order is assigned to.
        </p>

        <h3 id="fulfillment-order-lifecycle-at-merchant-location">The lifecycle of a fulfillment order at a merchant managed location</h3>
        <p>
          Fulfillment orders are completed by creating
          <a href="https://shopify.dev/api/admin-rest/latest/resources/fulfillment">fulfillments</a>.
          Fulfillments represents the work done.
        </p>
        <p>
          For digital products a merchant or an order management app would create a fulfilment once the digital asset
          has been provisioned.
          For example, in the case of a digital gift card, a merchant would to do this once
          the gift card has been activated - before the email being shipped.
        </p>
        <p>
          On the other hand, for a traditional shipped order,
          a merchant or an order management app would create a fulfillment after picking and packing the items relating
          to a fulfillment order, but before the courier has collected the goods.
        </p>
        <p>
          <a href="https://shopify.dev/apps/fulfillment/order-management-apps/manage-fulfillments">Learn about managing fulfillment orders as an order management app</a>.
        </p>

        <h3 id="fulfillment-order-lifecycle-at-merchant-location">The lifecycle of a fulfillment order at a location which is managed by a fulfillment service</h3>

        <p>
          For fulfillment orders which are assigned to a location that is managed by a fulfillment service,
          a merchant or an Order Management App can
          <a href="https://shopify.dev/api/admin-rest/latest/resources/fulfillmentrequest#post-fulfillment-orders-fulfillment-order-id-fulfillment-request">send a fulfillment request</a>
          to the fulfillment service which operates the location to request that they fulfill the associated items.
          A fulfillment service has the option to
          <a href="https://shopify.dev/api/admin-rest/latest/resources/fulfillmentrequest#post-fulfillment-orders-fulfillment-order-id-fulfillment-request-accept">accept</a>
          or <a href="https://shopify.dev/api/admin-rest/latest/resources/fulfillmentrequest#post-fulfillment-orders-fulfillment-order-id-fulfillment-request-accept">reject</a>
          this fulfillment request.
        </p>
        <p>
          Once the fulfillment service has accepted the request, the request can no longer be cancelled by the merchant
          or order management app and instead a
          <a href="https://shopify.dev/api/admin-rest/latest/resources/cancellationrequest">cancellation request</a>
          must be submitted to the fulfillment service.
        </p>
        <p>
          Once a fulfillment service accepts a fulfillment request,
          then after they are ready to pack items and send them for delivery, they create fulfillments with the
          <a href="https://shopify.dev/api/admin-rest/latest/resources/fulfillment#post-fulfillments">Create a fulfillment for one or many fulfillment orders</a>
          endpoint.
          They can provide tracking information right away or create fulfillments without it and then
          <a href="https://shopify.dev/api/admin-rest/latest/resources/fulfillment#post-fulfillments-fulfillment-id-update-tracking">update tracking information for fulfillments</a>.
        </p>
        <p>
          <a href="https://shopify.dev/apps/fulfillment/fulfillment-service-apps/manage-fulfillments">Learn about managing fulfillment orders as a fulfillment service</a>.
        </p>

        <h2 id="api-access-scopes">API access scopes</h2>
        <p>
          Fulfillment orders are governed by the following API access scopes:
          <ul>
            <li>
              The <code>read_merchant_managed_fulfillment_orders</code> and
              <code>write_merchant_managed_fulfillment_orders</code> access scopes
              grant access to fulfillment orders assigned to merchant-managed locations.
            </li>
            <li>
              The <code>read_assigned_fulfillment_orders</code> and <code>write_assigned_fulfillment_orders</code>
              access scopes are intended for fulfillment services.
              These scopes grant access to fulfillment orders assigned to locations that are being managed
              by fulfillment services.
            </li>
            <li>
              The <code>read_third_party_fulfillment_orders</code> and <code>write_third_party_fulfillment_orders</code>
              access scopes grant access to fulfillment orders
              assigned to locations managed by other fulfillment services.
            </li>
          </ul>
        </p>
        <h3>Fulfillment service app access scopes</h3>
        <p>
          Usually, <b>fulfillment services</b> have the <code>write_assigned_fulfillment_orders</code> access scope
          and don't have the <code>*_third_party_fulfillment_orders</code>
          or <code>*_merchant_managed_fulfillment_orders</code> access scopes.
          The app will only have access to the fulfillment orders assigned to their location
          (or multiple locations if the app registers multiple fulfillment services on the shop).
          The app will not have access to fulfillment orders assigned to merchant-managed locations
          or locations owned by other fulfillment service apps.
        </p>
        <h3>Order management app access scopes</h3>
        <p>
          <b>Order management apps</b> will usually request <code>write_merchant_managed_fulfillment_orders</code> and
          <code>write_third_party_fulfillment_orders</code> access scopes. This will allow them to manage all fulfillment orders
          on behalf of a merchant.
        </p>
        <p>
          If an app combines the functions of an order management app and a fulfillment service,
          then the app should request all
          access scopes to manage all assigned and all unassigned fulfillment orders.
        </p>

        <h2>Notifications about fulfillment orders</h2>
        <p>
          Fulfillment services are required to
          <a href="/docs/api/admin-rest/latest/resources/fulfillmentservice">register</a>
          a self-hosted callback URL which has a number of uses. One of these uses is that this callback URL will be notified
          whenever a merchant submits a fulfillment or cancellation request.
        </p>
        <p>
          Both merchants and apps can
          <a href="/docs/apps/fulfillment/fulfillment-service-apps/manage-fulfillments#webhooks">subscribe</a>
          to
          <a href="/docs/api/admin-rest/latest/resources/webhook#event-topics-fulfillment-orders-cancellation-request-accepted">fulfillment order webhooks</a>
          to
          be notified whenever fulfillment order related domain events occur.
        </p>

        <p>
          <a href="https://shopify.dev/apps/fulfillment">Learn about fulfillment workflows</a>.
        </p>

## Resource Properties

### FulfillmentOrder

* assigned_location_id: The ID of the location that has been assigned to do the work.
  * Type: x-string
  * Example: 3183479
* destination:         <p>The destination where the items should be sent.</p>
        <ul>
          <li><strong>id</strong>: The ID of the fulfillment order destination.</li>
          <li><strong>address1</strong>: The street address of the assigned location.</li>
          <li><strong>address2</strong>: An optional additional field for the street address of the assigned location.</li>
          <li><strong>city</strong>: The city of the destination.</li>
          <li><strong>company</strong>: The company of the destination.</li>
          <li><strong>country</strong>: The country of the destination.</li>
          <li><strong>email</strong>: The email of the customer at the destination.</li>
          <li><strong>first_name</strong>: The first name of the customer at the destination.</li>
          <li><strong>last_name</strong>: The last name of the customer at the destination.</li>
          <li><strong>phone</strong>: The phone number of the customer at the destination.</li>
          <li><strong>province</strong>: The province of the destination.</li>
          <li><strong>zip</strong>: The ZIP code of the destination.</li>
        </ul>

  * Type: x-string
  * Example: {"id"=>54433189, "address1"=>"123 Amoebobacterieae St", "address2"=>"Unit 806", "city"=>"Ottawa", "company"=>"", "country"=>"Canada", "email"=>"bob@example.com", "first_name"=>"Bob", "last_name"=>"Bobsen", "phone"=>"(555)555-5555", "province"=>"Ontario", "zip"=>"K2P0V6"}
* delivery_method:         <p>The type of method used to transfer a product or service to a customer.</p>
        <ul>
          <li><strong>id</strong>: The ID of the delivery method.</li>
          <li><strong>method_type</strong>: The type of delivery method. Valid values:
            <ul>
              <li><strong>local</strong>: A delivery to a customer's doorstep.</li>
              <li><strong>none</strong>: No delivery method.</li>
              <li><strong>pick_up</strong>: A delivery that a customer picks up at your retail store, curbside, or any location that you choose.</li>
              <li><strong>retail</strong>: Items delivered immediately in a retail store.</li>
              <li><strong>shipping</strong>: A delivery to a customer using a shipping carrier.</li>
            </ul>
          </li>
          <li><strong>min_delivery_date_time</strong>: The minimum date and time by which the delivery is expected to be completed.</li>
          <li><strong>max_delivery_date_time</strong>: The maximum date and time by which the delivery is expected to be completed.</li>
          <li><strong>additional_information</strong>: The Additional information to consider when performing the delivery. It has the following properties:
            <ul>
              <li><strong>instructions</strong>: The delivery instructions to follow when performing the delivery.</li>
              <li><strong>phone</strong>: The phone number to contact when performing the delivery.</li>
            </ul>
          </li>
          <li><strong>branded_promise</strong>: The branded promise that was presented to the buyer during checkout. For example: Shop Promise.
          It has the following properties:
            <ul>
              <li><strong>name</strong>: The handle of the branded promise. For example: `shop_promise`.</li>
              <li><strong>handle</strong>: The name of the branded promise. For example: `Shop Promise`.</li>
            </ul>
          </li>
          <li><strong>service_code</strong>: A reference to the shipping method.</li>
          <li><strong>source_reference</strong>: Source reference is promise provider specific data associated with delivery promise.</li>
        </ul>

  * Type: x-string
  * Example: {"id"=>64434189, "method_type"=>"local", "min_delivery_date_time"=>"2022-04-20T23:59:59-04:00", "max_delivery_date_time"=>"2022-04-28T23:59:59-04:00", "additional_information"=>{"instructions"=>"Leave at door", "phone"=>"111-111-1111"}, "service_code"=>"Economy", "source_reference"=>"Shopify", "branded_promise"=>{"name"=>"Shop Promise", "handle"=>"shop_promise"}}
* fulfill_at:           The date and time at which the fulfillment order will be fulfillable.
          When this date and time is reached, a <code>scheduled</code> fulfillment order is automatically transitioned to <code>open</code>.
          For example, the <code>fulfill_at</code> date for a subscription order might be the 1st of each month, a pre-order <code>fulfill_at</code> date would be <code>nil</code>, and a standard order <code>fulfill_at</code> date would be the order creation date.
          For more information about fulfillment statuses, refer to the <strong>status</strong> property.

  * Type: x-string
  * Example: "2021-01-01"
* fulfill_by:           The latest date and time by which all items in the fulfillment order need to be fulfilled.

  * Type: x-string
  * Example: "2021-01-01"
* fulfillment_holds: <p>Represents the fulfillment holds applied on the fulfillment order.</p>
<ul>
  <li><strong>reason</strong>: The reason for the fulfillment hold.</li>
  <li><strong>reason_notes</strong>: Additional information about the fulfillment hold reason.</li>
</ul>

  * Type: x-string
  * Example: [{"reason"=>"incorrect_address", "reason_notes"=>"the apartment number is missing."}]
* id: An ID for the fulfillment order.
  * Type: x-string
  * Example: 255858046
* international_duties: <p>The international duties relevant to the fulfillment order.</p>
<ul>
  <li><strong>incoterm</strong>: The method of duties payment. Valid values:
    <ul>
          <li><strong>DAP</strong>: Delivered at place.</li>
          <li><strong>DDP</strong>: Delivered duty paid.</li>
      </ul>
   </li>
</ul>

  * Type: x-string
  * Example: {"incoterm"=>"DAP"}
* line_items: <p>Represents line items belonging to a fulfillment order:</p>
<ul>
  <li><strong>id</strong>: The ID of the fulfillment order line item.</li>
  <li><strong>shop_id</strong>: The ID of the shop associated with the fulfillment order line item.</li>
  <li><strong>fulfillment_order_id</strong>: The ID of the fulfillment order associated with this line item.</li>
  <li><strong>line_item_id</strong>: The ID of the line item associated with this fulfillment order line item.</li>
  <li><strong>inventory_item_id</strong>: The ID of the inventory item associated with this fulfillment order line item.</li>
  <li><strong>quantity</strong>: The total number of units to be fulfilled.</li>
  <li><strong>fulfillable_quantity</strong>: The number of units remaining to be fulfilled.</li>
  <li><strong>variant_id</strong>: The ID of the variant associated with this fulfillment order line item.</li>
</ul>

  * Type: x-string
  * Example: [{"id"=>466157049, "shop_id"=>3998762, "fulfillment_order_id"=>1568020, "line_item_id"=>466157049, "inventory_item_id"=>6588097, "quantity"=>1, "fulfillable_quantity"=>1, "variant_id"=>2385087}]
* order_id: The ID of the order that's associated with the fulfillment order.
  * Type: x-string
  * Example: 3183479
* request_status:           <p>The request status of the fulfillment order. Valid values:</p>
          <ul>
            <li>
              <strong>unsubmitted</strong>:
              The initial request status for newly-created fulfillment orders. This is the only valid request
              status for fulfillment orders that aren't assigned to a fulfillment service.
            </li>
            <li>
              <strong>submitted</strong>: The merchant requested fulfillment for this fulfillment order.
            </li>
            <li>
              <strong>accepted</strong>: The fulfillment service accepted the merchant's fulfillment request.
            </li>
            <li>
              <strong>rejected</strong>: The fulfillment service rejected the merchant's fulfillment request.
            </li>
            <li>
              <strong>cancellation_requested</strong>: The merchant requested a cancellation of the fulfillment request for this fulfillment order.
            </li>
            <li>
              <strong>cancellation_accepted</strong>: The fulfillment service accepted the merchant's fulfillment cancellation request.
            </li>
            <li>
              <strong>cancellation_rejected</strong>: The fulfillment service rejected the merchant's fulfillment cancellation request.
            </li>
            <li>
              <strong>closed</strong>: The fulfillment service closed the fulfillment order without completing it.
            </li>
          </ul>

  * Type: x-string
  * Example: "unsubmitted"
* shop_id: The ID of the shop that's associated with the fulfillment order.
  * Type: x-string
  * Example: 255858046
* status:           <p>The status of the fulfillment order. Valid values:</p>
          <ul>
            <li>
              <strong>open</strong>: The fulfillment order is ready for fulfillment.
            </li>
            <li>
              <strong>in_progress</strong>: The fulfillment order is being processed.
            </li>
            <li>
              <strong>scheduled</strong>: The fulfillment order is deferred and will be ready for fulfillment
                after the datetime specified in <code>fulfill_at</code>.
            </li>
            <li>
              <strong>cancelled</strong>: The fulfillment order has been cancelled by the merchant.
            </li>
            <li>
              <strong>on_hold</strong>: The fulfillment order is on hold. The fulfillment process can't be initiated until the hold on the fulfillment order is released.
            </li>
            <li>
              <strong>incomplete</strong>: The fulfillment order cannot be completed as requested.
            </li>
            <li>
              <strong>closed</strong>: The fulfillment order has been completed and closed.
            </li>
          </ul>

  * Type: x-string
  * Example: "open"
* supported_actions:         <p>The actions that can be performed on this fulfillment order.</p>

  * Type: x-string
  * Example: ["create_fulfillment", "request_fulfillment", "cancel_fulfillment_order", "request_cancellation"]
* merchant_requests:         <p>A list of requests sent by the merchant to the fulfillment service for this fulfillment order.</p>
        <ul>
          <li><strong>message</strong>: The message returned by the merchant, if any.</li>
          <li><strong>request_options</strong>: The request options returned by the merchant, if any.</li>
          <li><strong>kind</strong>: The kind of request. Valid values: <em>fulfillment_request</em>, <em>cancellation_request</em>, or <em>legacy_fulfill_request</em>.</li>
        </ul>

  * Type: x-string
  * Example: [{"message"=>"Hello, World!", "request_options"=>{"shipping_method"=>"pidgeon carrier", "note"=>"handle with care", "date"=>"2019-08-13T16:09:58-04:00"}, "kind"=>"fulfillment_request"}]
* assigned_location:         <p>The fulfillment order's assigned location. This is the location where the fulfillment is expected to happen.</p>
        <p>The fulfillment order's assigned location might change in the following cases:</p>
        <ol>
          <li>The fulfillment order has been entirely moved to a new location. For example, the
            <a href="/api/admin-rest/latest/resources/fulfillmentorder#post-fulfillment-orders-fulfillment-order-id-move">
            fulfillment order move</a> endpoint has been called,
            and you see the original fulfillment order in the <code>moved_fulfillment_order</code>
            field within the response.</li>
          <li>Work on the fulfillment order has not yet begun, which means that the fulfillment order has the
            <code>open</code>, <code>scheduled</code>, or <code>on_hold</code> status,
            and the shop's location properties might be undergoing edits (for example, in the Shopify admin).</li>
        </ol>
        <p>If the <a href="/api/admin-rest/latest/resources/fulfillmentorder#post-fulfillment-orders-fulfillment-order-id-move">
        move</a> operation has moved the fulfillment order's line items to a new location,
        but hasn't moved the fulfillment order instance itself, then the original fulfillment order's assigned location
        doesn't change.
        This happens if the fulfillment order is being split during the move, or if all line items can be moved
        to an existing fitting fulfillment order at a new location.</p>

        <p>Once the fulfillment order has been taken into work or canceled,
        which means that the fulfillment order has the
        <code>in_progress</code>, <code>closed</code>, <code>cancelled</code>, or <code>incomplete</code> status,
        assigned location acts as a snapshot of the shop's location content.
        Up-to-date shop's location data may be queried through
        <a href="https://shopify.dev/api/admin-rest/latest/resources/location#get-locations-location-id">
        get location</a> endpoint with <code>assigned_location.location_id</code> supplied.</p>
        <ul>
          <li><strong>address1</strong>: The street address of the assigned location.</li>
          <li><strong>address2</strong>: An optional additional field for the street address of the assigned location.</li>
          <li><strong>city</strong>: The city of the assigned location.</li>
          <li><strong>country_code</strong>: The two-letter code for the country of the assigned location.</li>
          <li><strong>location_id</strong>: The ID of the shop's location where the fulfillment is expected to happen.
            It's content might be different from the <code>assigned_location</code> content
            if the location's attributes were updated after the fulfillment order was taken into work of canceled.</li>
          <li><strong>name</strong>: The name of the assigned location.</li>
          <li><strong>phone</strong>: The phone number of the assigned location.</li>
          <li><strong>province</strong>: The province of the assigned location.</li>
          <li><strong>zip</strong>: The ZIP code of the assigned location.</li>
        </ul>

  * Type: x-string
  * Example: {"address1"=>"123 Amoebobacterieae St", "address2"=>"Unit 806", "city"=>"Ottawa", "country_code"=>"CA", "location_id"=>17232953366, "name"=>"Bob Bobsen", "phone"=>"(555)555-5555", "province"=>"Ontario", "zip"=>"K2P0V6"}
* created_at:           <p>The date and time
          (<a href='https://en.wikipedia.org/wiki/ISO_8601' target="_blank">ISO 8601</a> format)
          when the fulfillment order was created.</p>

  * Type: string
  * Example: "2022-01-01T11:00:00-01:00"
* updated_at:           <p>The date and time
          (<a href='https://en.wikipedia.org/wiki/ISO_8601' target="_blank">ISO 8601</a> format)
          when the fulfillment order was last updated.</p>

  * Type: string
  * Example: "2022-01-01T11:00:00-01:00"
## Retrieves a list of fulfillment orders for a specific order

<p>
            Retrieves a list of fulfillment orders for a specific order.
          </p>
          <p>
            <a href="#api-access-scopes">API access scopes</a> govern which fulfillments orders are returned.
            An API client will only receive a subset of the fulfillment orders which belong to an order
            if they don't have the necessary access scopes to view all of the fulfillment orders.
            In the case that an API client does not have the access scopes necessary to view
            any of the fulfillment orders belongs to an order, an empty array will be returned.
          </p>

### Endpoint
/admin/api/#{api_version}/orders/{order_id}/fulfillment_orders.json (GET)

### Parameters
* api_version (required): 
* order_id (required): 
* include_financial_summaries: Include the financial summary data for each line item, if available.
* include_order_reference_fields: Indicates whether the order reference fields should be returned in the result.
* order_id: The ID of the order that is associated with the fulfillment orders.

### Responses
#### 200
Retrieves a list of fulfillment orders for a specific order

Examples:
##### Retrieve a list of all fulfillment orders for an order
Request:
```
GET /admin/api/unstable/orders/450789469/fulfillment_orders.json
```

Response:
```
HTTP/1.1 200 OK
{"fulfillment_orders":[{"id":1046000780,"created_at":"2025-01-02T11:22:25-05:00","updated_at":"2025-01-02T11:22:25-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":24826418,"request_status":"submitted","status":"open","fulfill_at":null,"fulfill_by":null,"supported_actions":["cancel_fulfillment_order"],"destination":{"id":1042572112,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"line_items":[{"id":1072503277,"shop_id":548380009,"fulfillment_order_id":1046000780,"quantity":1,"line_item_id":518995019,"inventory_item_id":49148385,"fulfillable_quantity":1,"variant_id":49148385}],"international_duties":null,"fulfillment_holds":[],"delivery_method":null,"assigned_location":{"address1":null,"address2":null,"city":null,"country_code":"DE","location_id":24826418,"name":"Apple Api Shipwire","phone":null,"province":null,"zip":null},"merchant_requests":[]}]}
```
##### Retrieve a list of fulfillment orders for an order and include the financial summary data for each
Request:
```
GET /admin/api/unstable/orders/450789469/fulfillment_orders.json
```

Response:
```
HTTP/1.1 200 OK
{"fulfillment_orders":[{"id":1046000784,"created_at":"2025-01-02T11:22:28-05:00","updated_at":"2025-01-02T11:22:28-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":24826418,"request_status":"submitted","status":"open","fulfill_at":null,"fulfill_by":null,"supported_actions":["cancel_fulfillment_order"],"destination":{"id":1042572116,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"line_items":[{"id":1072503281,"shop_id":548380009,"fulfillment_order_id":1046000784,"quantity":1,"line_item_id":518995019,"inventory_item_id":49148385,"fulfillable_quantity":1,"variant_id":49148385,"financial_summaries":[{"quantity":1,"original_unit_price_set":"199.00","approximate_discounted_unit_price_set":"199.00","discount_allocations":[{"amount":"3.33","discount_application":{"allocation_method":"across","target_selection":"all","target_type":"line_item"}}]}]}],"international_duties":null,"fulfillment_holds":[],"delivery_method":null,"assigned_location":{"address1":null,"address2":null,"city":null,"country_code":"DE","location_id":24826418,"name":"Apple Api Shipwire","phone":null,"province":null,"zip":null},"merchant_requests":[]}]}
```
##### Retrieve a list of fulfillment orders for an order and include the order reference data for each
Request:
```
GET /admin/api/unstable/orders/450789469/fulfillment_orders.json
```

Response:
```
HTTP/1.1 200 OK
{"fulfillment_orders":[{"id":1046000783,"created_at":"2025-01-02T11:22:28-05:00","updated_at":"2025-01-02T11:22:28-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":24826418,"request_status":"submitted","status":"open","fulfill_at":null,"fulfill_by":null,"supported_actions":["cancel_fulfillment_order"],"destination":{"id":1042572115,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"line_items":[{"id":1072503280,"shop_id":548380009,"fulfillment_order_id":1046000783,"quantity":1,"line_item_id":518995019,"inventory_item_id":49148385,"fulfillable_quantity":1,"variant_id":49148385}],"international_duties":null,"fulfillment_holds":[],"order_name":"#1001","order_processed_at":"2008-01-10T11:00:00-05:00","channel_id":null,"delivery_method":null,"assigned_location":{"address1":null,"address2":null,"city":null,"country_code":"DE","location_id":24826418,"name":"Apple Api Shipwire","phone":null,"province":null,"zip":null},"merchant_requests":[]}]}
```
## Retrieves a specific fulfillment order

Retrieves a specific fulfillment order.

### Endpoint
/admin/api/#{api_version}/fulfillment_orders/{fulfillment_order_id}.json (GET)

### Parameters
* api_version (required): 
* fulfillment_order_id (required): 
* include_financial_summaries: Include the financial summary data for each line item, if available.
* include_order_reference_fields: Indicates whether the order reference fields should be returned in the result.

### Responses
#### 200
Retrieves a specific fulfillment order

Examples:
##### Get a single fulfillment order by its ID
Request:
```
GET /admin/api/unstable/fulfillment_orders/1046000781.json
```

Response:
```
HTTP/1.1 200 OK
{"fulfillment_order":{"id":1046000781,"created_at":"2025-01-02T11:22:26-05:00","updated_at":"2025-01-02T11:22:26-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":24826418,"request_status":"submitted","status":"open","fulfill_at":null,"fulfill_by":null,"supported_actions":["cancel_fulfillment_order"],"destination":{"id":1042572113,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"line_items":[{"id":1072503278,"shop_id":548380009,"fulfillment_order_id":1046000781,"quantity":1,"line_item_id":518995019,"inventory_item_id":49148385,"fulfillable_quantity":1,"variant_id":49148385}],"international_duties":null,"fulfillment_holds":[],"delivery_method":null,"assigned_location":{"address1":null,"address2":null,"city":null,"country_code":"DE","location_id":24826418,"name":"Apple Api Shipwire","phone":null,"province":null,"zip":null},"merchant_requests":[]}}
```
##### Get a single fulfillment order by its ID and include the financial summary data
Request:
```
GET /admin/api/unstable/fulfillment_orders/1046000779.json
```

Response:
```
HTTP/1.1 200 OK
{"fulfillment_order":{"id":1046000779,"created_at":"2025-01-02T11:22:24-05:00","updated_at":"2025-01-02T11:22:25-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":24826418,"request_status":"submitted","status":"open","fulfill_at":null,"fulfill_by":null,"supported_actions":["cancel_fulfillment_order"],"destination":{"id":1042572111,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"line_items":[{"id":1072503276,"shop_id":548380009,"fulfillment_order_id":1046000779,"quantity":1,"line_item_id":518995019,"inventory_item_id":49148385,"fulfillable_quantity":1,"variant_id":49148385,"financial_summaries":[{"quantity":1,"original_unit_price_set":"199.00","approximate_discounted_unit_price_set":"199.00","discount_allocations":[{"amount":"3.33","discount_application":{"allocation_method":"across","target_selection":"all","target_type":"line_item"}}]}]}],"international_duties":null,"fulfillment_holds":[],"delivery_method":null,"assigned_location":{"address1":null,"address2":null,"city":null,"country_code":"DE","location_id":24826418,"name":"Apple Api Shipwire","phone":null,"province":null,"zip":null},"merchant_requests":[]}}
```
##### Get a single fulfillment order by its ID and include the order reference data for each
Request:
```
GET /admin/api/unstable/fulfillment_orders/1046000790.json
```

Response:
```
HTTP/1.1 200 OK
{"fulfillment_order":{"id":1046000790,"created_at":"2025-01-02T11:22:33-05:00","updated_at":"2025-01-02T11:22:33-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":24826418,"request_status":"submitted","status":"open","fulfill_at":null,"fulfill_by":null,"supported_actions":["cancel_fulfillment_order"],"destination":{"id":1042572122,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"line_items":[{"id":1072503286,"shop_id":548380009,"fulfillment_order_id":1046000790,"quantity":1,"line_item_id":518995019,"inventory_item_id":49148385,"fulfillable_quantity":1,"variant_id":49148385}],"international_duties":null,"fulfillment_holds":[],"order_name":"#1001","order_processed_at":"2008-01-10T11:00:00-05:00","channel_id":null,"delivery_method":null,"assigned_location":{"address1":null,"address2":null,"city":null,"country_code":"DE","location_id":24826418,"name":"Apple Api Shipwire","phone":null,"province":null,"zip":null},"merchant_requests":[]}}
```
## Cancel a fulfillment order

Marks a fulfillment order as cancelled.

### Endpoint
/admin/api/#{api_version}/fulfillment_orders/{fulfillment_order_id}/cancel.json (POST)

### Parameters
* api_version (required): 
* fulfillment_order_id (required): 

### Responses
#### 200
Cancel a fulfillment order

Examples:
##### Cancel a fulfillment order
Request:
```
POST /admin/api/unstable/fulfillment_orders/1046000788/cancel.json
{}
```

Response:
```
HTTP/1.1 200 OK
{"fulfillment_order":{"id":1046000788,"created_at":"2025-01-02T11:22:32-05:00","updated_at":"2025-01-02T11:22:32-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":24826418,"request_status":"submitted","status":"closed","fulfill_at":null,"fulfill_by":null,"supported_actions":[],"destination":{"id":1042572120,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"line_items":[],"international_duties":null,"fulfillment_holds":[],"delivery_method":null,"assigned_location":{"address1":null,"address2":null,"city":null,"country_code":"DE","location_id":24826418,"name":"Apple Api Shipwire","phone":null,"province":null,"zip":null},"merchant_requests":[]},"replacement_fulfillment_order":{"id":1046000789,"created_at":"2025-01-02T11:22:32-05:00","updated_at":"2025-01-02T11:22:32-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":24826418,"request_status":"unsubmitted","status":"open","fulfill_at":null,"fulfill_by":null,"supported_actions":["request_fulfillment","create_fulfillment","hold"],"destination":{"id":1042572121,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"line_items":[{"id":1072503285,"shop_id":548380009,"fulfillment_order_id":1046000789,"quantity":1,"line_item_id":518995019,"inventory_item_id":49148385,"fulfillable_quantity":1,"variant_id":49148385}],"international_duties":null,"fulfillment_holds":[],"delivery_method":null,"assigned_location":{"address1":null,"address2":null,"city":null,"country_code":"DE","location_id":24826418,"name":"Apple Api Shipwire","phone":null,"province":null,"zip":null},"merchant_requests":[]}}
```
## Marks a fulfillment order as incomplete

Marks an in-progress fulfillment order as incomplete,
          indicating the fulfillment service is unable to ship any remaining items,
          and closes the fulfillment request.<br>
          <br>
          This mutation can only be called for fulfillment orders that meet the following criteria:
          <ul>
            <li>Assigned to a fulfillment service location,</li>
            <li>The fulfillment request has been accepted,</li>
            <li>The fulfillment order status is `IN_PROGRESS`.</li>
          </ul>
          This mutation can only be called by the fulfillment service app that accepted the fulfillment request.
          Calling this mutation returns the control of the fulfillment order to the merchant, allowing them to
          move the fulfillment order line items to another location and fulfill from there,
          remove and refund the line items, or to request fulfillment from the same fulfillment service again.<br>
          <br>
          Closing a fulfillment order is explained in
          <a href="https://shopify.dev/apps/build/orders-fulfillment/fulfillment-service-apps/build-for-fulfillment-services#step-7-optional-close-a-fulfillment-order">the fulfillment service guide</a>.

### Endpoint
/admin/api/#{api_version}/fulfillment_orders/{fulfillment_order_id}/close.json (POST)

### Parameters
* api_version (required): 
* fulfillment_order_id (required): 
* message: An optional reason for marking the fulfillment order as incomplete.

### Responses
#### 200
Marks a fulfillment order as incomplete

Examples:
##### Transition a fulfillment order from in progress to incomplete
Request:
```
POST /admin/api/unstable/fulfillment_orders/1046000793/close.json
{"fulfillment_order":{"message":"Not enough inventory to complete this work."}}
```

Response:
```
HTTP/1.1 200 OK
{"fulfillment_order":{"id":1046000793,"created_at":"2025-01-02T11:22:35-05:00","updated_at":"2025-01-02T11:22:36-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":24826418,"request_status":"closed","status":"incomplete","fulfill_at":null,"fulfill_by":null,"supported_actions":["request_fulfillment","create_fulfillment","hold"],"destination":{"id":1042572125,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"line_items":[{"id":1072503289,"shop_id":548380009,"fulfillment_order_id":1046000793,"quantity":1,"line_item_id":518995019,"inventory_item_id":49148385,"fulfillable_quantity":1,"variant_id":49148385}],"international_duties":null,"fulfillment_holds":[],"delivery_method":null,"assigned_location":{"address1":null,"address2":null,"city":null,"country_code":"DE","location_id":24826418,"name":"Apple Api Shipwire","phone":null,"province":null,"zip":null},"merchant_requests":[]}}
```
## Moves a fulfillment order to a new location

Changes the location which is assigned to fulfill a number of unfulfilled fulfillment order line items.
<br>
Moving a fulfillment order will fail in the following circumstances:
<ul>
  <li>The fulfillment order is closed.</li>
  <li>The destination location has never stocked the requested inventory item.</li>
  <li>The API client doesn't have the correct permissions.</li>
</ul>
<p>
  Line items which have already been fulfilled can't be re-assigned
  and will always remain assigned to the original location.
</p>
<p>
  You can't change the assigned location while a fulfillment order has a
  <code>request_status</code> of <code>submitted</code>, <code>accepted</code>,
  <code>cancellation_requested</code>, or <code>cancellation_rejected</code>.
  These request statuses mean that a fulfillment order is awaiting action by a fulfillment service
  and can't be re-assigned without first having the fulfillment service accept a cancellation request.
  This behavior is intended to prevent items from being fulfilled by multiple locations or fulfillment services.
</p>

<h4>How re-assigning line items affects fulfillment orders</h4>
<p>
  If the original fulfillment order doesn't have any line items which are fully or partially fulfilled, the original fulfillment order will be moved to the new location.
  However if this isn't the case, the moved fulfillment order will differ from the original one.
</p>

<h4>Response</h4>
<ul>
  <li>
    <code>original_fulfillment_order</code> - The final state of the original fulfillment order.
    <br>
    As a result of the move operation, the original fulfillment order might be moved to the new location
    or remain in the original location. The original fulfillment order might have the same status or be closed.
  </li>
  <li>
    <code>moved_fulfillment_order</code> - The fulfillment order which now contains the moved line items and
    is assigned to the destination location.
    <br>
    <b>First scenario:</b> All line items belonging to the original fulfillment order are re-assigned.
    <br>
    In this case, this will be the original fulfillment order.
    <br>
    <b>Second scenario:</b> A subset of the line items belonging to the original fulfillment order are re-assigned.
    <br>
    If the new location is already assigned to fulfill line items on the order, then
    this will be an existing active fulfillment order.
    Otherwise, this will be a new fulfillment order with the moved line items assigned.
  </li>
  <li>
    <code>remaining_fulfillment_order</code> - this field is deprecated.
  </li>
</ul>

### Endpoint
/admin/api/#{api_version}/fulfillment_orders/{fulfillment_order_id}/move.json (POST)

### Parameters
* api_version (required): 
* fulfillment_order (required): An object containing
<ul>
  <li>
    <code>new_location_id</code>: (integer) The ID of the location where the fulfillment order will be moved.
  </li>
  <li>
    <code>fulfillment_order_line_items</code>: (Array) An <strong>optional</strong> array
    of fulfillment order line item ids and the quantity of each to move.
    If left blank, all unfulfilled line items belonging to the fulfillment order are moved.
    <strong>Added as of version 2023-04</strong>.
  </li>
</ul>

* fulfillment_order_id (required): 

### Responses
#### 200
Moves a fulfillment order to a new location

Examples:
##### Move a fulfillment order to a new location
Request:
```
POST /admin/api/unstable/fulfillment_orders/1046000786/move.json
{"fulfillment_order":{"new_location_id":655441491,"fulfillment_order_line_items":[{"id":1072503283,"quantity":1}]}}
```

Response:
```
HTTP/1.1 200 OK
{"original_fulfillment_order":{"id":1046000786,"created_at":"2025-01-02T11:22:30-05:00","updated_at":"2025-01-02T11:22:31-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":487838322,"request_status":"submitted","status":"closed","fulfill_at":null,"fulfill_by":null,"supported_actions":[],"destination":{"id":1042572118,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"line_items":[],"international_duties":null,"fulfillment_holds":[],"delivery_method":null,"assigned_location":{"address1":null,"address2":null,"city":null,"country_code":"DE","location_id":24826418,"name":"Apple Api Shipwire","phone":null,"province":null,"zip":null},"merchant_requests":[]},"moved_fulfillment_order":{"id":1046000787,"created_at":"2025-01-02T11:22:31-05:00","updated_at":"2025-01-02T11:22:31-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":655441491,"request_status":"unsubmitted","status":"open","fulfill_at":null,"fulfill_by":null,"supported_actions":["create_fulfillment","move","hold"],"destination":{"id":1042572119,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"line_items":[{"id":1072503284,"shop_id":548380009,"fulfillment_order_id":1046000787,"quantity":1,"line_item_id":518995019,"inventory_item_id":49148385,"fulfillable_quantity":1,"variant_id":49148385}],"international_duties":null,"fulfillment_holds":[],"delivery_method":null,"assigned_location":{"address1":"50 Rideau Street","address2":null,"city":"Ottawa","country_code":"CA","location_id":655441491,"name":"50 Rideau Street","phone":null,"province":"Ontario","zip":"K1N 9J7"},"merchant_requests":[]},"remaining_fulfillment_order":null}
```
## Marks the fulfillment order as open

Marks a scheduled fulfillment order as ready for fulfillment.
          This endpoint allows merchants to work on a scheduled fulfillment order before its expected <code>fulfill_at</code> datetime.

### Endpoint
/admin/api/#{api_version}/fulfillment_orders/{fulfillment_order_id}/open.json (POST)

### Parameters
* api_version (required): 
* fulfillment_order_id (required): 

### Responses
#### 200
Marks the fulfillment order as open

Examples:
##### Transition a fulfillment order from scheduled to open
Request:
```
POST /admin/api/unstable/fulfillment_orders/1046000785/open.json
{}
```

Response:
```
HTTP/1.1 200 OK
{"fulfillment_order":{"id":1046000785,"created_at":"2025-01-02T11:22:29-05:00","updated_at":"2025-01-02T11:22:30-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":24826418,"request_status":"unsubmitted","status":"open","fulfill_at":null,"fulfill_by":null,"supported_actions":["request_fulfillment","create_fulfillment","hold"],"destination":{"id":1042572117,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"line_items":[{"id":1072503282,"shop_id":548380009,"fulfillment_order_id":1046000785,"quantity":1,"line_item_id":518995019,"inventory_item_id":49148385,"fulfillable_quantity":1,"variant_id":49148385}],"international_duties":null,"fulfillment_holds":[],"delivery_method":null,"assigned_location":{"address1":null,"address2":null,"city":null,"country_code":"DE","location_id":24826418,"name":"Apple Api Shipwire","phone":null,"province":null,"zip":null},"merchant_requests":[]}}
```
## Reschedules the fulfill_at time of a scheduled fulfillment order

Reschedules a scheduled fulfillment order.

          Updates the value of the <code>fulfill_at</code> field on a scheduled fulfillment order.

          The fulfillment order will be marked as ready for fulfillment at this date and time.

          <h4>Response</h4>
          <ul>
            <li>
              <code>fulfillment_order</code> -  a fulfillment order with the rescheduled line items.
              <br>
              Fulfillment orders may be merged if they have the same <code>fulfill_at</code> datetime.
              If the fulfillment order is merged then the resulting fulfillment order will be returned.
              Otherwise the original fulfillment order will be returned with an updated
              <code>fulfill_at</code> datetime.
            </li>
          </ul>

### Endpoint
/admin/api/#{api_version}/fulfillment_orders/{fulfillment_order_id}/reschedule.json (POST)

### Parameters
* api_version (required): 
* fulfillment_order_id (required): 
* new_fulfill_at (required): The new fulfillment deadline of the fulfillment order. Must be in future.

### Responses
#### 200
Reschedules the fulfill_at time of a scheduled fulfillment order

Examples:
##### Update the fulfill_at time of a scheduled fulfillment order
Request:
```
POST /admin/api/unstable/fulfillment_orders/1046000791/reschedule.json
{"fulfillment_order":{"new_fulfill_at":"2026-02-02 16:22 UTC"}}
```

Response:
```
HTTP/1.1 200 OK
{"fulfillment_order":{"id":1046000791,"created_at":"2025-01-02T11:22:33-05:00","updated_at":"2025-01-02T11:22:34-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":24826418,"request_status":"unsubmitted","status":"scheduled","fulfill_at":"2026-02-02T11:22:00-05:00","fulfill_by":null,"supported_actions":["mark_as_open"],"destination":{"id":1042572123,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"line_items":[{"id":1072503287,"shop_id":548380009,"fulfillment_order_id":1046000791,"quantity":1,"line_item_id":518995019,"inventory_item_id":49148385,"fulfillable_quantity":1,"variant_id":49148385}],"international_duties":null,"fulfillment_holds":[],"delivery_method":null,"assigned_location":{"address1":null,"address2":null,"city":null,"country_code":"DE","location_id":24826418,"name":"Apple Api Shipwire","phone":null,"province":null,"zip":null},"merchant_requests":[]}}
```
## Holds fulfillment of a fulfillment order

Halts all fulfillment work on a fulfillment order.
          Changes the fulfillment order status to <code>ON_HOLD</code> and creates a fulfillment hold.

### Endpoint
/admin/api/#{api_version}/fulfillment_orders/{fulfillment_order_id}/hold.json (POST)

### Parameters
* api_version (required): 
* fulfillment_hold (required): An object containing
<ul>
  <li><code>reason</code>: (String) <strong>required</strong> A reason for the fulfillment hold.
  <ul>
  <li><code>awaiting_payment</code> The fulfillment hold is applied because payment is pending.</li>
  <li><code>high_risk_of_fraud</code> The fulfillment hold is applied because of a high risk of fraud.</li>
  <li><code>incorrect_address</code> The fulfillment hold is applied because of an incorrect address.</li>
  <li><code>inventory_out_of_stock</code> The fulfillment hold is applied because inventory is out of stock.</li>
  <li><code>other</code> The fulfillment hold is applied for any other reason.</li>
  </ul>
  </li>
  <li><code>reason_notes</code>: (String) <strong>optional</strong> Additional information about the fulfillment hold reason.</li>
  <li><code>notify_merchant</code>: (Boolean) <strong>optional</strong> Whether the merchant should receive a notification about the fulfillment hold. "  "If set to true, then the merchant will be notified on the Shopify mobile app "  "(if they use it to manage their store). The default value is false.</li>
  <li><code>fulfillment_order_line_items</code>: (Array) An <strong>optional</strong> array of fulfillment order line item ids and the quantity of each to move. <strong>Added as of version 2023-04</strong></li>
</ul>

* fulfillment_order_id (required): 

### Responses
#### 200
Holds fulfillment of a fulfillment order

Examples:
##### Apply a fulfillment hold on a fulfillment order because some inventory is out of stock
Request:
```
POST /admin/api/unstable/fulfillment_orders/1046000782/hold.json
{"fulfillment_hold":{"reason":"inventory_out_of_stock","reason_notes":"Not enough inventory to complete this work.","fulfillment_order_line_items":[{"id":1072503279,"quantity":1}]}}
```

Response:
```
HTTP/1.1 200 OK
{"fulfillment_order":{"id":1046000782,"created_at":"2025-01-02T11:22:26-05:00","updated_at":"2025-01-02T11:22:27-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":24826418,"request_status":"unsubmitted","status":"on_hold","fulfill_at":null,"fulfill_by":null,"supported_actions":["release_hold","hold"],"destination":{"id":1042572114,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"line_items":[{"id":1072503279,"shop_id":548380009,"fulfillment_order_id":1046000782,"quantity":1,"line_item_id":518995019,"inventory_item_id":49148385,"fulfillable_quantity":1,"variant_id":49148385}],"international_duties":null,"fulfillment_holds":[{"reason":"inventory_out_of_stock","reason_notes":"Not enough inventory to complete this work."}],"delivery_method":null,"assigned_location":{"address1":null,"address2":null,"city":null,"country_code":"DE","location_id":24826418,"name":"Apple Api Shipwire","phone":null,"province":null,"zip":null},"merchant_requests":[]}}
```
## Sets deadline for fulfillment orders

Sets the latest date and time by which the fulfillment orders need to be fulfilled.

### Endpoint
/admin/api/#{api_version}/fulfillment_orders/set_fulfillment_orders_deadline.json (POST)

### Parameters
* api_version (required): 
* fulfillment_deadline: The new fulfillment deadline of the fulfillment orders.
* fulfillment_order_ids: The IDs of the fulfillment orders for which the deadline is being set

### Responses
#### 200
Sets deadline for fulfillment orders

Examples:
##### Set a fulfillment deadline for a fulfillment order
Request:
```
POST /admin/api/unstable/fulfillment_orders/set_fulfillment_orders_deadline.json
{"fulfillment_order_ids":[1046000792],"fulfillment_deadline":"2021-05-26T10:00:00-04:00"}
```

Response:
```
HTTP/1.1 200 OK
{}
```
## Releases all holds on a fulfillment order

Releases the fulfillment order from all fulfillment holds and changes its status from <code>ON_HOLD</code>.
          <br>
          <strong>NOTE:</strong> It is highly recommended that apps use the
          <a href="https://shopify.dev/api/admin-graphql/latest/mutations/fulfillmentOrderReleaseHold">fulfillmentOrderReleaseHold GraphQL mutation</a>
          to release specific holds by providing their IDs.
          Releasing all holds on a fulfillment order will result in the fulfillment order being released prematurely
          and items being incorrectly fulfilled.

### Endpoint
/admin/api/#{api_version}/fulfillment_orders/{fulfillment_order_id}/release_hold.json (POST)

### Parameters
* api_version (required): 
* fulfillment_order_id (required): 

### Responses
#### 200
Releases all holds on a fulfillment order

Examples:
##### Transition a fulfillment order from on_hold to open
Request:
```
POST /admin/api/unstable/fulfillment_orders/1046000794/release_hold.json
{}
```

Response:
```
HTTP/1.1 200 OK
{"fulfillment_order":{"id":1046000794,"created_at":"2025-01-02T11:22:36-05:00","updated_at":"2025-01-02T11:22:37-05:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":24826418,"request_status":"submitted","status":"open","fulfill_at":null,"fulfill_by":null,"supported_actions":["cancel_fulfillment_order"],"destination":{"id":1042572126,"address1":"Chestnut Street 92","address2":"","city":"Louisville","company":null,"country":"United States","email":"bob.norman@mail.example.com","first_name":"Bob","last_name":"Norman","phone":"+1(502)-459-2181","province":"Kentucky","zip":"40202"},"origin":{"address1":null,"address2":null,"city":null,"country_code":"DE","location_id":24826418,"name":"Apple Api Shipwire","phone":null,"province":null,"zip":null},"line_items":[{"id":1072503290,"shop_id":548380009,"fulfillment_order_id":1046000794,"quantity":1,"line_item_id":518995019,"inventory_item_id":49148385,"fulfillable_quantity":1,"variant_id":49148385}],"outgoing_requests":[],"international_duties":null,"fulfillment_holds":[],"delivery_method":null}}
```