Fulfillments errors while trying to update tags on Shopify Order

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

BadRequest

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'
shopify_order.save()

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

Thanks :slightly_smiling_face:

Hey @fahadnoor

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

Hello:

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.