# AssignedFulfillmentOrder

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.

## Resource Properties ### AssignedFulfillmentOrder * assigned_location_id: The ID of the fulfillment order's assigned location. This is the location from which the order is expected to be fulfilled. * Type: x-string * Example: 3183479 * destination:

The destination where the items should be sent upon fulfillment.

* 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"} * id: The ID of the fulfillment order. * Type: x-string * Example: 255858046 * line_items:

Represents line items belonging to a fulfillment order:

* 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}] * order_id: The ID of the order that's associated with the fulfillment order. * Type: x-string * Example: 3183479 * request_status:

The request status of the fulfillment order. Valid values:

* 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:

The status of the fulfillment order. Valid values:

* Type: x-string * Example: "open" ## 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.

### Endpoint /admin/api/#{api_version}/assigned_fulfillment_orders.json?assignment_status=cancellation_requested&location_ids[]=24826418 (GET) ### Parameters * api_version (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. * 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. ### Responses #### 200 Retrieves a list of fulfillment orders assigned to the shop locations that are owned by the app Examples: ##### Retrieve a list of fulfillment orders in cancellation_requested state at a location for an app Request: ``` GET /admin/api/unstable/assigned_fulfillment_orders.json ``` Response: ``` HTTP/1.1 200 OK {"fulfillment_orders":[{"id":1046000802,"created_at":"2024-09-19T10:20:06-04:00","updated_at":"2024-09-19T10:20:06-04:00","shop_id":548380009,"order_id":450789469,"assigned_location_id":24826418,"request_status":"cancellation_requested","status":"in_progress","fulfill_at":null,"supported_actions":["create_fulfillment","cancel_fulfillment_order"],"destination":{"id":1042572134,"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":1058737511,"shop_id":548380009,"fulfillment_order_id":1046000802,"quantity":1,"line_item_id":518995019,"inventory_item_id":49148385,"fulfillable_quantity":1,"variant_id":49148385}],"outgoing_requests":[],"international_duties":null,"fulfillment_holds":[],"fulfill_by":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}}]} ```