#pedro-lara_api

1 messages ¡ Page 1 of 1 (latest)

tulip heathBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1256338891473158154

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

radiant carbon
#

Is that time range < 24 hours ago

#

but it has this limitation: You can only cancel events that have been sent to Stripe within the last 24 hours.

wet cosmos
#

i need to cancel an event from three days ago

radiant carbon
#

Yeah you can't. You could create negative invoice items for the customer to credit them for that incorrectly reported usage though, so they're not charged for it in the next invoice

#

Those invoice items should be automatically pulled into the next subscription invoice

wet cosmos
#

so if a have a scheduled 1000$ bill and i create a negative 1000$ dollar invoice the user will be charged 0?

radiant carbon
#

invoice item not invoice

#

but yeah

wet cosmos
#

the invoice must recieve a price, can i create those with the api ?

radiant carbon
#

nope you can pass an amount

#

see the link i sent you

#

i linked the amount param

wet cosmos
#

thank you, you happen to know any particular reason why events cannot be cancelled 24 hours after they are created?

radiant carbon
#

I do not unfortunately