#slobodan.loncar

1 messages · Page 1 of 1 (latest)

last baneBOT
radiant quest
#

Hi 👋 did you try using set as the action for the Usage Records that you create? I think that sounds like it would align with what you're describing.
https://stripe.com/docs/api/usage_records/create#usage_record_create-action
That needs to be used in conjunction with setting the recurring.aggregate_usage to a supported value when creating your Price object:
https://stripe.com/docs/api/prices/create#create_price-recurring-aggregate_usage

https://stripe.com/docs/billing/subscriptions/usage-based/recording-usage#:~:text=A set value for the action parameter supports the case where you aggregate usage yourself%2C and configure the price with aggregate_usage%3Dlast_during_period or aggregate_usage%3Dlast_ever.

bold parrot
#

Thank you Toby. I have used 'set' but it did not work. So will try recurring.aggregate_usage using 'last_ever'