Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Duplicate Fulfillment Orders when refulfilling orders

Duplicate Fulfillment Orders when refulfilling orders

dubu
Visitor
3 0 0

When requesting orders using the GraphQL API we are getting duplicated FulfillmentOrder objects when the order has been fulfilled and unfulfilled in the admin interface. The FulfillmentOrders are identical other than the unique "id".

Is this intended behaviour, or is it the same fault as is described in this thread? https://community.shopify.com/c/Shopify-APIs-SDKs/Duplicate-Fulfillment-Bug-shopify-com-issue/td-p/6...

To duplicate the fault run the query

query {
  orders(first: 3, reverse: true) {
    edges {
      node {
        id
        fulfillmentOrders(first: 3) {
          edges {
            node {
              id
              lineItems(first: 3) {
                edges {
                  node {
                    lineItem {
                      name
                    }
                    id
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

 then unfulfill and re-fulfill one of the orders, and re-run the query. You will see that there is a new fulfullmentorder.

 

Any help resolving this is appreciated 🙂

Replies 4 (4)

HunkyBill
Shopify Partner
4853 60 568

This is hilarious. Not in a good way, but still. I can't wait to see this in action myself.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
dubu
Visitor
3 0 0

Yea, not sure if I'm missing something or if its just working strangely.

dubu
Visitor
3 0 0

Anyone have any thoughts on this?

HunkyBill
Shopify Partner
4853 60 568

So a naive process would take one of the assigned fulfillment orders, fulfill it, and then close it. So a question is, if you close one of the fulfillment orders assigned by Shopify, does the duplicated one also get closed? Since they are tied to an order, it would be interesting to know if a close assigned, is per unique ID, or per assignment.

 

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com