Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Why am I receiving an empty array from Fulfillment Orders REST API?

rah_shop
Shopify Partner
5 1 4

This documentation for Fulfillment Order - https://shopify.dev/docs/api/admin-rest/2023-01/resources/fulfillmentorder - states that "Fulfillment orders are created automatically when an order is created.".  So I should expect to see something returned when making a call to (replace {order_id} with an actual order id)

 

/admin/api/2023-01/orders/{order_id}/fulfillment_orders.json - correct?

 

Whenever I make a call to it though, I get back an empty array.  Why would that be?

 

{
    "fulfillment_orders": []
}
 
===================================================
 
Additional context re the order itself.
 
GET {shop}/admin/api/2023-01/orders/{order_id}.json returns (snippet pasted below)
 
{
    "order": {
        "id": *****,
        "fulfillment_status": null,
        "fulfillments": [],
        "line_items": [
            {
                "id": *****,
                "fulfillable_quantity": 1,
                "fulfillment_service": "manual",
                "fulfillment_status": null,
        ]
    }
}
Replies 2 (2)

mcsonka
Visitor
1 0 1

I'm facing the same issue. As part of the migration are we supposed to create new order management/fullment app, fetch new fulfilment requests, accept them, (Shopify creates fulfillment orders), fetch fulfillment orders, and then finally fulfill those?

 

Seems like a lot of work coming from just a single API call to fulfill an order.

rah_shop
Shopify Partner
5 1 4

Fyi when I posted my message here the first time it gave me an error but looks like it created anyway.  Here's the thread with more activity though still no clear answer.

 

https://community.shopify.com/c/shopify-apis-and-sdks/migration-to-fulfillment-order/td-p/1975191