#teodor-allo_api
1 messages · Page 1 of 1 (latest)
👋 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/1227247911960711189
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Thank you very much in advance 🙏
The payload we send over for the request is
{
"description": "SEEN Restaurant 1",
"metadata": {
"openReceiptId": "6614226d9171e867bb8ab39c",
"accountId": "01G632X5RHD4BG76WY9RA03B38",
"restaurantId": "62b1b639230d5d186d059699",
"accountDetails": "Deviab Accc"
},
"auto_advance": "false",
"automatic_tax": {
"enabled": "true",
"liability": {
"account": "acct_1Nrjgj4K0wDAyzWz",
"type": "account"
}
},
"days_until_due": "14",
"collection_method": "send_invoice",
"currency": "EUR",
"issuer": {
"account": "acct_1Nrjgj4K0wDAyzWz",
"type": "account"
},
"account_tax_ids": {
"0": "txi_1P3K8nKL2AAUnNZPE0KCxuEx"
},
"customer": "cus_Pt7nHT2hfbOJi7"
}
Hi there 👋 can you tell me a bit more about what you're trying to do? The request you shared looks a bit odd as the provided API key seems to belong to the same account specified in the StripeAccount header.
Hi @untold sky Thanks for jumping in.
We are a platform, with Connected accounts in Express mode.
We are trying to give our connected accounts capability to send invoices to their customers through us.
What we want to achieve
- create an invoice with our customers data as Issuer, with the payment flowing through us and doing a Transfer to their account.
Hm, I'm not entirely sure if that's possible, and will need to do a bit of looking.
If you use the StripeAccount header, you process the payments directly on the Connected Account. But if you create the Invoice on your Platform account, I'm not sure it's possible to display your customer's information as the issuer.
Hm, ok, was not thinking this might not be possible with stripe 😄
If we process payments directly on the Connected Account, is it possible to setup TAX for them, being Express connect ?
While I do some digging, can you try making the request you made again, but this time use the API key that belongs to your Platform account?
On it
Sorry, two clarifying questions:
- Do you want the Connected Account to be the merchant of record?
- Do you want the Transfer to the Connected Account to happen automatically?
Hi @untold sky let me jump here as well since I'm working with @visual jacinth on this issue. So, this is what we do via SDK:
def invoice = Invoice.create(
InvoiceCreateParams.builder()
.setAutomaticTax(
InvoiceCreateParams.AutomaticTax.builder()
.setLiability(
InvoiceCreateParams.AutomaticTax.Liability.builder()
.setType(InvoiceCreateParams.AutomaticTax.Liability.Type.ACCOUNT)
.setAccount(expressAccountId)
.build()
)
.setEnabled(true).build()
)
.setIssuer(
InvoiceCreateParams.Issuer.builder()
.setAccount(expressAccountId)
.setType(InvoiceCreateParams.Issuer.Type.ACCOUNT)
.build()
)
.setCurrency('EUR')
.setDaysUntilDue(14)
.setDescription(restaurantName)
.setCustomer(stripeCustomer.id)
.setAutoAdvance(false)
.setCollectionMethod(InvoiceCreateParams.CollectionMethod.SEND_INVOICE)
.setMetadata(metadata)
.build(),
allORequestOptions
)
Our allORequestOptions is always the Platform account "acct_1GqhEoKL2AAUnNZP" and API_KEY configured is always the same
We want this connected account to collect the money, but not automatically. This is something that will be sent via email to a person, which is going to pay the invoice
Just as a note, the money has to pass through us as a Platform and get Transferred automatically, due to our IC+ fee contract with Stripe, while showing the Merchant as the issuer.
To sum up, we're trying to get rid of this error "Stripe Tax has not been activated on your account. Please visit https://stripe.com/docs/tax/set-up to get started". It seems that Tax is activated but we continute to get the same message. This is how our settings look like:
{
"defaults": {
"tax_behavior": null,
"tax_code": "txcd_10000000"
},
"head_office": {
"address": {
"city": "München",
"country": "DE",
"line1": "Hopfenstraße 8",
"line2": "c/o Satellite Office",
"postal_code": "80335",
"state": null
}
},
"livemode": false,
"object": "tax.settings",
"status": "active",
"status_details": {
"active": {},
"pending": null
}
}
Sorry, a little confused by the difference between these two messages, can you clarify?
We want this connected account to collect the money, but not automatically.
the money has to pass through us as a Platform and get Transferred automatically
What exactly is in allORequestOptions? Does it include setStripeAccount?
Sorry about confusion, what we meant is that we just want to generate this Invoice and once paid, the money should go to this expresss account, that's all.
It affects how to shape the API call whether you want that Transfer to happen to automatically.
yep. we set using setStripeAccount with "acct_1GqhEoKL2AAUnNZP"
Don't do that for requests for your Platform
That header is only used when you're making requests directly on Connected Accounts.
If I remove that and just keep the api_key, do I get rid of this tax issue somehow ?
It might, but I'm not certain.
I can give a try, gimme a sec
meanwhile, whether or not the transfer is done automatically and we modify a bit the shape of the request, I guess we would get the same tax issue for generating the invoices, right?
we are doing in test environment for now, we could test both, just to see what's the output
Skimming through the logs for the Connected Account, I don't think the tax settings or registrations were set up for the Connected Account:
https://docs.stripe.com/tax/settings-api?tax-integration=connect-platform&lang=node#updating-settings
https://docs.stripe.com/tax/registrations-api#adding-registration
let me also check that
thank you
@untold sky thank you so much, just by setting the tax with the last 2 links solved our issue. We didn't even change the Invoice request
I guess that's it then, on every express account we create we just set this information
Awesome! Glad to hear that did it!