#plim

1 messages ยท Page 1 of 1 (latest)

gritty deltaBOT
stone pine
#

Hello ๐Ÿ‘‹
Let me take a look

ivory violet
#

Thanks!

stone pine
#

Just to make sure I am on the same page, your sub does have a billing threshold?

ivory violet
#

For that particular customer, I actually want to set it to around 500. i actually tried set with 473 earlier, and it just incrememnted the quantity (tbh, it should have failed if set wasn't allowed for threshold billing). And I just found out that set doesn't work because it didn't set the quantity to 473, and instead did the increment anyway.

stone pine
ivory violet
#

I can't find it anymore, but I can recreate. give me a minute

stone pine
#

I think you'd need to pass the timestamp too

#

You're currently setting the quantity on current time
set should be used with a timestamp you're trying to correct

#

That's why it is incrementing

ivory violet
stone pine
#

Is it the same timestamp as the previous reported usage timestamp?

ivory violet
#

oh.... that's interesting

#

Thanks for the help! I think this should be enough to do what we need

stone pine
#

๐Ÿ‘

#

Happy to help ๐Ÿ™‚

ivory violet
#

Another question, if you don't mind. How do I actually filter the logs page?

For example, it clearly shows POST /v1/subscription_items/si_NOStJVTCdkV3vZ/usage_records right now:

#

But when I try to filter API Endpoint by the following, it doesn't work:

  • /v1/subscription_items/si_NOStJVTCdkV3vZ/usage_records
  • POST /v1/subscription_items/si_NOStJVTCdkV3vZ/usage_records

What should I actually put here?

stone pine
#

I think you'd need to specify the wildcard query param

as si_xxx is actually the resource ID

Try filtering by /v1/subscription_items/*/usage_records

ivory violet
#

That works now, thank you!!