Skip to content

Complete the application

In the examples, {{auto_financing_base_url}} is the Auto Financing 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_financing_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_financing_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_financing_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

jobPosition

String

Required when employmentType is not RETIRED. The applicant’s occupation or job title. Ex: “Carpenter”

startDate

Object

Required when employmentType is not RETIRED. Contains the year and month when the applicant started the current occupation.

startDate.year

Integer

Year when the applicant started the current occupation. Ex: 2022

startDate.month

Integer

Month number from 1 to 12. Ex: 1

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

Terminal window
curl --location --request PUT '{{auto_financing_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",
"jobPosition" : "Carpenter",
"startDate" : {
"year" : 2022,
"month" : 1
}
}'

Review the possible error responses.

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

This endpoint is optional. The selected vehicle is used as a reference and the applicant can change it later.

HTTP method URLExample

PUT

{{auto_financing_base_url}}/api/leads/{{leadId}}/auto

Field TypeDescription

id

String

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

price

number

Estimated vehicle price in MXN. Ex: 300000

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

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

Review the possible error responses.