#arpu_api

1 messages ยท Page 1 of 1 (latest)

little vergeBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1420543106192773260

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

forest crater
#

this is our price for the product for usage_millisenconds but what we need would ADD usage_interactions meter

chrome merlin
#

One product can have multiple Price objects. Each Price object can have only one meter

limber jewel
#

if you are planning to use stripe invoices, it is better to use one meter per product as there is no way to display the descreption of the price

forest crater
#

hm ok than the user needs to subscribe to two products ( with our api)

#

need to look if this is possible do you know?

#

we cannot use only one meter

#

oh @chrome merlin this works ?

chrome merlin
#

One subscription can have multiple prices from different products. The usage submission is based on the meters.

#

So yes, it will work for prices on different meters from different products

forest crater
#

i created this

#

two prices ( becasue it shows default i was thinking only one is used)

chrome merlin
#

You can use both in a single subscription

forest crater
#

perfect!

#

nice

#

Thank you both!

chrome merlin
#

No problem! Happy to help ๐Ÿ˜„

forest crater
#

i use rails/ruby and see what i do now is

                                                     customer: customer.id,
                                                     items: [{
                                                       price: price_id
                                                     }],
                                                     payment_behavior: 'default_incomplete',
                                                     payment_settings: {
                                                       save_default_payment_method: 'on_subscription', payment_method_types: ['card']
                                                     },
                                                     expand: ['latest_invoice']

                                                   })````
chrome merlin
#

This looks right to me.

forest crater
#

yes but how can i add the multible price ids ?

#

items: [{price: price_id}, {price: price_id2}], this should work

chrome merlin
#

Yes! Items is an array, so you can add multiple prices to it