#vinny-subscription-help
1 messages · Page 1 of 1 (latest)
I'm trying to add a product with flat type, when creating a subscription, below is an example:
{"customer":"cus_MrjXtRz8dS5jsp","currency":"usd","items":[[{"price_data":{"currency":"usd","product":"prod_LnptcVksMC9tzD","recurring":{"interval":"month","interval_count":1}}}],[{"price_data":{"currency":"usd","product":"prod_LnptBHIxHJ8paC","recurring":{"interval":"month","interval_count":1}}}]],"metadata":[],"cancel_at_period_end":false,"collection_method":"charge_automatically","default_tax_rates":[]}
Hi there 👋 taking over for @sharp shale
Are you running into an error? Is it not working as expected?
Prices require an unit_amount or unit_amount_decimal parameter to be set.
In this case, how can I add a Monthly Plan item
Are you trying to do this via the API or the Dashboard?
Based on the code you included above, you should already be doing this, since you have interval: month and interval_count: 1
Yes, I don't know how to add this product to the subscription
here -> prod_LnptcVksMC9tzD
Monthly Plan
Are you wanting to add the product to a new subscription? Or update an existing subscription?
new subscription