#hc-billing-events

1 messages ยท Page 1 of 1 (latest)

slow trellisBOT
#

Hello! We'll be with you shortly. 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.

dusk flame
#

This is different question though

#

anyone ?

agile oasis
#

Hello! I think we have a new feature that would help with this - let me just find the right docs

dusk flame
#

you understood my question right?

agile oasis
#

Yeah, you want a webhook event that'll trigger when an invoice is past due, right?

dusk flame
#

yes

#

and also how to send that kind of invoice. (this is not invoice for subscription)

#

but just invoice which will be sent by our application (payment will be decided by how many times user used our feature in that month)

agile oasis
#

In terms of sending an Invoice - are you trying to do a charge_automatically invoice? a send_invoice one?

dusk flame
#

yes, how to send invoice?

#

I mean, create invoice and send in stripe (python)

#

for example, user 1 used our tool for $120 this month.
then at 1/31, we will need to send invoice to customer with stripe

#

for that $120

#

maybe create invoice

#

and then send invoice call

agile oasis
#

Yeah that's exactly what you'd want to do

dusk flame
#

ok. thanks

#

I'll check webhook side

#

invoice.overdue is what I'm looking for exactly

#

antoher question,

#

is there any webhook for subscription case?

#

ex; you made subscription at 1/21, you cancelled on 1/22
but user already paid for 1month so need to provide right permission until 2/21
any webhook I can recieve once cancelled subscription's cancellation period ended

agile oasis
#

You'd get a customer.subscription.deleted event when the subscription is fully cancelled and stops renewing

dusk flame
#

no, it's not about it

#

Please read my example again

#

subscription created 1/21 (billing period willbe 1/21 ~ 2/21)

#

cancelled on 1/22 ( got customer,subscription.deleted)

#

but I want to know if you have any webhook will be sent on 2/21 for cancelled subscription

#

like billind period is past due

#

that will be super useful webhook

agile oasis
#

No, you'd get the customer.subscription.deleted event on 2/21

#

Actually back up - how are you cancelling the Subscription?

#

I assume you're setting cancel_at_period_end: true , right?

dusk flame
#

no, cancel by user's action

#

let me try to explain again

#

subscription created on 1/21 and it's cancelled on 1/22 (not 2/21)

#

but even though subscription is cancelled, user paid for 1 month

#

so we need to give user right permission until 2/21 (1 month pay on 1/21 then permission willbe 1/21 ~ 2/21 should be valid)

#

so wanted to know any webhook you have so taht I can receive it if cancelled subscription's last payment period ended

agile oasis
#

Let's back up - there's multiple ways to cancel a Subscription in stripe. If you set cancel_at_period_end that schedules the subscription to be automatically cancelled at the end of the current period

#

Other ways of cancelling will cancel the Subscription immediately, and will optionally prorate back whatever time has been unused

dusk flame
#

not cancel_at_period_end

#

it's not

#

cancel_at_period_end is False

agile oasis
#

If you're not using that then there's no event that'll help you here

dusk flame
#

but user can cancel asap.

#

hmm, we have big webhook for it

#

so asked if anyway for it.

#

I think if stripe has this, it will be very useful

#

ok, thanks for helping me out for this.

#

๐Ÿ™‚

agile oasis
#

๐Ÿ‘

slow trellisBOT
#

hc-billing-events