#vinny-subscription-help

1 messages · Page 1 of 1 (latest)

thick surgeBOT
sharp shale
#

vinny-subscription-help

#

Hey @slender isle what do you need help with exactly?

slender isle
#

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":[]}

spark arrow
#

Hi there 👋 taking over for @sharp shale

Are you running into an error? Is it not working as expected?

slender isle
#

Prices require an unit_amount or unit_amount_decimal parameter to be set.

#

In this case, how can I add a Monthly Plan item

spark arrow
#

Are you trying to do this via the API or the Dashboard?

slender isle
#

API

spark arrow
#

Based on the code you included above, you should already be doing this, since you have interval: month and interval_count: 1

slender isle
#

Yes, I don't know how to add this product to the subscription

#

here -> prod_LnptcVksMC9tzD

#

Monthly Plan

spark arrow
#

Are you wanting to add the product to a new subscription? Or update an existing subscription?

slender isle
#

new subscription