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.

422 Unprocessible Entity Error, Fulfillment REST API

Solved

422 Unprocessible Entity Error, Fulfillment REST API

mambro
Shopify Partner
5 0 1

We POSTed this:

 

 

{
    "fulfillment": {
        "location_id": 3895984177,
        "tracking_number": "1Z6V50R70392709729",
        "tracking_company": "UPS",
        "line_items": [{
                "id": 10456407900421,
                "quantity": 1
            }, {
                "id": 10456407867653,
                "quantity": 1
            }, {
                "id": 10456407933189,
                "quantity": 1
            }
        ]
    }
}

 

 

 

to one of our shops using this kind of URL:

admin/api/2021-04//orders/{id}/fulfillments.json

 

We've been sending fulfillments, successfully, for over a year. To an older API version: 2020-10. Last week it started failing:

{"errors":{"line_items":"array contains unpermitted members"}}

 

So we noticed we're on an old REST API version, and our first instinct is to update. That changed the problem to this error:

422 Unprocessible Entity.

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

 

No other information. NOTHING. This is happening on ALL of our shops, not just this particular one. We have HUNDREDS of orders needing fulfillment information.

 

Response headers:

X-Request-ID: c81d5e5d-0bd9-4d36-b9b7-91f1fbdcb472

X-Stats-ApiPermissionId: 27683422257
X-Shopify-Shop-Api-Call-Limit: 1/80

X-Shopify-API-Version: 2021-04
X-Dc: gcp-us-east1,gcp-us-central1,gcp-us-central1

Content-Type: application/json; charset=utf-8

CF-RAY: 6e6a9e6dffb6824a-IAD

X-Sorting-Hat-PodId: 260

 

We need this fixed. Stat.

We are a merchant selling through multiple shops. We created our own Java-based software to communicate with Shopify's Admin REST API, used successfully since 2017.
Accepted Solution (1)
lizk
Shopify Staff
246 58 78

This is an accepted solution.

Thanks! 

Yup that will work as well!

Sorry I should have clarified that you must be logged into your Partner Account and click on "Contact Partner Support" to be able to see the specific "Report and Issue" button.

Contact Shopify Support · Shopify Help Center 2022-03-04 14-35-40.png

 

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 4 (4)

lizk
Shopify Staff
246 58 78

Hi

Thanks for bringing this to our attention!

Could you please report this via the Partner Dashboard, this will help us keep track of these reports and triage to the correct team.

You can report via shopify.com/partners > Support > Report an Issue

To learn more visit the Shopify Help Center or the Community Blog.

mambro
Shopify Partner
5 0 1

There was a reply here by @lizk . Right now we can't see it. Assuming that's a bug. They asked us to report it with Partner Support. The particular way outlined by @lizk is unavailable to us. We see no "Report an Issue" link or button. We do see a "Contact Partner Support" button. We'll use that.

 

Update: after using that button and logging in (for a 3rd time) we see a button "Report an Issue".

We are a merchant selling through multiple shops. We created our own Java-based software to communicate with Shopify's Admin REST API, used successfully since 2017.
lizk
Shopify Staff
246 58 78

This is an accepted solution.

Thanks! 

Yup that will work as well!

Sorry I should have clarified that you must be logged into your Partner Account and click on "Contact Partner Support" to be able to see the specific "Report and Issue" button.

Contact Shopify Support · Shopify Help Center 2022-03-04 14-35-40.png

 

To learn more visit the Shopify Help Center or the Community Blog.

mambro
Shopify Partner
5 0 1

Report submitted to Partner Support.

 

It happened again, just now, with a different order.

We are a merchant selling through multiple shops. We created our own Java-based software to communicate with Shopify's Admin REST API, used successfully since 2017.