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.

Creating a Fulfillment returns 404 - but the order exists

Solved

Creating a Fulfillment returns 404 - but the order exists

michabbb
Tourist
4 1 0

hello,

it´s very frustrating to hear that the official support is unable to help a developer with a very detailed explained problem, but okay, I will try my luck here.

 

since 2 days I get errors creating fulfillment like this:

POST https://xxxxxxxxxx.myshopify.com/admin/api/2022-04/orders/xxxxxxxxxxxx/fulfillments.json 

"fulfillment" => array:7 [
    "tracking_number" => "xxxxxxxxxxxxxx"
    "location_id" => xxxxxxxxxxxxxxx
    "status" => "success"
    "shipment_status" => "in_transit"
    "tracking_company" => "GLS"
    "notify_customer" => true
    "line_items" => array:1 [
      0 => array:1 [
        "id" => xxxxxxxxxxxxxx
      ]
    ]

I didn´t change anything on my side. so I am very confused why now the API always returns a 404.
I don´t even understand "what exactly" is not found. the order ? the "line item" ? the "location_id" ?
i checked everything, it´s all there.

please, I have no idea if that is a (new) bug or if I am doing something wrong (even I didn´t change anything in my code) or maybe the API has changed - and I missed something here.

 

PLEASE HELP!!!

thanks!!!

micha

 

Accepted Solution (1)

michabbb
Tourist
4 1 0

This is an accepted solution.

okay, my fault: the new version has a different URL: /admin/api/2023-07/fulfillments.json

the order-id is now part of the body. shit ! still... a shame that the support is unable to help a blind man within 5 days ;-((

View solution in original post

Replies 4 (4)

RhiRo
Shopify Partner
41 3 9

Hey! 
Sorry I can't be much more help than this, but isn't that API version now unsupported (as of 1st July)? 

I think there were some major changes to order fulfillments after that version too.  

https://shopify.dev/changelog?filter=api

Screenshot 2023-07-10 at 09.28.29.png

https://shopify.dev/changelog/some-endpoint-deprecations-on-the-fulfillment-api-and-the-introduction...

https://shopify.dev/docs/apps/fulfillment/migrate

 

 

michabbb
Tourist
4 1 0

thanks for that note. i am pretty sure i also tried the latest new version and got also a 404. but I will check again to be sure. it would make sense 😉

michabbb
Tourist
4 1 0

Hi,

 

Nope, it has nothing to do with an old version. I also tried 2023-07 - still I get a 404.

It´s been five days since I can no longer create fulfillment, and the support is not responding.

I would say, what a terrible support, but it cannot be terrible when it´s not existent ;-(((

 

Holy sh.........

michabbb
Tourist
4 1 0

This is an accepted solution.

okay, my fault: the new version has a different URL: /admin/api/2023-07/fulfillments.json

the order-id is now part of the body. shit ! still... a shame that the support is unable to help a blind man within 5 days ;-((