#ponny_api

1 messages ¡ Page 1 of 1 (latest)

cosmic trellisBOT
#

👋 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/1359311124285100203

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

bright carbon
#

The meaning of 'Discount' has changed over the years, so what exactly are you trying to do?

cosmic trellisBOT
light wasp
#

I'm trying to get the discount in a different way

#

There doesn't seem to be any way to get it via the gem now

#

See my latest comment on the issue for more details

latent quarry
#

Okie I see the recommendation on the Github issues using expand, have you tried that?

#

The best approach is to use Expansion in our API which is documented here and in this video. So when you retrieve the Subscription you can pass expand: ['discounts'] and you will get the full Discount(s) objects in that discounts array instead of just the id(s).