#ilamathi

1 messages ยท Page 1 of 1 (latest)

stark spokeBOT
smoky goblet
rich tapir
#

oh ok.. so nest object i can mention with dot.. Example items[0][price] ?

smoky goblet
rich tapir
#

ok got it thanks...

smoky goblet
#

You're welcome ๐Ÿ™‚

rich tapir
#

This webhook event "invoice.upcoming" is not applicable for daily plan right?

polar nimbus
#

AFAIK it's not but I'm double checking for you

rich tapir
#

sure .. thanks

polar nimbus
#

so yes it doesn't apply for daily plans

rich tapir
#

In this event data, we will get the upcoming invoice details.. in addition to that, is there any details to check the amount and tax are same as previous/current one or the current invoice details ?

polar nimbus
#

I'm not really following, could you please elaborate?

rich tapir
#

in the "invoice.upcoming" webhook event data, i could see the details on the upcoming invoice.. Is there is any specific details about previous invoice or any flag to identify this upcoming invoice amount same as previous or it got differ like those details?

polar nimbus
#

you'd have to retrieve the last invoice and compare it to the upcoming if you need to see whether there is any differences

rich tapir
#

in this "invoice.upcoming" invoice event i could see subscriptionIID and there is no last invoice id ? Do we get that?.

polar nimbus
#

you need to retrieve the subscription and expand on last_invoice

#

sorry it's latest_invoice

rich tapir
#

In stripe price update API, i could see there is a option like currency_options.<currency>.unit_amount, is that just to add new currency to the existing price? Or using this can we alter the existing currency's unit_amount?

bleak lotus
#

it's for a new feature where Prices can have multiple currencies; so to answer your question it's the former.

rich tapir
#

sorry i didn't quite clear on ur answer.. pls ellaborate more

#

as far i know we can not update the unit_amount on existing priceID.. but i could see this option currency_options.<currency>.unit_amount in the update API.. so only i got confused and asking this question

bleak lotus
#

correct, you can't change the unit_amount on a Price. you can use currency_options to set unit amounts for other currencies for that price