#mxa-invoices
1 messages · Page 1 of 1 (latest)
hi there, do you have the invoice id which you can share for me to take a closer look?
Yes! I created a few but here's the latest in_1Kir0DFwkwys1BgvsWK1d2Sj
when you create an Invoice using on_behalf_of : account X, the Invoice still exists on Account A
if you do invoice.list() for Account A, you should be able to find that invoice
Is there any way I can create the Invoice for the Connected Account X? So that when I do an invoice.list() for Account X it'll show up there?
My scenario is everybody is a customer of Account A, and there are many connected accounts on the platform, they'll be able to create invoices for customers, as well as see the invoices they've created
if you want to create an Invoice for the Connected Account X, then you would want to include the Stripe-Account header [0]. If you do this though, keep in mind that the Customer also needs to exist on connected account X, so you may need to clone the PaymentMethod over from account A to account X : https://stripe.com/docs/payments/payment-methods/connect#cloning-payment-methods
This is really helpful, thank you! A few follow up questions
- Customer M has a PaymentMethod with Account A, it's then cloned to Connected Account X
- If I make an invoice for Account X, is it okay that the Customer M only exists within Account A?
- Can I still take an application fee for Account A?
- What happens if Customer M deletes the payment method? (Will that change be reproduced within Account A and Account X?)
- when you clone the PaymentMethod, you'll also have to create a new Customer to attach the PaymentMethod to on account X
- Yes, you can still take an application fee
- No, it wouldn't automatically be replicated. You have to implement your own logic to keep the Customers between accounts in sync