Sandbox error "BusinessClassification invalid"


(Mike McGranahan) #1

Hello, I’m trying to create a verified business customer (soleProprietorship) and I’m pulling the list of business classifications from the API. Regardless of which business classification id I use, the API responds with a 500 and “BusinessClassification invalid”.

Request payload:

{
  "address1":"99-99 33rd St",
  "businessClassification":"9ed3f677-7d6f-11e3-96a2-5404a6144203",
  "businessName":"Jane Corp",
  "businessType":"soleProprietorship",
  "city":"Some City",
  "dateOfBirth":"1980-01-02",
  "email":"test+126417@example.com",
  "firstName":"Business",
  "lastName":"Owner",
  "postalCode":"11101",
  "ssn":"6789",
  "state":"NY",
  "type":"business"
}

Error

{
   "code":"ValidationError",
   "message":"Validation error(s) present. See embedded errors list for more details.",
   "_embedded":{
      "errors":[
         {
            "code":"InvalidFormat",
            "message":"BusinessClassification invalid.",
            "path":"/businessClassification",
            "_links":{

            }
         }
      ]
   }
}

What am I missing?


(Spencer Hunter) #2

Hi @mike_reasi, The list of business classifications will contain an _embedded list of industry classifications. You’ll want to make sure you’re selecting an industry classification Id and not a Business Classification Id. For example, if the business classification is “Food retail and service” then you’ll want to select an industry classification ID within that like “Restaurant” with an ID of 9ed3f673-7d6f-11e3-adb1-5404a6144203. It’s recommended to cache the list of industry classification ids used on your platform vs. calling the API each time or storing the full list of Ids.

Hope this helps, please let us know if you continue to run into issues!


(Mike McGranahan) #3

Awesome, got it. Thanks!