March 28, 2024
cancel
Showing results for 
Search instead for 
Did you mean: 
Help

KYC Error on Sandbox

joseglego
New Contributor

I'm trying to test the KYC flow (for both, clients & business)

My flow is:
- I created one Business
- I created one Client (with the previous business as a parent account)
-**(Current error)** I try to validate the Business through KYC for Business (or KYB) 
- I'll try to validate the Client through KYC

I'm sending this data to the create business endpoint:

{
  data: {
    identifications: [{
      type: 'BUSINESS_TAX_ID',
      value: '123456789'
    }],
    business_name_legal: 'Waynex',
    business_name_dba: 'Waynex',
    office_location: {
      address1: 'Wayne Tower',
      address2: '',
      city: 'Gotham',
      state: 'NE',
      postal_code: '33166',
      country: 'US'
    },
    incorporation: {
      state_of_incorporation: 'NE',
      incorporation_type: 'LLC'
    }, 
    date_established: '2020-05-19',
    proprietor_or_officer: {
      ssn: '123456789',
      first_name: 'Bruce',
      middle_name: '',
      last_name: 'Wayne',
      alternative_names: 'The Batman',
      dob: '1915-04-17',
      identifications: [{
        type: 'SSN',
        value: '123456789'
      }],
      title: 'Mr',
      email: 'bruce@wayneinc.io',
      phone: '6813030076',
      home: {
        address1: 'Wayne Tower',
        address2: '',
        city: 'Gotham',
        state: 'NE',
        postal_code: '33166',
        country: 'US'
      }
    },
    proprietor_is_beneficial_owner: true,
    attestation_consent: true,
    attester_name: 'Bruce Wayne',
    attester_title: 'Chief Executive Officer',
    attestation_date: '2022-05-19',
    account_holder_group_token: 'ACCOUNT_HOLDER_TOKEN_WITH_KYC_VALIDATION'
  }
}

 
But, the API is answering with this error:

{
  data: {
    error_message: 'Input validation error Validation failed for PROPRIETOR due to Required fields for a user cannot be empty: last_name,birth_date,ssn. Please update the user object and then retry.,',
    error_code: '400117'
  }
}


So, I don't understand why it's asking for those fields if all of them were submitted. 

Thanks in advance

7 REPLIES 7

webron
Community Manager
Community Manager

Thanks for the inquiry. Which endpoint do you call with the payload you shared?

Hello @webron ,

Do you have any suggestions or doubts? I'd like to clarify anything to be able to continue testing. 

joseglego
New Contributor

That payload is to create business in step 1 (it's a POST to '/businesses'), after that, I use the generated token and with that I hit with a POST to '/kyc' and the payload would be { business_token: previous result.token }

I just included the payload to show that all the required fields of the business (and it's proprietor) were filled (or to check if I was missing something) thanks

joseglego
New Contributor

@webron (already answered in the previous post! but didn't mention you, my bad!)

beardej
New Contributor

Hey @joseglego - I'm getting the same error.  Did you figure this out?

afory
New Contributor

Hi @joseglego 

I noticed your POST request begins with a "data" object, which should be removed. This may be causing the user object to produce the error you're seeing 

afory
New Contributor

You can review a sample request body of a POST call to Marqeta's /business endpoint to create a business through the following hyperlink for reference