#.dotdev

1 messages · Page 1 of 1 (latest)

autumn pilotBOT
mental wadi
#

Hi there, can you tell me the problem that you want to solves with Producsts/Prices API?

toxic yoke
#

hi basically, im trying to use products api with one or more prices , for instance I got a plan which has 2 prices , one more that has 3 prices, so Im calling prices because I would like to show them in front end grouped plans by prices (products are plans for me) each one with their respectives prices . I find that there are two endpoints one for products and one more for prices but I need data of products like name, description and image. and obiously prices of each product. so what is the best way to handle this? im using expand:[data.product] when i use product endpoint but I dont know if there is a better way to do it. thanks

mental wadi
#

OK, do you have a more specific examples that I can use in this discussion? for example, you can tell me the prouduct name, amount and the recurring interval that you want to create

toxic yoke
#

yes, Plan 1 has two prices 10 usd per week and 9 usd per 2 weeks , Plan 2 has 12 usd per week and 11 usd per 2 week and 10 usd per month

mental wadi
#

OK, then you just create two prodcuts, one for 2 prices and the other one for 3 prices, respectively.