#Sen-Subscription

1 messages · Page 1 of 1 (latest)

civic burrow
#

Cancel Subscription API will cancel immediately

cunning stone
#

But if i want to cancel period end then?

civic burrow
#

Update Subscription API with cancel_at_period_end will cancel at the next billing anchor

#

cancel_at_period_end

Boolean indicating whether this subscription should cancel at the end of the current period

cunning stone
#

So it means two APIs are used.
Like cancel immediately then cancel API,
Or period end then update API

Am i right?

civic burrow
#

yes

cunning stone
#

Another question is if I upgrade subscription using update API then how the money will deduct from the account?

#

I mean automatically money deducted from the bank account or only invoice create?

civic burrow
#

It will be prorated based on how you are updating Subscription. It will create invoices if needed, not going directly to bank account

cunning stone
#

So the direct money not deducted from the customer's bank account?
Or any other possibility for my scenario?

civic burrow
#

We can generate Charge immediately at a few scenarios, and if customer is using Card, then they will be charged immediately, it they don't, we will send them Invoices. I am not sure if charging a card immediately that you considered deduct from customer bank?

cunning stone
#

If not possible at all then How invoice will work?
Like invoice created but how can actually payment be done by the customer?
we will send them Invoices
=> Where customer received the invoice? in customer email??

civic burrow
#

Sorry, let's me clarify

#

It's true that we will create Invoice

#

How will the invoice being paid, depends on how it is created

#

An Invoice has collection_method to either charge_automatically or send_invoice

#

charge_automatically means we will attempt to pay using the customer's source/payment_method

#

send_invoice means we will send Invoice to customer's email

cunning stone
cunning stone
civic burrow
#

Hi, sorry I have been having MTGs

#

regarding customer's source/payment_method, no it's not customer_id, it is the PaymentMethod attached and defaulted to that Customer

#

About when the customer paid the invoice by email, you will always receive the webhook event invoice.paid

#

That's where you would want to intercept