#Wik

1 messages ยท Page 1 of 1 (latest)

coral finchBOT
crimson zodiac
#

hi, do you have the ID of the Subscription sub_xxx you deleted(or the customer ID cus_xxx) so I can get up to speed on the context?

copper mantle
#

cus_MVccPOvnvyMG4a

crimson zodiac
#

well what happened was

  • you deleted the subscription
  • that generated a final invoice in_1LmbOL2ljWhzB31VqCHNp9ok for the prorated amount left
  • that invoice was charged to the customer
  • you issued a credit note to refund that payment

so there's no leftover balance.

copper mantle
#

Give me a second please

crimson zodiac
#

I could be misunderstanding, unfortunately it's hard to understand since I think you did a bunch of things all at once(created the subscription, deleted it, made a credit note, all within a minute)

copper mantle
#

Your app is too fast ๐Ÿ˜‰

#

But I have to admit I was cheating and I used the dashboard to test

#

Now I've done things through API

#

cus_MVcyg0MmHQQu8T

crimson zodiac
#

yep so you cancelled the subscription with proration enabled

copper mantle
#

yes

crimson zodiac
#

that generates a "floating invoice item" for the proration

copper mantle
#

so the money is not returned to the customer, but their next invoice will be lower by the amount on the "floating invoice item", right?

#

But it's not the same as credit balance?

crimson zodiac
#

that is not added to the customer's balance directly. For that to happen, an invoice has to be issued, which will pull in that negative item, and apply it. If the amount of that invoice ends up being negative in total, that negative amount is added to the customer's balance when the invoice is paid

#

that's why often you use invoice_now in that Delete call as well

crimson zodiac
copper mantle
#

if I do invoice now, will it affect anything other than the balance?

crimson zodiac
#

well for example it might pull in other pending invoice items for that customer, if they happen to have them

#

not sure what else you're thinking could be affected but that's the only thing that comes to my mind

copper mantle
#

got it

#

is it possible to transfer the "floating invoice item" (BTW what's the proper term used in your documentation? credit note?) between customers?

#

I'm asking as we're looking into consolidating our two Stripe accounts. We're aware Stripe will do some things for us, but we need to move active subscriptions on our own.

We're thining about canceling a subscription in account A, transfering the balance and creating the same subscription in account B.

Due to that, I wonder if

  1. it's possible to transfer the "floating invoice item" or
  2. if we can ensure in some way that all "floating invoice items" connected with a customer are, hm... "activated" (they became the credit balance) and move them then
crimson zodiac
# copper mantle is it possible to transfer the "floating invoice item" (BTW what's the proper te...

not possible to move it, no. You could maybe manually delete the item from one customer and manually create one on a different customer for the same amount.(https://stripe.com/docs/api/invoiceitems/create)
In our docs I think we call these "pending invoice items". It's not at all the same thing as a credit note

copper mantle
#

Got it.

Can I retrive a pending invoice and "invoice_now" on it?

#

via API

crimson zodiac
#

not sure what that means

#

if you have pending invoice items and you want to charge them , you have to create an Invoice

copper mantle
#

How can I check via API if I have any pending invoices?

crimson zodiac
#

pending invoice items

copper mantle
#

Got it. When I create an invoice, it's going to be a draft and as long as it's a draft, the credits will not be added.

#

How to bring it out of draft? Normally, I'd invoice.pay but not sure if it's correct for this

crimson zodiac
#

invoice.finalize

copper mantle
#

Got it.

#

I think it's all I needed. THank you a lot karllekko. YOur help was invaluable ๐Ÿ™