What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

FulfillmentOrders bulk API

FulfillmentOrders bulk API

kirya
Visitor
1 0 0

Hi.

We want to support updating order fulfillment locations in the label app.

Now, in the REST API, the only way to get assignment location is by fetching fulfillment orders.

But if we import multiple orders (initial import for example) is it possible to fetch all fulfillment orders at once?

I found the only method for a single order.

 

Is there any bulk API for fulfillment orders (for multiple source orders)?

Maybe we can get all open fulfillment orders for the shop?

Replies 2 (2)

rishi1897
Shopify Partner
53 3 5

aby update?

ShopifyDevSup
Shopify Staff
1453 238 525

Hi there. Have you considered using Bulk Operations to run a query in GraphQL. https://shopify.dev/docs/api/usage/bulk-operations/queries

 

eg 

```

mutation {
 bulkOperationRunQuery(
   query: """
   {
     fulfillmentOrders(first: 100) {
       edges {
         node {
           id
           status
           lineItems(first: 5) {
             edges {
               node {
                 id
                 sku
             
               }
             }
           }
         }
       }
     }
   }
   """
 ) {
   bulkOperation {
     id
     status
   }
   userErrors {
     field
     message
   }
 }
}

```

Hope this helps

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog