#Edison
1 messages · Page 1 of 1 (latest)
hello! please share your code snippet
data class stripeAccount(
val id: String? = null,
@JsonProperty("object")
val objectType: String? = null,
@JsonProperty("company")
val company: Company,
val country: String? = null
)
data class Company(
@JsonProperty("tax_id")
val taxId: String? = null,
@JsonProperty("vat_id")
val vatId: String? = null,
@JsonProperty("tax_id_provided")
val isTaxIdProvided: Boolean? = false,
@JsonProperty("vat_id_provided")
val isQstIdProvided: Boolean? = false
)
Every response should contains company object right?
It seems the company is null..
no, that's not necessarily true. A Stripe Account can be for an individual instead (not a Company)
But what I saw in the page is that
company
hash
CUSTOM ONLY
Information about the company or business. This field is available for any business_type.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The company filed is available for any busniess_type
can you provide the account id?
acct_1FEcZOGIdsW1v3s2
hrm, gimme a while, taking a look, will get back to you
sure
would you happen to have the request id?
is this for example : https://dashboard.stripe.com/logs/req_LG0i52PTy0oTty made by you?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
yes, I think this is by me
you're using a really old version of the API i.e. 2016-02-29 (https://stripe.com/docs/upgrades#2016-02-29). That particular version doesn't have company. iirc, it's still using legal_entity
https://stripe.com/docs/connect/required-updates/accounts-arguments - this is the mapping of old vs new Account parameter mapping as a result of the major change in https://stripe.com/docs/upgrades#2019-02-19
Do you know which version I should use for the new one? is it 2019-02-19?
isn't that a question which you need to discuss with your engineering team?
we would always recommend upgrading to the latest version, but I'm sure there are other considerations to take into account, like is your backend ready for the changes if you upgrade?
Do you mind sharing the latest version name?
I'm introducing the stripe api to our service
So, I don't think we have that issue
all of the breaking changes are listed here in case you need the list : https://stripe.com/docs/upgrades
The latest version is 2022-11-15 (the one right at the top)
feel free to reach out again if you have more questions!
Hey @wind frost After we use the latest stripe api, we're still not able to see the tax id in company field
Hi @viscid flare I'm taking over this thread
Thank you!
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_YMCsLVdhUQbsYW
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
This is the page we were reading https://stripe.com/docs/connect/kyc-read-access
Thanks for the ID. the account object doesn't have a tax_id filed, instead it has a tax_id_provided that indicates whether a tax ID is provided https://stripe.com/docs/api/accounts/object#account_object-company-tax_id_provided
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
MxStripeAccountInfo(id=acct_1FEcZOGIdsW1v3s2, objectType=account, company=Company(taxId=null, vatId=null, isTaxIdProvided=true, isQstIdProvided=false), country=US)',
isTaxIdProvided is true from our end..
We default it as false in our code. The true means the account has the tax id
The API version we used is 2022-11-15
Yes the account has a tax ID, but it's not included in the response of Account retrieval API request (check the API reference doc that I sent earlier).
But I heard this API from the Stripe guy
"charges_enabled": true,
"company": {
"tax_id": "000000000"
},
If you check the doc I shared
It contains the tax_id
No I don't' see tax_id. https://stripe.com/docs/connect/kyc-read-access#retrieve-account-api-(full-response)