Hello
I'm trying to create a hosted page for a subscription. Everything works fine unless I include a redirect_url. I've tried passing the URL as plain text and URL encoded and get different errors. Examples below.
======== Request 1: (redirect_url URL Encoded) ========
curl '
https://subscriptions.zoho.com/api/v1/hostedpages/newsubscription' -H 'X-com-zoho-subscriptions-organizationid: 11111111111' -H 'Authorization: Zoho-authtoken xxxxxxxxxxxxxxxxxxx' -d {"customer_id":"yyyyyyyyyyyyyyy","plan":{"plan_code":"ECT_VID_MEDB-MO","reference_id":"ECT_VID_MEDB-MO"},"redirect_url":"
http%3A%2F%2Fwww.powermyanalytics.com%2F"}
Response:
[code] => 2 [message] => Invalid value passed for redirect_url
========= Request 2: (redirect_url Not URL Encoded) ========
Response:
[code] => 1038 [message] => JSON is not well formed
========= Request 3: (redirect_url Not URL Encoded with escaped slashes) ========
curl '
https://subscriptions.zoho.com/api/v1/hostedpages/newsubscription' -H 'X-com-zoho-subscriptions-organizationid: 11111111' -H 'Authorization: Zoho-authtoken xxxxxxxxxxxxxxxx' -d {"customer_id":"yyyyyyyyyyyyyyyyyyyyy","plan":{"plan_code":"ECT_VID_MEDB-MO","reference_id":"ECT_VID_MEDB-MO"},"redirect_url":"
http:\\/\\/www.powermyanalytics.com\\/"}
Response:
[code] => 1038 [message] => JSON is not well formed
Please advise
Thanks.