Fulfillments errors while trying to update tags on Shopify Order

New Member
1 0 0

We are using Python's Shopify API in a Django project.

API version: 2020-04

I'm using Order's Update API to update tags on the order. It's working most of the time but randomly I get this exception



Response(code=400, body="b'{"errors":{"fulfillments":"array contains unpermitted members"}}'", headers={'Date': 'Fri, 19 Feb 2021 16:31:21 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'close'....


Now weird thing is that I don't update anything on the Shopify order instance except tags, yet the error is about fulfillments. This is the pseudo-code of what I am doing


shopify_order = fetch_order_from_shopify()
shopify_order.tags = 'new_tags'



I've gone through code and exceptions multiple times but I can't figure out the reason. Any help would be appreciated.

Thanks 🙂

Replies 2 (2)
Shopify Staff
Shopify Staff
1098 146 219

Hey @fahadnoor 

Are you able to capture the request ID from the response headers?

Scott | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me 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

New Member
2 0 0



I have just run into the same issue with API version 2021-10.  Did you ever get a solution?


My Request-ID that failed is  '925b234c-3390-495b-9c04-7e84d1cb3fef' if that is helpful.