#winston_api

1 messages ¡ Page 1 of 1 (latest)

scenic mauveBOT
#

👋 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/1428840788015448184

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

scarlet salmon
#

i need help

grizzled condor
#

Hi

eager coral
scarlet salmon
#

sorry i just dont know how to do that im trying to fix things and it keeps sending me everywhere and idk what im doing lowky i just need help with some transactions

eager coral
#

@grizzled condor sorry about that.

#

I'll have to double check to make sure the docs are not out of date. Based on the error being returned the relevant options are incorporated_non_profit, registered_charity

grizzled condor
#

It's okay

#

The thing is that when I provide incorporated_non_profit for a Canadian non profit account, I get this error:

    message: "'incorporated_non_profit' is not a valid structure in the country CA and under the business type 'non_profit'.",
#

so, I went to the API docs to see what the valid types were, and saw that for Canada it's either registered_charity or nil, in this case I need to send nil, but when I send nil I get:

#
    message: 'Invalid company[structure]: must be one of government_instrumentality, governmental_unit, incorporated_non_profit, registered_charity, incorporated_partnership, limited_liability_partnership, multi_member_llc, private_company, private_corporation, private_partnership, public_company, public_corporation, public_partnership, single_member_llc, sole_proprietorship, tax_exempt_government_instrumentality, unincorporated_association, unincorporated_non_profit, unincorporated_partnership, free_zone_llc, sole_establishment, free_zone_establishment, or llc',
eager coral
#

Interesting. Let me double check on my end.

#

Ok, I was able to replicate.

#

Let me reach out internally.

grizzled condor
#

Okay, I'll stand by

eager coral
#

Ok, as I expected the docs are not correct. What they meant to say is to not pass structure in this case.

#

So company should look like this:

  company: {
    address: {
      city: "Toronto",
      line1: "CN Tower, 290 Bremner Blvd",
      line2: "200",
      postal_code: "07008",
      state: "ON",
    },
    directors_provided: "true",
    name: "Big Boss Farm",
    owners_provided: "true",
    phone: "+17788258000",
    tax_id: "*********",
  },
grizzled condor
#

Okay, would I be able to pass it as null?

eager coral
#

Just don't pass company.structure at all.

#

Let me double check if you can pass null

#

Just confirmed, you can pass company.structure: null and it should work.

grizzled condor
#

okay, thank you so much! i'll be testing it out