-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fulfillment its giving me a 404 error #301
Comments
@kahmra Or you can refer #283
I googled or referred to many other online methods, but none of them succeeded, or I felt that it was not easy to use. Finally, directly refer to the official https://shopify.dev/docs/api/admin-rest/2023-04/resources/fulfillment#post-fulfillments, and then construct the corresponding parameters. |
Hi! i use the same method hahaha but this not works if an order have a delete item |
A possible workaround by adding the 'Fulfillment' item in the ShopifySDK.php $resources array . In this way you can use this method as standalone method without passing for orders, accordly with the official documentation https://shopify.dev/docs/api/admin-rest/2023-04/resources/fulfillment#post-fulfillments . After that the resulting working code is something like that : $FulfillmentOrder = $shopify->Order('123456789')->FulfillmentOrder->get();
$location = 123456789;
$fulfillment = [
"location_id" => $location,
"notify_customer" => true,
"tracking_info" => [
"number" => '123456789',
"url" => 'https://www.ship.it&id=434324234234234234',
],
"line_items_by_fulfillment_order" => [
[
"fulfillment_order_id" => $FulfillmentOrder[0]['id']
]
]
];
$fulfill = $shopify->Fulfillment()->post($fulfillment); The last API changelog explain what is removed from fulfillment endpoint . If needed i can make a PR to fix this . |
@fr00ller this still dont work :( i have this function function fulfill_order_by_id($order_id,$tracking_number){
and dont fulfill orders dont have delete items |
Have you try to remove company field from "tracking_info" array ? Accordly with official documentation https://shopify.dev/docs/api/admin-rest/2023-04/resources/fulfillment#post-fulfillments the company field it must exactly match one of the items in the list that Shopify provides . In your example it seems that it is not correct . |
yes but dont work if you have a delete item in the order you can't fullfit a order |
Use this way to update the fulfillment .Its works for me
` |
Hi! I have an app made in php and it no longer allows me to fulfill orders, this is giving me a 404 error.
this is what i have
i try to update everyting cause i create this app on 2020 i update the api to 2023-07 and i make this.
but its giving me this error Caught exception No action named save is defined for Fulfillment
please help
The text was updated successfully, but these errors were encountered: