#hendr1x_api

1 messages ¡ Page 1 of 1 (latest)

hoary cedarBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1324378753757089863

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

sly pumice
#

hi! you'd write code to decide which one you want to subscribe the customer to, and then pass the ID price_xxx of the appropriate either monthly or yearly Price(that you created before and stored the IDs in your config/database) to the items field in the API call.

eternal kayak
#

ok. So can you please confirm the only way to control the price and interval is via your control panel/website?

sly pumice
eternal kayak
#

Ok. So if I wanted to create a new subscription via the API. I need to create a product+price, and then I could use that price_id in the subscription api.

sly pumice
#

yep. There's also price_data in the Subscription Create docs, for ad-hoc Prices (but you do need to create a Product upfront always)

eternal kayak
eternal kayak
#

Perfect. Thanks so much for your help