Array contains unpermitted members while creating fulfillment (Shopify Rest API)

We have an app that generates thousands of fulfillments in a day.
By posting json to below Endpoint:

https://{shop_domain}.myshopify.com/admin/api/2020-07/orders/{order_id}/fulfillments.json

We are randomly getting this error in response:

{“errors”:{“line_items”:“array contains unpermitted members”}}

If I retry exact same request again it works. Here is the JSON which we post:

{
	"fulfillment": {
		"tracking_number":"1023038352056107",
		"tracking_company":"ParcelsApp",
		"line_items":[{"id":"10631029358675","quantity":1}],
		"location_id":35377315923,
		"tracking_url":"https:\/\/parcelsapp.com\/en\/tracking\/1023038352056107"
	}
}

Thanks for any guidance!

4 Likes

I just wanted to let you know I have moved your query here to our dedicated API forums.

As we’re not able to provide developer support ourselves, we have provided these forums that are moderated and responded to by our own developers and Partners.

I can see you’re already getting some input from the Community here, that’s really great to see!

This is the best place for any queries relating to the use of the Shopify API.

All the best!

We are experiencing the same behavior and have seen it multiple times across multiple Shopify Stores. Also, on retry (same exact payload sent) it will succeed. We are also processing high volumes of transactions.

1 Like

Same with us. It started about 2-3 weeks ago. Clearly, a Shopify issue and it would be amazing if you could get API support from Shopify, but it seems nonexistent.

1 Like

Same error occurs for us, this results in a high volume of errors that must be manually resolved. It started on approx Feb. 15 and happens multiple times a day, seemingly at random.

As in the example above we are specifying a line item and quantity. On retrying with the same payload, the error does not recur, but unfortunately our system requires manual resolution for every occurrence. This is a major headache.

If the error message was correct (malformed line_items array) why do subsequent requests succeed? This is eating up hours every day for our support staff, and our customers are not happy

1 Like

Hey folks,

Does anybody by chance have an x-request-id from any of the problematic calls? You’d find this X-request-ID in the headers returned from the call that fails.

We’d recently deployed a fix to the /admin/orders/{order_id}/fulfillments.json endpoint to clean up the error reporting on POST’s to this endpoint, so if possible I’d like to confirm this issue is still ongoing with an x-request-ID from the past 14 days. Thank you.

Confirm that this issue still persists. We are facing the same problem which seems to randomly occure.

@Luke_K

Thanks for your response,

date: Tue, 22 Feb 2022 18:19:18 GMT
x-request-id: e5783dad-9320-45e5-8dc3-b375b527f9e8

Thanks @AU79 acknowledging receipt here. I tracked down the failing 400 request ID and the consequent 200 OK request ID for the same line item. Will respond once I have more information.

I’d just like to add that we have a fulfilment app and have started experiencing the same issue from 16 Feb 2022 and is still ongoing with 240 occurrences since then.

The error’s are either:

{“errors”:{“base”:[“An error occurred, please try again”]}}

{“errors”:{“line_items”:“array contains unpermitted members”}}

I started noticing this error around Feb 25th and it is still an ongoing issue.

We’re still getting the error for the last 2 days.

[x-request-id] => ed28e046-7241-4f34-84a9-5a90b7d7c25f

[date] => Mon, 07 Mar 2022 05:24:24 GMT

Has this issue been fixed yet?

1 Like

We are getting the same issue as of 3/8/2022. Please let us know the status of the fix.

1 Like

We are receiving the same error intermittently on fulfillments. Restarted the process it will run to success… Shopify do you have any updated on this…Looks like it has been almost 2 weeks since it was reported by Gman.

1 Like

@Luke_K We now have 500+ recorded instances of this error, still occurring daily and causing failed shipment notifications, generating lots of unhappy emails and support tickets. I can understand the merchants’ frustration - from the customer’s perspective they are not aware their order has shipped, even though it has. If it would help to provide additional request IDs, I can provide those.
Any update you can provide would be greatly appreciated.

1 Like

We are having the same issue here since Feb 16

We are having the same issue here since Mar 1st.

“line_items”: “array contains unpermitted members”

Second submission of the same payload succeeds without issue.

I am still getting these errors randomly. has a fix been created yet? this is very time consuming to update all the fails.

Hi @Luke_K ,

We’ve been getting this error frequently (over a thousand times in the past couple of months). I have x-request ids. Here is an example:

"X-Request-Id: 5f7555fb-275a-4905-9926-6d0db86f2849"

Are you able to determine what happened with that request?

x-request-id: 39d719ce-2be7-438c-8ca8-bf6a7be38a9a