#obo - prices

1 messages · Page 1 of 1 (latest)

dapper orbit
undone pawn
#

@dapper orbit I was looking at this, but we could potentially have hundreds of prices for a singular product

dapper orbit
#

OK

#

Does that cause a problem for you?

#

You can also use limit=1 if you only want to check for existence

undone pawn
#

ahh sorry

#

I think I confused you

#

when I say price I mean like the actual price in cents

#

not the "price_id"

#

so like, "hey stripe is there a price with the cost of $0.05 per unit for this product"

dapper orbit
#

You mean, you want to search to see if there exists a Price object which has a specific recurring amount associated with it?

undone pawn
#

correct

dapper orbit
#

Are you doing something like "custom" pricing and trying to re-use prices?

undone pawn
#

yes that's exactly correct

#

we'll have our enterprise team making custom deals

#

and the engineering team wants to build them a tool to easily create new subscriptions with those item costs

dapper orbit
#

Gotcha, so, not directly, no

#

Two options for you:

#

1/ Cache prices keyed by price in your system, so you can pull it up when it already exists

#

3/ Bonus option: don't worry about it and just create the custom price each time. It's fine to have many prices.

undone pawn
#

got it. Thanks for the info

dapper orbit
#

NP!