[WIP] [FIX] Fix URL generation for Fulfillment#635
[WIP] [FIX] Fix URL generation for Fulfillment#635iCodeTechnologies wants to merge 1 commit intoShopify:mainfrom
Conversation
Fix Fulfillment.py to generate the correct URL for API 2023-01. If no order_id supplied, URL should be /admin/api/<api_version>/fulfillments.py See issue Shopify#634
|
Hi @iCodeTechnologies, did you test it? because seems to me it consumes the same endpoint, but we need to consume this one. which will require changes in the request body I think. |
|
@MohamedAliHamza This PR solves an issue for me where the url generated by the library is incorrect (when no order_id is given): I run into this when migrating my code to the new fulfillment options, where the old ones are not working after 2023-04-01. Did some searing and found that this PR solves the issue I had. |
Hi @MohamedAliHamza , I tested the pull request with my application; it solves the issue I was having, which is that the Fulfillment POST URL was not correct Of course, other changes are required when moving to the latest API. This is a simplified extract of what my application is doing to send fulfillments back to Shopify; in the real system I compare the line_items against the orders in my system etc It should give you an idea of how you can do fulfillment with FulfillmentOrders. Cheers |
|
Definitely this is an ongoing issue - I am resorting to #634 (comment) but the latest version of the library doesn't really work with 2023-04 and onwards I would suspect for the fulfillments |
|
why is the python library from shopify so dead? |
WHY are these changes introduced?
Fix Fulfillment.py to generate the correct URL for API 2023-01.
If no order_id supplied, URL should be /admin/api/<api_version>/fulfillments.py
currently the library produces the URL
/admin/api/<api_version>/orders//fulfillments.py
See issue #634
WHAT is this pull request doing?
Modifying the code in Fulfillment that generates the URL so that it complies with the requirements for API version 2023-01
NOTE: The added code is based on code already in the library for other resource classes
Checklist