Skip to main content

The REST Admin API is a legacy API as of October 1, 2024. Starting April 1, 2025, all new public apps must be built exclusively with the GraphQL Admin API. For details and migration steps, visit our migration guide.

AssignedFulfillmentOrder

Requires assigned_fulfillment_orders access scope.

A list of all the fulfillment orders that are assigned to an app at the shop level. The list of fulfillment orders can be filtered by location and assignment status.

Assigned fulfillment orders are fulfillment orders that are set to be fulfilled from locations managed by fulfillment services that are registered by the app. One app (api_client) may host multiple fulfillment services on a shop. Each fulfillment service manages a dedicated location on a shop. Assigned fulfillment orders can have associated fulfillment requests or might currently not be requested to be fulfilled.

Was this section helpful?
#

Endpoints


Anchor to

The AssignedFulfillmentOrder resource

Anchor to

Properties


assigned_location_id
read-only

The ID of the fulfillment order's assigned location. This is the location from which the order is expected to be fulfilled.


destination
read-only

The destination where the items should be sent upon fulfillment.

Show destination properties
  • id: The ID of the fulfillment order destination.
  • address1: The first line of the address of the destination.
  • address2: The second line of the address of the destination.
  • city: The city of the destination.
  • company: The company of the destination.
  • country: The country of the destination.
  • email: The email of the customer at the destination.
  • first_name: The first name of the customer at the destination.
  • last_name: The last name of the customer at the destination.
  • phone: The phone number of the customer at the destination.
  • province: The province of the destination.
  • zip: The ZIP code of the destination.

id
read-only
->
id

The ID of the fulfillment order.


line_items
read-only

Represents line items belonging to a fulfillment order:

Show line_items properties
  • id: The ID of the fulfillment order line item.
  • shop_id: The ID of the shop associated with the fulfillment order line item.
  • fulfillment_order_id: The ID of the fulfillment order associated with this line item.
  • line_item_id: The ID of the line item associated with this fulfillment order line item.
  • inventory_item_id: The ID of the inventory item associated with this fulfillment order line item.
  • quantity: The total number of units to be fulfilled.
  • fulfillable_quantity: The number of units remaining to be fulfilled.

order_id
read-only

The ID of the order that's associated with the fulfillment order.


request_status
read-only

The request status of the fulfillment order. Valid values:

Show request_status properties
  • unsubmitted: The initial request status for the newly-created fulfillment orders. This is the only valid request status for fulfillment orders that aren't assigned to a fulfillment service.
  • submitted: The merchant requested fulfillment for this fulfillment order.
  • accepted: The fulfillment service accepted the merchant's fulfillment request.
  • rejected: The fulfillment service rejected the merchant's fulfillment request.
  • cancellation_requested: The merchant requested a cancellation of the fulfillment request for this fulfillment order.
  • cancellation_accepted: The fulfillment service accepted the merchant's fulfillment cancellation request.
  • cancellation_rejected: The fulfillment service rejected the merchant's fulfillment cancellation request.
  • closed: The fulfillment service closed the fulfillment order without completing it.

shop_id
deprecated

The ID of the shop that's associated with the fulfillment order.


status
read-only

The status of the fulfillment order. Valid values:

Show status properties
  • open: Default state for newly created fulfillment orders.
  • in_progress: The fulfillment order is being processed.
  • cancelled: The fulfillment order has been cancelled by the merchant.
  • incomplete: The fulfillment order cannot be completed as requested.
  • closed: The fulfillment order has been completed and closed.

Was this section helpful?
{}

The AssignedFulfillmentOrder resource

{
"assigned_location_id": 3183479,
"destination": {
"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"
},
"id": 255858046,
"line_items": [
{
"id": 466157049,
"shop_id": 3998762,
"fulfillment_order_id": 1568020,
"line_item_id": 466157049,
"inventory_item_id": 6588097,
"quantity": 1,
"fulfillable_quantity": 1
}
],
"order_id": 3183479,
"request_status": "unsubmitted",
"shop_id": 255858046,
"status": "open"
}

