-
Notifications
You must be signed in to change notification settings - Fork 211
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
Version 1.1.23 - change to 2202-07 version breaks fulfillments #264
Comments
Does your app have scope permissions for: |
I'm having the same issue and am not following you on your fix. Can you clue me in a little? Thanks. Update, I do have scope permissions as noted above. |
No, I only request: write_fulfillments (and a bunch of others, but not fulfillments) Fairly confident that I would receive a 403 if the scope was invalid, not a 404 that returned now. The SDK is trying to call a route that doesn't exists in api version 2022-07. IMHO - this is a breaking change and should have been released as minor version release. @JoeKuhns I updated composer.json to fix the library to 1.1.22, the last one that uses api version 2022-01
|
@jeroendelau Excellent thanks! how did I not know composer would downgrade? Works perfectly. |
@jeroendelau $config = array(
'ShopUrl' => 'yourshop.myshopify.com',
'AccessToken' => '***ACCESS-TOKEN-FOR-THIRD-PARTY-APP***',
'ApiVersion' => '2022-07',
); This will give you better control over the API Versions. Anyhow you will need to keep updating the API Version, because versions will reach EOL after some time. |
@tareqtms, many thanks! I'll start work somewhere next week to help fix the fulfillment for the 2022-07 version. |
Is there any news for the fix on the fulfillment for 2022-07 version? Is someone working on it coming with a solution in few time? |
A couple pieces of news from Shopify. Apps will have until 2023-07 release to migrate to the new version. |
In version 1.1.23 the Shopify version was updated from 2022-01 to 2022-07. There are some breaking changes between these versions.
This now results in 404 NOT found:
$client->Order($order->Order_ID)->Fulfillment->post($body);
Instead now you will have to send to a different location, with an entirely different payload.
admin/api/2022-07/fulfillments.json
I believe what would be needed is
$client->Fulfillments
And remove
$client->Order($order->Order_ID)->Fulfillment
For others with the same problem, I have fixed my version to 1.1.22
The text was updated successfully, but these errors were encountered: