Docs
url, not, valid, parameters, hosted, pages
“Sorry,the URL or the some of the parameters are not valid” error with Hosted Pages API
33532294
2023-01-30T13:07:04Z
2023-03-02T13:19:15Z
648
0
0
257728
“Sorry,the URL or the some of the parameters are not valid” error with Hosted Pages API
Troubleshooting “Sorry, the URL or some of the parameters are not valid” error with Hosted Pages API
Solution
Below are the possible reasons for this error -
You need to ensure that the plan's item price ID is passed before that of the addon. Sample call here -
curl –location –request POST '' \
–header 'Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxx==' \
–header 'Content-Type: application/x-www-form-urlencoded' \
–data-urlencode 'subscription[id]=6olPHTPMkMAY30w' \
–data-urlencode 'subscription_items[item_price_id][0]=Basic-Test-USD-Monthly' \
–data-urlencode 'subscription_items[item_price_id][1]=cbdemo_analytics-additional-users-USD-Monthly'
This also applies when you are creating a [Hosted page URL.
](https://support.chargebee.com/support/solutions/articles/241792-how-to-generate-the-hosted-page-url-)
If you are passing item price IDs of more than 1 plan that is you are trying to check out 2 plans at the same time using the API.
If the syntax for the API call is wrong. We recommend following the syntax in the sample code on our Hosted Page API docs for your reference. You can contact support in case you need more assistance on this.
Note: Every plan details page in PC 2.0 has a dynamic payment URL on each price point page, making it incredibly simple for you to share a payment link. Navigate from the Product Catalog > Plans index page > Plan details page > Customer-Facing Info > Get Payment Link. Click here for more details.
%%% cbext
%%%