Skip to content

Complete the application

In the examples, {{auto_equity_base_url}} is the Auto Equity base URL for the selected environment.

After saving the applicant’s personal information, call the following endpoints in any order:

Save the applicant’s address. Use the postal code catalog to retrieve valid neighborhoods.

HTTP method URLExample

PUT

{{auto_equity_base_url}}/api/leads/{{leadId}}/address

Field TypeDescription

zipCode

String

The applicant’s postal code. Ex: “09440”

neighborhood

String

The applicant’s neighborhood. Ex: “El Retoño”

street

String

The applicant’s street. Ex: “Margarita Maza de Juárez”

number

String

The exterior number of the applicant’s address. Ex: “45”

interior

String

Optional. The interior number of the applicant’s address. Ex: “A”

The service returns 204 No Content with an empty response body.

Terminal window
curl --location --request PUT '{{auto_equity_base_url}}/api/leads/{{leadId}}/address' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"street": "Margarita Maza de Juárez",
"number": 43,
"interior": "A",
"zipCode": "09440",
"neighborhood": "El Retoño"
}'

Review the possible error responses.

This information is used to calculate the applicant’s payment capacity.

HTTP method URLExample

PUT

{{auto_equity_base_url}}/api/leads/{{leadId}}/financial

Field TypeDescription

employmentType

String enum [“RETIRED”, “EMPLOYED”, “SELF_EMPLOYED”]

The source of the applicant’s income. Ex: “SELF_EMPLOYED”

income

number

The applicant’s monthly income. Ex: 20000

The service returns 204 No Content with an empty response body.

Terminal window
curl --location --request PUT '{{auto_equity_base_url}}/api/leads/05d3ccd2-26e8-4a85-bde8-509d6888c12b/financial' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"income" : 20000,
"employmentType" : "SELF_EMPLOYED"
}'

Review the possible error responses.

Use this endpoint to save the applicant’s vehicle. Select the vehicle identifier from the vehicle catalog.

HTTP method URLExample

PUT

{{auto_equity_base_url}}/api/leads/{{leadId}}/auto

Field TypeDescription

id

String

The vehicle version identifier. See the vehicle catalog. Ex: “2020910528260”

The service returns 204 No Content with an empty response body.

Terminal window
curl --location --request PUT '{{auto_equity_base_url}}/api/leads/{{leadId}}/auto' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"id" : "2020910528260"
}'

Review the possible error responses.