Buy a Commercial API plan
start_checkoutStart buying a Commercial API plan for the user. Returns a Stripe checkout_url where the user pays by card (HobbyCardIndex never sees the card) and a status_url that returns the API key once, after payment. Only call this after the user has picked a plan from list_plans and agreed to the terms (accept_terms: true). Use the user's own email: the receipt and the account sign-in go there. Works without an API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | A plan id from list_plans: a Commercial API size ("lite", "growth_lite", "growth") or an app plan ("pro", "dealer", "enterprise"), monthly. | |
| Yes | The buyer's email address. | ||
| company | No | Optional: the company name for the receipt. | |
| with_addon | No | Optional: add the pop reports + cert lookups add-on. | |
| accept_terms | Yes | true only if the user agreed to the HobbyCardIndex Terms of Service (https://hobbycardindex.com/terms/), including section 8 for a Commercial API plan. | |
| with_price_files | No | Optional, growth_lite or growth only: add the daily price files ($450 a month), a daily download of current prices for the whole catalogue. Use it when the user wants to keep their own copy of the prices, instead of paging search. |