#justintime42
1 messages · Page 1 of 1 (latest)
Hi there, thanks for waiting
You don't need to specify on_behalf_of when creating a invoice item,
and You only need to specify on_behalf_of when creating an invoice
so, what I have right now is the ability for the business user to create an invoice item whenever they approve a service event for billing. Then, when they want to actually send out the invoices, I create the invoice itself. But the result is that $0 invoices are being created, and invoice items appear to remain on that customer under my account, not the connected account.
if I view as the connected account, I appear to have no customers, no invoices, nothing.
You should set pending_invoice_item_behavior to include, so that the invoice will include any pending invoice items.
ok trying that now
Ok that worked! It did create an invoice that captured the previous pending invoice items. and the bill that got generated was not from my account, but was from the connected account as intended, so that's awesome.
Follow-up question: I can view that customer and the associated invoice and invoice items from my account, but I can't see them when I look under the connected account that is supposedly charging the customer. Like if I got to the dashboard of the connected account there are no customers listed, no invoices, nothing. Why is that?