#johnrey
1 messages · Page 1 of 1 (latest)
heya @warm laurel, you can't adjust the transfer_data[amount] at this point , the only way is probably to make a separate transfer [0], or probably partially reverse the original transfer [1].
[0] https://stripe.com/docs/api/transfers/create
[1] https://stripe.com/docs/api/transfer_reversals/create
I'll check the links. If the invoice is not yet paid, can I still adjust the transfer_data[amount] of the original invoice or will I just have to void the original and then create a new invoice?
you can test it on your own account, i vaguely remember that i've tried it before and it wasn't possible to adjust an already created invoice
Okay. Thank you
If I partially reverse the original transfer of a paid invoice, will the Platform receive the amount?
If the Original Invoice is:
Amount: 100
Platform Fee: 12
Transfer Amount to Connected Account: 88
The update to the Invoice after a partial refund is:
Amount: 90
Platform Fee: 10.8
Transfer Amount to Connected Account: 79.2
In my understanding, the Customer will be refunded 10. Do I only just have to reverse transfer 8.8(88-79.2) from the Connected Account balance?
i'm a bit confused, what is your expected outcome here? i.e. what do you want to do, and what do you expect to happen?
If I refund the customer with 10, I want the Connected account to only be transferred with 79.2 and the Platform will keep 10.8 (though I'm not sure if I should take into account the Stripe fee also).
so if you refund the customer, you can choose to refund_application_fee and reverse_transfer. Stripe will auto calculate the amount to reverse for the transfer and the application fee if it's a partial refund
https://stripe.com/docs/api/refunds/create#create_refund-refund_application_fee
https://stripe.com/docs/api/refunds/create#create_refund-reverse_transfer
but keep in mind that when you do a refund, it's not going to reflect in the invoice
I Create a Refund by passing the payment_intent_id and then attach the refund to the credit_note_options.refund to create a credit note.
If I use transfer_data[amount] , will still be able to use refund_application_fee?
ah i see, yep that makes sense with the credit_note_options.refund.
Sorry i forgot the part where you only used transfer_data[amount]. So no, you won't be able to use refund_application_fee if you're using transfer_data[amount].
Using your previous example of original invoice amount $100, and you refund $10 to the customer with reverse_transfer=true - what happens is that :
- Stripe takes 10 from platform balance and refunds to the customer
- 8.8 is transferred from the connected account to the platform.
Okay. Will be able to see this in the Dashboard?
I see it now in the balance page under all transactions.
yep, that's where i typically check for it too