#romanten-usagerecords

1 messages · Page 1 of 1 (latest)

night folio
#

Hi there, how can I help?

analog grove
#

Why does Stripe return the same UsageRecord id for two different but almost simultaneous requests?

night folio
analog grove
#

Sorry, i need some time for it.

#

https://dashboard.stripe.com/logs/req_YPijs0geeeKDlR - one request, and second - https://dashboard.stripe.com/logs/req_itjH6xQGGzg6J2 - timestamp is the same, but quantity and Idempotency are different

#

As a result, the quantity from a single request is not included in the total quantity to the customer

night folio
#

That's because the timestamps are the same When there is more than one usage record with the same timestamp, Stripe adds the quantity values together

analog grove
#

But i dont see this in usage records list - here is only 120 amount, but not exists 74 from second request

#

or, stop

#

Its all right

night folio
#

So you've sent two requests with the same timestamp, one with quantity 46 and the other 74, so total 120.

analog grove
#

In first request was 46 amount and in second - 74 (74+46=120)

#

Yes, thanks so match!

night folio
#

No problem!