#arctic-product-prices

1 messages ยท Page 1 of 1 (latest)

safe wadiBOT
earnest arch
#

Hi ๐Ÿ‘‹
So you have the Product ID and want to retrieve the price?

pulsar dove
#

yes

#

exactly

earnest arch
pulsar dove
#

ohh thank you

#

love your guys support

#

so fast and accurate

#

hope you have a great day

earnest arch
#

Sure thing, it's non-obvious so I get it. But since we allow multiple prices for a single product the relationship goes the other way (price has product ID)

#

Happy to help ๐Ÿ™‚

pulsar dove
#

so im building an admin panel to manage our products, should i make a call to list all prices for every product or will that get me rate limited?

earnest arch
#

Depends on how many products you have. Also whether you can cache the results or not.

pulsar dove
#

since there will be only 1 price per product

earnest arch
#

FWIW I have a test integration running that uses webhook events to keep all my DB data in sync with Stripe. That's been a pretty useful way to reduce the API calls.

half flower
#

arctic-product-prices

pulsar dove
#

im building that right now

earnest arch
#

I use an async queue system that handles the DB actions to ensure I send a success message back immediately.

pulsar dove
#

what stack are you using? im on nextjs, using prisma + mysql for my db

#

i am build an UI right now to add products and prices that adds them to stripe and my database

#

so i can retrieve the data from my own database

earnest arch
#

I'm going off-shift but I've been using Python & Celery for an async task queue.
Whichever stack you choose there should be some sort of queue option. Best of luck ๐Ÿ‘‹