You receive the error "Sorry, the URL or some of the parameters are not valid" when using the Hosted Pages API.
Check the following common causes:
For APIs such as "Checkout existing for items", the plan's item price ID must be passed before the add-on's. Example:
subscription_items[item_price_id][0]=Basic-Test-USD-Monthly
subscription_items[item_price_id][1]=cbdemo_analytics-additional-users-USD-Monthly
The same order applies when creating a Hosted page URL.
The API does not support checking out more than one plan at a time. Ensure you are not passing item price IDs for multiple plans.
Verify the request matches the syntax in the Hosted Page API docs. If the error persists, contact support.
In Product Catalog 2.0, each plan's price point page has a dynamic payment URL. Go to Product Catalog > Plans > Plan details > Customer-Facing Info > Get Payment Link. See how to create an item-specific checkout URL.
Was this article helpful?