#Edison

1 messages · Page 1 of 1 (latest)

smoky socketBOT
wind frost
#

hello! please share your code snippet

viscid flare
#

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..

wind frost
#

no, that's not necessarily true. A Stripe Account can be for an individual instead (not a Company)

viscid flare
#

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.

#

The company filed is available for any busniess_type

wind frost
#

can you provide the account id?

viscid flare
#

acct_1FEcZOGIdsW1v3s2

smoky socketBOT
wind frost
#

hrm, gimme a while, taking a look, will get back to you

viscid flare
#

sure

wind frost
#

would you happen to have the request id?

viscid flare
#

yes, I think this is by me

wind frost
viscid flare
#

oh...

#

what version should I used?

wind frost
viscid flare
#

Do you know which version I should use for the new one? is it 2019-02-19?

wind frost
#

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?

viscid flare
#

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

wind frost
#

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)

Keep track of changes and upgrades to the Stripe API.

viscid flare
#

I really appreciate your help

#

Thanks!

wind frost
#

feel free to reach out again if you have more questions!

viscid flare
#

Hey @wind frost After we use the latest stripe api, we're still not able to see the tax id in company field

rose sundial
#

Hi @viscid flare I'm taking over this thread

viscid flare
#

Thank you!

rose sundial
viscid flare
#

req_YMCsLVdhUQbsYW

rose sundial
viscid flare
#

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

rose sundial
#

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).

viscid flare
#

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

rose sundial
viscid flare
rose sundial
#

I may not have the full knowledge since this is a beta feature, I'd suggest you to reach out to Support and they'll continue to help you.