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.

Re: Order fulfill api returning 404 error

Order fulfill api returning 404 error

spidertest123
Visitor
3 0 3

Hi,

 

We are using shopify fulfillment api. But it always returning 404 error

 

Below is the first API call

 

Get : https://www.shopename.co.nz/admin/api/2024-01/orders/5314690416794/fulfillment_orders.json

 

Result

{
    "fulfillment_orders": [
        {
            "id"6318300135578,
            "shop_id"42717151386,
            "order_id"5314690416794,
            "assigned_location_id"49693130906,
            "request_status""unsubmitted",
            "status""open",
            "supported_actions": [
                "create_fulfillment",
                "hold"
            ],
            "destination": {
                "id"5887302697114,
                "address1""81 Devon Street",
                "address2"null,
                "city""Arrowtown",
                "company""TEST",
                "country""New Zealand",
                "email""email",
                "first_name""first_name",
                "last_name""last_name",
                "phone"null,
                "province""Otago",
                "zip""9302"
            },
            "line_items": [
                {
                    "id"13008511500442,
                    "shop_id"42717151386,
                    "fulfillment_order_id"6318300135578,
                    "quantity"1,
                    "line_item_id"12828296249498,
                    "inventory_item_id"41957326356634,
                    "fulfillable_quantity"1,
                    "variant_id"39862384459930
                }
            ],
            "international_duties"null,
            "fulfill_at""2024-03-05T16:00:00+13:00",
            "fulfill_by"null,
            "fulfillment_holds": [],
            "created_at""2024-03-05T16:42:51+13:00",
            "updated_at""2024-03-05T16:42:51+13:00",
            "delivery_method": {
                "id"783803383962,
                "method_type""shipping",
                "min_delivery_date_time"null,
                "max_delivery_date_time"null
            },
            "assigned_location": {
                "address1""10/50 Buckingham Street",
                "address2""",
                "city""Arrowtown",
                "country_code""NZ",
                "location_id"49693130906,
                "name""10/50 Buckingham Street",
                "province""Otago",
                "zip""9302"
            },
            "merchant_requests": []
        }
    ]
}
 
Below is the Fulfillment API call
 
 
Payload
{
    "fulfillment": {
        "message"null,
        "notify_customer"false,
        "location_id"49693130906,
        "tracking_info": {
            "number""TEST0000001",
            "url""url",
            "company""XXX"
        },
        "line_items_by_fulfillment_order": [
            {
                "fulfillment_order_id"6318300135578,
                "fulfillment_order_line_items": [
                    {
                        "id"13008511500442,
                        "quantity"1
                    }
                ]
            }
        ]
    }
}
 
Result
{
    "errors""Not Found"
}
 
x-request-id :  a4895573-bde3-4241-9da7-a0e8feffc4c5-1709620260
 
Below access copes are also added
write_assigned_fulfillment_orders,read_assigned_fulfillment_orders,write_fulfillments,read_fulfillments,write_merchant_managed_fulfillment_orders,read_merchant_managed_fulfillment_orders,write_orders,read_orders,write_products,read_products,write_third_party_fulfillment_orders,read_third_party_fulfillment_orders,write_custom_fulfillment_services,read_custom_fulfillment_services,read_all_orders
 
Please help us to find out the exact issue 
 
Thanks
Replies 2 (2)

jk-lyb
Tourist
4 0 1

We also have the same problem, some shops can do it, some shops cannot

CBDev
Tourist
3 0 0

Any updates on this issue?
I'm experiencing the exact same thing.
I've been using the same code, and it works for all stores except one.
It throws a "not found" error with this one store.