#dragonlord_api

1 messages · Page 1 of 1 (latest)

worldly ferryBOT
#

đź‘‹ 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/1309250008511680635

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

warped axleBOT
tender badge
#

Hi đź‘‹ I'm not spotting any Event types related to Credit Grant objects. Poking around to see if I can find any suggestions for this.

shell peak
#

thank you as I would like to charge when credits get below a certain amount

tender badge
#

I don't see an Event specific to that, but I do see this endpoint for getting a credit summary for a Customer:
https://docs.stripe.com/api/billing/credit-balance-summary/retrieve

My thinking is that you can listen to invoice.finalized Events, and then see if the Customer's credit values have dropped below your threshold.

#

Can you see if that value updates with your credit grants and Invoices consuming them? If so, I think you'd be able to listen to customer.updated Events to be notified about that value changing.

shell peak
#

perfect let me try

#

and let you know

#

I have this issue too because of charging credits

You can’t run a simulation on this subscription because the customer has too many records. how do I fix this

#

is this related to payment records

tender badge
#

Um, I'm not too sure offhand, that's not an error I've seen before. I'll need to look around for that.

shell peak
#

this is when I am trying to use the UI to run the subscription simulation in sandbox mode

tender badge
#

I think that is thrown if there are too many objects that the test clock would need to drive on the Customer. I'm not exactly sure what those limits are, but suspect objects like Subscriptions (maybe Invoices and some others) would be counted towards those limits.

#

Just found these limitations mentioned in our Test Clocks guide:

Customer ineligible for simulation
The Run simulation button might be disabled if the subscription’s customer:

Is attached to more than three subscriptions, including scheduled subscriptions
Has a complex profile, with many quotes, invoices or other related objects
https://docs.stripe.com/billing/testing/test-clocks/simulate-subscriptions#:~:text=Customer ineligible for,other related objects

Learn how to simulate subscriptions in a sandbox or test mode.

shell peak
#

got it yea deleted user and just recreated it to make my life simple lol

tender badge
#

Hehe, that works!

shell peak
#

customer doesn't get updated when you add credits to their account

#

Is their an event for when meters get used in stripe

tender badge
shell peak
#

Yea I see is their a plan to release more events in events v2 for meters?