Skip to content
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

Fullfillments for 2022-07 version #268

Open
damix1984 opened this issue Oct 6, 2022 · 8 comments
Open

Fullfillments for 2022-07 version #268

damix1984 opened this issue Oct 6, 2022 · 8 comments

Comments

@damix1984
Copy link

in version 2022-07 the orders/$id/fulfillments.json API is no more present.

We need to use the $client->Fulfillments making Fulfillment not a Child resource for orders but a Resource itself, to be able to call fulfillments.json endpoint.

This is related to #264

@lpiccini21
Copy link

Hi,
I have the same issue in my projects.
I need to use API 2022-07 to manage Shopify Markets and now the fulfillment of order stop to work.
Thanks for the support.

@fzoccara
Copy link

fzoccara commented Oct 6, 2022

Hi there,
how come the fullfillment api are gone with out a backward compatibility? they are precious to me too..
Please put them back in version 2022-07 and in the following versions.

Best.
Francesco.

@nVuln
Copy link
Contributor

nVuln commented Oct 6, 2022

Multiple endpoints from the Fulfillment resource have been removed as of the 2022-07 API version. Use the FulfillmentOrder resource instead. For more information about migrating to FulfillmentOrder, refer to the Fulfillment orders migration guide.

@lpiccini21 you should migrate to FulfillmentOrder instead of Order

Hi there, how come the fullfillment api are gone with out a backward compatibility? they are precious to me too.. Please put them back in version 2022-07 and in the following versions.

Best. Francesco.

@fzoccara Shopify totally removed it in version 2022-07, if you still want to use that API, you can use a self-defined API Version in the $config array and switch back to older version. Like this

$config = array(
    'ShopUrl' => 'yourshop.myshopify.com',
    'AccessToken' => '***ACCESS-TOKEN-FOR-THIRD-PARTY-APP***',
    'ApiVersion' => '2022-04',
);

@damix1984
Copy link
Author

@nVuln Fulfillment resources are still available, they are not removed. Only the Order/Fulfillment resources are no more available:

https://shopify.dev/api/admin-rest/2022-10/resources/fulfillment

POST /admin/api/2022-10/fulfillments.json
POST /admin/api/2022-10/fulfillments/1069019871/update_tracking.json

and so on...

@nVuln
Copy link
Contributor

nVuln commented Oct 7, 2022

@damix1984 yup, I mean they removed order->fulfillment api, but if you still want to use it, just re-defined api version to 2022-07, this is temporarily until you totally migrate your code to their new api version

@jeroendelau
Copy link
Contributor

I've done some work towards this goal, although I'm not sure this covers all scenarios.

#278

@tonytoms
Copy link

@damix1984 :
Strangely, i got the below response from Shopify

Another solution that you could consider is to use the REST Admin API, which provides more granular control over the fulfillment process. You can use the POST /admin/api/2022-01/orders/#{id}/fulfillments.json endpoint to update the fulfillment

Does that mean admin/api/2021-01/orders/$id/fulfillments.json is not the one that is getting deprecated?

@damix1984
Copy link
Author

damix1984 commented Dec 19, 2022

@damix1984 : Strangely, i got the below response from Shopify

Another solution that you could consider is to use the REST Admin API, which provides more granular control over the fulfillment process. You can use the POST /admin/api/2022-01/orders/#{id}/fulfillments.json endpoint to update the fulfillment

Does that mean admin/api/2021-01/orders/$id/fulfillments.json is not the one that is getting deprecated?

@tonytoms It is deprecated and removed since 2022-07 version, so it still works in 2022-01, but no more since 2022-07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants