We are developers helping multiple clients to integrate with POST /refunds/calculate endpoint.
For some users (not all users getting this problem), we are getting the following error when POST https://:custom_domain/admin/api/2019-04/orders/:order_id/refunds/calculate.json no matter we provide a correct request payload or not.
Would you mind sharing an X-Request-Id response header after replicating again? That will help me see the event in our logs, and I’ll be able to take a closer look at your specific case.
Referencing my logs, it looks like you’re actually making a GET request. Is this intended? As you probably know, it’s supposed to be a POST request. It is a bit confusing because your screen shot is showing me a POST request, which is also how you describe it. Maybe try a different client if all seems as it should be on your end?
We are petty sure that we are doing POST request. But we just do a POST request again and provide a new request ID. Please help to check. Thanks.
As it is public forum, we think it is not a good idea to provide the myshopify custom domain & order number here. If they are useful for investigation, please provide us a way to send direct message to you~ Thanks.
In that case, it could be actually. I’ll make sure to report this, but I can say for sure that we don’t intend for you to be posting to the custom domain. Maybe we should affix this into documentation somewhere if we’re not going to explicitly support it (or maybe we’ve changed our tune, and we’ll fix this, and move forward supporting requests to custom domains).
Cheers and thanks for the info.
For now, assume that using custom domains is not supported.