Skip to main content

Shared Objects

Many data structures are shared across different APIs. Below, you'll find simplified definitions for these shared objects.

email Object

Request Body
{
"email": "johnsample@test.com",
"validation_type":"zaig_api",
"validation_key": "e9f0de49-16fb-431e-be1a-ee4bf1096eda"
}

The email object is used to represent emails across the entire API, as well as whether any validation method was used. They are represented as follows:

nametypedescription
emailstringRegistered email address. (required)
validation_typeenumType of validation used during the email registration.
validation_keyguidID returned by QI Tech’s email validation API.

The following enumerators exist for validation_type: zaig_api, company_email.

cnh Object

Request Body
{
"register_number": "05163811694",
"issuer_state": "PR",
"first_issuance_date":"2011-03-21",
"issuance_date":"2016-06-29",
"expiration_date":"2021-06-25",
"category": "AB",
"validation_type":"zaig_sdk",
"ocr_key":"a5cf9c8f-2f66-4490-a7db-8a5bc70c1b76"
}

The cnh object is used to represent driver’s licenses (CNHs) throughout the API, including information on whether any validation method was used. They are represented as follows:

nametypedescription
register_numberstringRegistration number of the registered CNH.
issuer_stateenumEnumerator for the state where the CNH was issued.
first_issuance_datedateDate of first issuance.
issuance_datedateDate of issuance.
expiration_datedateExpiration date.
categoryenumCNH category in uppercase letters.
validation_typeenumType of validation used during the document registration.
ocr_keyguidID returned by QI Tech’s document validation API.

The following enumerators exist for validation_type: zaig_api and zaig_sdk.

rg Object

Request Body
{
"number": "4.366.477-8",
"issuer": "II",
"issuer_state": "PR",
"issuance_date":"2002-01-12",
"validation_type":"zaig_sdk",
"ocr_front_key":"a5cf9c8f-2f66-4490-a7db-8a5bc70c1b76",
"ocr_back_key":"a5cf9c8f-2f66-4490-a7db-8a5bc70c1b76"
}

The rg object is used to represent identity documents (RGs) throughout the API, including information on whether any validation method was used. They are represented as follows:

nametypedescription
numberstringRegistered document number, including formatting (dots, hyphens, slashes, etc.).
issuerstringIssuing authority of the document (abbreviation, e.g.: II, SESP...).
issuer_stateenumState (UF) where the document was issued.
issuance_datedateDate the document was issued.
validation_typeenumType of validation used during the document registration.
ocr_keyguidID returned by QI Tech’s document validation API.

The following enumerators exist for validation_type: zaig_api and zaig_sdk.

ie Object

Request Body
{
"number": "388.108.598.269",
"issuer": "JUCESP",
"issuer_state": "SP",
"issuance_date":"2002-01-12",
"validation_type": "zaig_api",
"ocr_key": "c64627db-1ba4-48b6-979d-06222a25d5e9"
}

The ie object is used to represent State Registration documents within the documents object in the legal_person endpoint, including information on whether any validation method was used. It is represented as follows:

nametypedescription
numberstringRegistered document number, including formatting (dots, hyphens, slashes, etc.).
issuerstringIssuing authority of the document (abbreviation, e.g.: JUCESP, JUCEGO...).
issuer_stateenumState (UF) where the document was issued.
issuance_datedateDate the document was issued.
validation_typeenumType of validation used during the document registration.
ocr_keyguidID returned by QI Tech’s document validation API.

The following enumerators exist for validation_type: zaig_api.

company_statute Object

Request Body
{
"ocr_key": "60ed79c4-5aba-4cc7-aebb-5de5f92b7d0d"
}

The company_statute object is used to represent company formation documents, such as an Articles of Incorporation, within the documents object in the legal_person endpoint. It is represented as follows:

nametypedescription
ocr_keyguidID returned by QI Tech’s OCR API after sending the image or PDF of a company formation document.

letter_attorney Object

Request Body
{
"ocr_key": "13571175-b1d9-4507-82e0-d266516fc5ae"
}

The letter_attorney object is used to represent powers of attorney that grant authority to legal representatives within the documents object in the legal_person endpoint. It is represented as follows:

nametypedescription
ocr_keyguidID returned by QI Tech’s OCR API after sending the image or PDF of a power of attorney document.

address Object

