You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, Shopify seems very inconsistent here. I assumed they were using a wrapping key everywhere but it seems to be an exception for this one.
@danizord are you making use of cancelOrder anywhere in our app? I don't think so.
In all cases it seems the best fix is indeed to remove the wrap key and adjust the service client for wrapping and unwrapping. Could you please do a PR ? :)
I do not any longer do any back-end work, sorry, so I will likely do not maintain it anymore. But feel free to submit a PR and I'll be happy to review and merge.
ServiceDescription for 'CancelOrder':
Since the root_key is set to 'order', the additional parameters passed to the cancelOrder method gets wrapped and end up looking like:
['order' => [ 'reason' => 'fraud' ]
Which does't comply with the API spec:
https://help.shopify.com/api/reference/order#cancel
I've been able to "fix" the issue by setting the root_key to NULL. This of course bypasses the unwrapping of the Shopify result as well.
What is the proper fix here?
Thanks
The text was updated successfully, but these errors were encountered: