#chokies_coupon-restrictions
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/1306679402834300938
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
@worldly trench What do you mean by "check if applicable"? What are you really trying to do?
chokies_coupon-restrictions
I have a stripe coupon code that i need to verify if its applicable to a certain price/product
{
"id": "jMT0WJUD",
"object": "coupon",
"amount_off": null,
"created": 1678037688,
"currency": null,
"duration": "repeating",
"duration_in_months": 3,
"livemode": false,
"max_redemptions": null,
"metadata": {},
"name": null,
"percent_off": 25.5,
"redeem_by": null,
"times_redeemed": 0,
"valid": true
}
sure but that's the same question. What does "applicable" mean?
its not returning the pricing that i associated it with
applicable meaning the coupon can be used for that product
Ah gotcha, you mean https://docs.stripe.com/api/coupons/object#coupon_object-applies_to-products?
the coupon has option to select which product you can use it with
Okay so it's that feature. It's not returned by default and you have to use our Expand feature: https://stripe.com/docs/expand. If you don't know what Expand is I recommend our video https://www.youtube.com/watch?v=m8Vj_CEWyQc which walks you through it in details
so i need to expand it with applies_to
yes