#cyclops_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1225501003835642046
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Hello
Taking a look
Sure
can't we pass the code?
No not to that API. See: https://docs.stripe.com/api/subscriptions/create#create_subscription-discounts-promotion_code
It requires the ID
If necessary you can list by code to get the ID: https://docs.stripe.com/api/promotion_codes/list#list_promotion_code-code
Actually, I have that ID but as I was using same thing for coupon code I thought it would work
Hmm not sure what you mean... passing a coupon requires passing the Coupon's ID as well
What if the ID is created by me?
Ah you are saying that for coupon you are passing your own ID. I see what you mean
Yeah Promo codes don't work the same way
You don't specify the ID for a promo code since the idea is the ID is internal facing and the code is something you provide to customers
I see
Well, thanks for the help, I have change the code according to your guidance it's working fine ๐
Glad to hear it