Problem with recurring_application_charges.json :You are being redirected

Solved
Shopyy
New Member
2 1 0

Hi! My name is Mac. 


When our server make a post request ,it got error like this:

<html><body>You are being <a href="https://chicdenims.myshopify.com/admin/api/2021-01/recurring_application_charges.json">redirected</a...>

here is post info

post url:
https://www.chicdenims.com/admin/api/2021-01/recurring_application_charges.json
Post data
{"recurring_application_charge":{"name":"\u57fa\u7840\u7248","price":4.99,"return_url":"https:\/\/mgr.us01-apps.ymcart.com\/mgr.php?m=openadscontent&c=index&a=payback","trial_days":3,"trial_ends_on":"2021-01-11T09:53:29+08:00"}}|
Header:
["X-Shopify-Access-Token:shpat_1645933df9fcfcdd6cxxxxxxxxxxx","Content-Type: application\/json"]

The test shop is ok ,but the error above happened  on the official shop

微信图片_20210108113304.png

Any Help?

0 Likes
Shopyy
New Member
2 1 0

This is an accepted solution.

never mind,post url should use shopify domain,not custom domain!!

0 Likes