#arrowcircle
1 messages · Page 1 of 1 (latest)
Hello 👋
The usage record is created for a subscription item
https://stripe.com/docs/api/usage_records/create
You can report usage for specific subscription item by specifying the ID for each product
but how I can reference product?
You don't reference the product (prod_xxx) directly. Each subscription item in your subscription would be linked to a specific product. So when you create a record for a specific subscription item, it would mean you're reporting usage for that product.
thanks, so connetion is usage_record -> subscription_item -> product?
Correct
Technically, connetion is usage_record -> subscription_item -> price -> product
so for each subscription, I need to keep id of SI? or price as well?
You can just track subscription item ID and retrieve price if needed