#Estela
1 messages · Page 1 of 1 (latest)
- How can I edit by code the value of the VAT ID in a Customer that already exists.
Can you share a Stripe Object Id that contains the VAT/ or how are you collecting it now?
You can create/delete tax IDs of a customer:
https://stripe.com/docs/api/customer_tax_ids/create
https://stripe.com/docs/api/customer_tax_ids/delete
With the Checkout Session of our platform I request that you add your VAT, but later I need to update the "Customer" of my "Connect Account" with the VAT that was stored in the "Customer" of the main account
I think that with this link I can create a TAX for the connected account, collecting the information I need.
So yeah you can call this API https://stripe.com/docs/api/customer_tax_ids/create using Stripe Auth headers:
https://stripe.com/docs/connect/authentication#stripe-account-header and make the request on behalf of the connected Account.
In the checkout session I request it with "tax_id_collection"
How could we do so that it only asks for the address if it is not saved.
You should check the customer before creating the Checkout Session, and ask for address collection only if the customer don't have an address
Yeah, in result the customer will have an array of tax ids:
https://stripe.com/docs/api/customers/object#customer_object-tax_ids
So you create a new tax object in the customer of the connected Acocunt.
- Finally, in the PDF of the invoice as Connect Account the user's data is not shown, but the issuer is the name we give to our connected account.
You mean the customer data isn't displayed here ? can you share an invoiceId ?
Great!!👍
This one
Genial, lo probaré!
Instead of "Carbon Market - AirCO2" you should put the user information of the connected account
Can you share the id of this invoice ? in_1234
The name displayed there is the account from which the invoice was issued...
So yeah, that's expected... because the issuer of that invoice is the acocunt acct_1Mh9xf2Hp77Mt5CR which is Carbon Market - AirCO2 You need to create the invoice with a DirectCharge or using on_behalf_of
As our development is, we could not work with DirectCharges, because in one order they can be purchased from several Connect Accounts...
How could I use "on_behalf_of"?
Try following the link I shared above:
https://stripe.com/docs/connect/invoices#on-behalf-of
Ok, I'm going to try everything you told me. If I have any problem, I will contact you again.
Thank you very much for your help, it has been very useful.
Np!