Request Body
{
"street": "Rua do Teste",
"number": "111",
"neighborhood": "Bairro do Exemplo",
"city": "Aparecida de Goiânia",
"uf": "GO",
"complement": "Térreo",
"postal_code": "00000-000",
"country": "BRA",
"validation_type":"visit",
"ocr_key": "265b1b74-4b93-41dc-ac78-e1c37467225d"
}

The address object is used to represent addresses throughout the API. Addresses located in Brazilian territory are represented as follows:

nametypedescription
streetstringStreet name, including thoroughfare, avoiding abbreviations whenever possible.
numberstringProperty number, including letters if applicable.
neighborhoodstringNeighborhood, without abbreviations.
e.g.: Santa Felicidade
citystringFull city name, without abbreviations.
ufstringFederal unit (state), using two uppercase letters.
e.g.: SP
complementstringAny additional information to help locate the property.
e.g.: Apartment 101, Suite 12
postal_codestringPostal code for the address, including the hyphen. (required)
countrystringISO 3166-1 alpha-3 country code for the address.
validation_typeenumType of validation used during the address registration.
ocr_keyguidID returned by QI Tech’s OCR API or SDK after submitting the image of the proof of residence.

For addresses where the country is not Brazil ("BRA"), the postal_code and state (uf) fields may be filled in freely.

The following enumerators exist for validation_type: visit, zaig_ocr.

phone Object

Request Body
{
"international_dial_code": "1",
"area_code": "11",
"number": "999999999",
"type": "mobile",
"validation_type": "zaig_sms",
"validation_key": "82589b39-e34f-44f9-b0fe-d8fc0ee6129c"
}

A phone object represents a phone number, either domestic or international, and its classification. The fields are:

nametypedescription
international_dial_codestringInternational dialing code, without zero or +, numbers only (required)
area_codestringArea code, without zero, numbers only (required)
numberstringPhone number, without hyphen (required)
typeenumType of number: mobile, residential, commercial, etc.
validation_typeenumType of validation used during phone registration.
validation_keyguidID returned by QI Tech’s phone validation API.

The following enumerators exist for phone type: residential, commercial, and mobile.

The following enumerators exist for phone validations: zaig_sms, zaig_call, company_sms, company_call.

source Object

Request Body
  {
"channel": "app",
"platform": "android",
"ip":"211.7.142.62",
"session_id": "733adf2c-a994-4113-aa59-beb646091fea",
}

A source object represents the set of information about the platform used by the client during their registration. The fields are:

nametypedescription
channelstringSales channel/ client registration
platformstringPlatform used by the client to complete their registration
ipstringIP address collected from the device at the time of registration
session_idstringUnique session identifier, used to match the device scan with the corresponding registration

face Object

Request Body
  {
"type":"zaig_face_sdk",
"registration_key":"46f38cf4-07b2-4de6-93e9-64b51a68378a"
}

A face object represents a facial recognition validation performed through QI Tech’s APIs or SDKs to verify the authenticity of the client prior to registration submission. The fields are:

nametypedescription
validation_typeenumType of facial recognition validation performed.
registration_keyguidIdentifier returned by QI Tech’s API or SDK to represent the registration.
validation_keyguidIdentifier returned by QI Tech’s API or SDK to represent the validation.

The following enumerators exist for validation_type: zaig_api and zaig_sdk.

partner Object

Request Body
  {
"name": "John Partner",
"document_number": "111.111.111-11",
"birthdate": "1992-09-15",
"gender": "male",
"nationality": "BRA",
"mother_name": "Maria Partner's Mother",
"occupation": "Teacher",
"emails":[
{
"email": "johnsample@test.com",
"validation_type":"zaig_api",
"validation_key": "e9f0de49-16fb-431e-be1a-ee4bf1096eda"
}
],
"documents": {
"rg": {
"number": "4.366.477-8",
"issuer": "II",
"issuer_state": "PR",
"issuance_date":"2002-01-12",
"validation_type":"zaig_sdk",
"ocr_front_key":"a5cf9c8f-2f66-4490-a7db-8a5bc70c1b76",
"ocr_back_key":"a5cf9c8f-2f66-4490-a7db-8a5bc70c1b76"
},
"cnh": {
"register_number": "05163811694",
"issuer_state": "PR",
"first_issuance_date":"2011-03-21",
"issuance_date":"2016-06-29",
"expiration_date":"2021-06-25",
"category": "AB",
"validation_type":"zaig_sdk",
"ocr_key":"a5cf9c8f-2f66-4490-a7db-8a5bc70c1b76"
}
},
"address": {
"street": "Rua do Teste",
"number": "111",
"neighborhood": "Bairro do Exemplo",
"city": "Aparecida de Goiânia",
"uf": "GO",
"complement": "Térreo",
"postal_code": "00000-000",
"country": "BRA",
"validation_type":"visit",
},
"phones": [
{
"international_dial_code": "1",
"area_code": "11",
"number": "999999999",
"type": "mobile",
"validation_type": "zaig_sms",
"validation_key": "82589b39-e34f-44f9-b0fe-d8fc0ee6129c"
}
],
"source": {
"channel": "app",
"platform": "android",
"ip":"255.321.321.1",
"session_id": "54b8e3cf-15de-41e5-9305-0ecf059d6e2a"
},
"face":
{
"type":"zaig_sdk",
"registration_key":"46f38cf4-07b2-4de6-93e9-64b51a68378a"
}
}

