#stephensp_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1358777772205408296
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
have you considered moving to https://docs.stripe.com/billing/subscriptions/usage-based-legacy/migration-guide
happy to look into that! is there any way to do this via the legacy usage records while we come to terms to the billing meters as we would have alot of products to update
are you using increment or set as the action? https://docs.stripe.com/api/usage_records/create?api-version=2024-06-20#usage_record_create-action
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
oh sorry it's set I missed that in your initial code
ahh yes, no problem!
you don't care then whether you have a previous record or not because you're overriding it
correct
the only reason we were looking to check the current latest record is because our usage is checked daily and so if someone uses more or less of the product we want to change the record but if its equal we didnt want the usage records showing a record for everyday with the same value as it is unnecessary