#chokies_coupon-restrictions

1 messages ¡ Page 1 of 1 (latest)

oblique lavaBOT
#

👋 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.

sly kiln
#

@worldly trench What do you mean by "check if applicable"? What are you really trying to do?

#

chokies_coupon-restrictions

worldly trench
#

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
}

sly kiln
#

sure but that's the same question. What does "applicable" mean?

worldly trench
#

its not returning the pricing that i associated it with

#

applicable meaning the coupon can be used for that product

sly kiln
worldly trench
#

the coupon has option to select which product you can use it with

sly kiln
worldly trench
#

so i need to expand it with applies_to

sly kiln
#

yes

worldly trench
#

got it working

#

thank you