A partner object represents the data of a company's partner being registered, as well as information related to any validations the partner underwent during the registration process. The fields are:

nametypedescription
namestringFull name of the partner being registered
document_numberstringCPF of the partner, with periods and hyphens, following the standard format (required)
birthdatedatePartner’s birthdate in the expected format
genderenumPartner’s gender: 'male' or 'female'
nationalitystringNationality of the partner, in ISO 3166-1 alpha-3
mother_namestringFull name of the partner’s mother
occupationstringProfession of the partner being registered
emailsEmailList of Email objects describing the partner’s email addresses
documentsDocumentDocument object representing any documents submitted during the partner’s registration
addressAddressAddress object representing the partner’s residential address
phonesList of PhoneList of phone objects with the partner’s phone numbers
sourceSourceSource object describing the platform used for submitting the registration
faceFaceFace object containing information on the facial validation
Request Body
  {
"name": "Frederic Attorney",
"document_number": "111.111.111-11",
"birthdate": "1987-06-12",
"gender": "male",
"nationality": "BRA",
"mother_name": "Jackie Attorney Mother",
"occupation": "Accountant",
"emails":[
{
"email": "frederic@attorney.com",
"validation_type":"zaig_api",
"validation_key": "d174d522-6003-4b05-adb2-e92e92632c67"
}
],
"documents": {
"letter_of_attorney": {
"ocr_key": "6972894d-d2ef-4b5f-b54f-10f178bf3e5d"
},
"cnh": {
"register_number": "05163811694",
"issuer_state": "PR",
"first_issuance_date":"2011-03-21",
"issuance_date":"2016-06-29",
"expiration_date":"2021-06-25",
"category": "AB",
"validation_type":"zaig_sdk",
"ocr_key":"a5cf9c8f-2f66-4490-a7db-8a5bc70c1b76"
}
},
"address": {
"street": "Avenida de Exemplo",
"number": "99",
"neighborhood": "Vila do Exemplo",
"city": "Jundiaí",
"uf": "SP",
"complement": "Ap 82",
"postal_code": "00000-000",
"country": "BRA",
"validation_type":"proof_of_address",
"ocr_key": "265b1b74-4b93-41dc-ac78-e1c37467225d"
},
"phones": [
{
"international_dial_code": "55",
"area_code": "11",
"number": "999998877",
"type": "mobile",
"validation_type": "zaig_sms",
"validation_key": "e390d2b3-cb71-4991-9d94-1b7f8b43a04e"
}
],
"source": {
"channel": "app",
"platform": "ios",
"ip":"175.92.122.2",
"session_id": "93c68588-7a41-472f-95b3-835ea6ee1ede"
},
"face":
{
"type":"zaig_sdk",
"registration_key":"d2677a8c-d575-44e1-a54d-ec00f9310f34"
}
}

A legal_representative object represents the data of a company’s legal representative being registered, as well as information regarding any validations they underwent during the registration process. The fields are:

nametypedescription
namestringFull name of the legal representative being registered
document_numberstringCPF of the legal representative, with periods and hyphens, following the standard format
birthdatedateLegal representative’s birthdate in the expected format
genderenumLegal representative’s gender: 'male' or 'female'
nationalitystringNationality of the legal representative, in ISO 3166-1 alpha-3
mother_namestringFull name of the legal representative’s mother
occupationstringProfession of the legal representative being registered
emailsEmailList of Email objects describing the legal representative’s email addresses
documentsDocumentDocument object representing any documents submitted during the representative’s registration
addressAddressAddress object representing the legal representative’s residential address
phonesList of PhoneList of phone objects with the legal representative’s phone numbers
sourceSourceSource object describing the platform used for submitting the registration
faceFaceFace object containing information on the facial validation