I'm currently facing an issue while trying to update order metafields using the Shopify API. I'm receiving an error with response code 406 and the message "Failed to update order metafield." I've followed the Shopify documentation and various online resources, but I haven't been able to resolve this issue.
've verified that the API credentials, endpoint URL, and request data are correct. However, I'm still encountering the 406 error. I suspect it might be related to the "Accept" headers being sent in the request.
Can anyone help me understand what could be causing this error and suggest a possible solution? Any insights or suggestions would be greatly appreciated.