#inquisitive_api

1 messages ¡ Page 1 of 1 (latest)

strange cedarBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1224952311239938081

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

civic sailBOT
desert robin
#

First, does each child company have a different Stripe Account?

smoky whale
#

yes I want to have them different customer id

desert robin
#

No I mean Stripe Account, not Customer

#

Your use case is suited for a Platform - Connected Accounts model, which we call "Stripe Connect". There the Company A will be the Platform, and each of AA, AB, AC will be a Connected Account to the Platform

#

Then you can have either the Destination Charge flow (if Connected Account is express/custom) or Direct Charge (if Connected Account is standard)

smoky whale
#

I am not sure if i get your question,

just consider a situation where, parent company could make payment for each of their child company one by one, but we might have more than 1000 child company so we are just trying to make it efficient and allow parent company to pay all those fees at once

desert robin
#

By "parent company make payment for each of their child company" do you mean parent company accept payment from customer on behalf of its child company

#

Or are the child companies the payer here?

smoky whale
#

On our platform there would be two different types on company One Asset manager, and they might have different contractors under them. Previously, each of those new contractors used to pay the platform fee by themselves, now this asset manager wants to shift all those contractors from paper to our system. Now, asset manager do not want us to charge the contractors at the moment because they are shifting from old paper work as they were not bound to pay the system fee. So, for now the asset manager wants to pay the fee to us on behalf of them.

However, in future once the old project finish, on new projects we could charge the contractor directly. So until then the asset manager (parent company) wants to pay us (the platform), so their child could use our platform.

So I am looking for a way, of such payment like they are paying n number of invoices but on a single payment, so that in future, each child company could start making their own payment. Is there anything possible for this? If not is there any closest way to achieve it?

desert robin
#

Hmm so you mean you are the Platform, the asset manager is the Connected Account, and their contractors are their Customer

smoky whale
#

no, we are the platform and this platform could have multiple asset manager (they are also our customers) they too pay fee to the platform

desert robin
#

And the "parent company" is each of the asset manager, and their "child company" is their contractor?

smoky whale
#

yes

#

and by the way its not about one time payment, but its the subscription mode

smoky whale
#

@desert robin ??

desert robin
#

Yes I see, sorry. So this is purely about your Account and its Customers. In the future you want to break down each Customer into multiple newer Customers

smoky whale
#

yes that should be an option.

desert robin
#

What do you mean by paying n number of invoices but on a single payment? Each invoice of the future customers (contractors) but a single payment from the asset manager?

#

You can have multiple Invoice Items inside one Invoice, if that works for describing your use case

smoky whale
#

No, its fine having a single invoice as well, I just want a break down of what contractors they are paying for and for how many users for each contractor (basically quantity of users) for each contractor

#

Could you please give me some of the api list or some way to achieve it and I will look into the docs and see which might be the best fit on my use case

desert robin
#

Wouldn't Invoice Items work? Like you have Invoice inv_xxx which has

  1. Invoice Item ii_aaaa about what the contractor A is paying via this asset manager
  2. Invoice Item ii_bbb about what the contractor B is paying via this asset manager
    ... (and so on)
smoky whale
#

currently I am using session checkout and was thinking about adding line items for each customer but i believe it has a max limit of 20 customers.

#

So in case of invoice, I first need to generate an invoice and make the payment right?

desert robin
#

Ah you are using Checkout

smoky whale
#

yes i was using checkout session

desert robin
#

Alright. All you want is to save the information of breakdown on customer, correct? How about metadata?

smoky whale
#

does stripe allow metadata on each line items as well?

desert robin
smoky whale
#

so this means, creating an invoice instead of session checkout and make them pay this invoice is my best bet?

desert robin
#

If you want separated Invoice Items per each contractor yes. But that won't let you to use Checkout Session

#

If you want to keep using Checkout Session, you can consider store all the contractor breakdown into the Subscription's metadata