#j_r_e

1 messages ยท Page 1 of 1 (latest)

tough mossBOT
open turret
#

Hi there!

#

You mean you have one subscription with multiple products?

tough mossBOT
keen sparrow
#

yes that's right

hollow tartan
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

#

the usage records are created on subscription item basis

keen sparrow
#

yes but how do I mention the product id ?

hollow tartan
#

you don't mention the product ID, you mention the subscription item ID which is by itself tied to a price

keen sparrow
#

ok, this what is not clear for me, I have subscription_item per subscription

#

isn't it ?

hollow tartan
#

yes so this is the relationship
1 Subscription -> many Subscription Items
1 Subscription Item -> 1 price
1 price -> 1 product

keen sparrow
#

ok, I thought I had only one subscription_item per subscription, but when I create a subscription I'll obtain as many subscription_item as products subscribed

hollow tartan
#

which you can then use to record the usage

keen sparrow
#

ok perfect thanks