#hero-invoice-usagerecord

1 messages · Page 1 of 1 (latest)

raven jacinthBOT
silver cliff
#

Hello

hushed quail
#

Morning

silver cliff
raven jacinthBOT
hushed quail
#

So if I create a usage record with timestamp x and then create another usage record with the same timestamp y then x is negated?

silver cliff
hushed quail
#

🤦‍♂️

#

Duh

#

Thanks guys

#

You ROCK!

silver cliff
#

Happy to help 🙂

small fossil
#

hero-invoice-usagerecord

hushed quail
#

What happens if there are 2 usage records for the same subscription with the same timestamp (since we work async) ?

#

Lets say an order comes through and creates 2 usage records at the same time. Then I want to void one of them so I send a usage record with the set action and pass the timestamp, does it void both ?

small fossil
#

the default is increment so they add up to each other unless you pass action: 'set'

#

easiest is to try in Test mode on your own you'd get a definitive answer quickly