Anchor to GET request, Retrieves a list of fulfillment orders assigned to the shop locations that are owned by the app
get
Retrieves a list of fulfillment orders assigned to the shop locations that are owned by the app

Retrieves a list of fulfillment orders assigned to the shop locations that are owned by the app.

The app must have the read_assigned_fulfillment_orders access scope to be able to retrieve fulfillment orders assigned to its locations.

All assigned fulfillment orders (except those with the CLOSED status) will be returned by default. Perform filtering with the assignment_status query parameter to receive only fulfillment orders that have been requested to be fulfilled.


api_version
string
required

assignment_status

The assignment status of the fulfillment orders that should be returned. If assignment_status parameter isn't provided, then the query will return all assigned fulfillment orders, except those with the CLOSED status.

Show assignment_status properties
  • fulfillment_unsubmitted: Fulfillment orders for which the merchant hasn't yet requested fulfillment. Filtering by this value is supported as of the 2023-04 API version.

  • fulfillment_requested: Fulfillment orders for which the merchant has requested fulfillment.

  • fulfillment_accepted: Fulfillment orders for which the merchant's fulfillment request has been accepted. Any number of fulfillments can be created on these fulfillment orders to completely fulfill the requested items.

  • cancellation_requested: Fulfillment orders for which the merchant has requested cancellation of the previously accepted fulfillment request.


location_ids

The IDs of the assigned locations of the fulfillment orders that should be returned.
If the location_ids parameter isn't provided, then all fulfillment orders assigned to the shop locations that are managed by the app will be returned.


Was this section helpful?

Retrieve a list of fulfillment orders in cancellation_requested state at a location for an app

Query parameters
assignment_status=cancellation_requested

The assignment status of the fulfillment orders that should be returned. If assignment_status parameter isn't provided, then the query will return all assigned fulfillment orders, except those with the CLOSED status.

Show assignment_status properties
  • fulfillment_unsubmitted: Fulfillment orders for which the merchant hasn't yet requested fulfillment. Filtering by this value is supported as of the 2023-04 API version.

  • fulfillment_requested: Fulfillment orders for which the merchant has requested fulfillment.

  • fulfillment_accepted: Fulfillment orders for which the merchant's fulfillment request has been accepted. Any number of fulfillments can be created on these fulfillment orders to completely fulfill the requested items.

  • cancellation_requested: Fulfillment orders for which the merchant has requested cancellation of the previously accepted fulfillment request.

Was this section helpful?
get

/admin/api/2025-07/assigned_fulfillment_orders.json?assignment_status=cancellation_requested&location_ids[]=24826418

curl -X GET "https://your-development-store.myshopify.com/admin/api/2025-07/assigned_fulfillment_orders.json?assignment_status=cancellation_requested&location_ids%5B%5D=24826418" \
-H "X-Shopify-Access-Token: {access_token}"

{}

Response

JSON
HTTP/1.1 200 OK
{
"fulfillment_orders": [
{
"id": 1046000804,
"created_at": "2025-07-01T14:41:06-04:00",
"updated_at": "2025-07-01T14:41:06-04:00",
"shop_id": 548380009,
"order_id": 450789469,
"assigned_location_id": 24826418,
"request_status": "cancellation_requested",
"status": "in_progress",
"fulfill_at": null,
"fulfill_by": null,
"supported_actions": [
"create_fulfillment",
"cancel_fulfillment_order"
],
"destination": {
"id": 1042572128,
"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": 1072503310,
"shop_id": 548380009,
"fulfillment_order_id": 1046000804,
"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,
"assigned_location": {
"address1": null,
"address2": null,
"city": null,
"country_code": "DE",
"location_id": 24826418,
"name": "Apple Api Shipwire",
"phone": null,
"province": null,
"zip": null
}
}
]
}