#cdubs44

1 messages · Page 1 of 1 (latest)

sudden lotusBOT
quaint plaza
#

Hi there, how can I help?

velvet otter
#

@quaint plaza just updated my question!

#

Really I am just trying to get the price the user paid, or is going to pay for the subscription, but I believe since the price is a volume price, it's coming up as null

quaint plaza
#

Can you share with me the subscription ID or invoice ID?

velvet otter
#

It's in TEST now and the sub ID is sub_1NSXa3AKsT0b57E7ZHLuyYtv

#

maybe thinking I'll have to go through the invoice ID?

quaint plaza
#

Can you share with me the ID of request that you created to retrieve the pricing?

velvet otter
#

well can I just do this?

var service = new SubscriptionService();
var options = new SubscriptionGetOptions();
            options.AddExpand("items.data.price.product");
options.AddExpand("latest_invoice");

return Ok(service.Get("sub_1NSXa3AKsT0b57E7ZHLuyYtv")); ```
quaint plaza
velvet otter
#

All good. I found in by expanding invoice

#

@quaint plaza I do however have another question

quaint plaza
#

Sure how can I help.

velvet otter
#

So I have this product with this pricing. It's volume based. Price ID: price_1NSJZhAKsT0b57E7acRGzatH

#

Under the same customer I bought the subscription (it's a monthly subscription) 3 times. But each one was seperated. So 3 seperate times

#

however its still charging me the 29.99 price

#

Like here you can see I have that subscription, 3 different times

#

yet its still charging me the 29.99

#

since I have 3, shouldn't all 3 be changed to the 18.22 price?

quaint plaza
#

What's the subscription ID?

velvet otter
#

there are 3 subscription ids since all 3 were placed separately

#

but under the same customer

quaint plaza
#

So you create 3 subscription, each has one price_1NSJZhAKsT0b57E7acRGzatH

or 1 subscription with 3x price_1NSJZhAKsT0b57E7acRGzatH ?

velvet otter
#

3 subscription, each has one price_1NSJZhAKsT0b57E7acRGzatH

quaint plaza
#

OK. you should create 1 subscription with 3 x price_1NSJZhAKsT0b57E7acRGzatH instead.

velvet otter
#

yeah, sadly my application can't work that way

#

however it's under one customer tho?

#

it should still work if it's all under one customer

quaint plaza
#

No it doesn't work this way

velvet otter
#

last stripe guy told me it would

quaint plaza
#

No it must be a misunderstanding. This is not how Stripe subscription works.

velvet otter
#

well is there a way I can do that?

#

Where if there are X amount of active subscriptions, it changes the price for all the active subscriptions

quaint plaza
#

Can you be more specific on what you want to achieve?

velvet otter
#

Say 1-25 subscriptions are $20 each, but when the 26th becomes active, all 26 subscriptions drop down to $18 each

#

but if the number of active subscriptions goes back down to 25 or less, they all go back up to $20 each

quaint plaza
#

I'm afraid this is not something Stripe can support out-of-the-box. You need to write code to monitor the number of active subscriptions that a customer has, and upgrade / downgrade the subscription to the appropriate price accordingly.