#yuichi-hamamoto_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/1382985338686799933
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! gimme a while to take a look
hmmm, unfortunately no, there's no way to pass in the promo code, you need to pass in the ID. What you will want to do instead, is to save the promo code and it's corresponding ID to your own database so that you can retrieve / apply it as required.
Wait sorry I think I found something
I think I can technically seach by code with list
ah yeah! good find! sorry for missing out on that
I'd still suggest considering mapping it in your own database though cause making these requests do contribute to your rate limits, and it's not really sustainable in the long run if you get more customers
But then if I want to use console to create promo code, I need to manually map each time?
What do you mean by console? Do you mean the Stripe CLI?
yup!