BGC Laboral (Employment History)
The BGC Laboral process runs an automated query to obtain the candidate's official employment history (e.g., IMSS in Mexico), allowing you to verify contributed weeks, previous employers, and registered base salaries.
This process is exclusive to Individuals (PF) (individual candidates). It is not available for corporate or business records.
Registration Methods (Input Payloads)
To initialize a candidate's employment process, two registration methods are supported in the input payload. Providing the Social Security Number (nss) is optional but highly recommended, since it speeds up the lookup in the official source.
- Option A: Registration by National ID
- Option B: Registration by Demographic Data
This method registers the candidate using their national identifier (such as CURP in Mexico).
{
"byNationalId": true,
"nationalId": "CURP_PLACEHOLDER",
"clientId": "CL_12345",
"package": "PKG_LABORAL_01",
"taxClassification": "PF",
"nss": "12345678901" // Optional: Providing it speeds up the lookup in the official source
}
This method registers the candidate using their full demographic data when the national identifier is not available.
{
"byNationalId": false,
"clientId": "CL_12345",
"name": "JANE",
"lastName": "DOE",
"secondLastName": "SMITH",
"birthDate": "1995-05-10",
"sex": "F",
"state": "SP",
"package": "PKG_LABORAL_01",
"nss": "12345678901" // Optional
}
Response Architecture (Summary vs Extended)
The API structures the returned employment information according to the level of detail requested through the detail query parameter:
- Global Metrics (Summary View): By default, the API returns the candidate's overall summary in the
detailnode, which includes fields such astotal_semanas_cotizadas,total_razones_sociales,total_empleos, average weeks, etc. - Detailed History (Extended View /
?detail=true): Enables thehistoria_laboralarray inside thedetailnode. This array breaks down, in chronological order, each of the candidate's registered employer-employee relationships.
Note on format: The internal fields of the detail object and historia_laboral are presented in Spanish and keep the official technical naming of the issuing social security institution (e.g., registro_patronal, salario_base_cotizacion). This guarantees the integrity, fidelity, and transparency of the raw data extracted from the government source.
Annotated Response Example
The following are structured, fully anonymized examples that contrast the basic response with the extended one, using fictitious data.
- Summary View (Basic)
- Extended View (Detailed)
This basic structure is returned by default (without passing ?detail=true), returning only the global metrics calculated for the candidate.
{
"isSuccess": true,
"statusCode": 200,
"message": "Success",
"data": {
"processId": "zrQKr9R0ksg0QHMQ3Wo1",
"processName": "BGC Laboral",
"detail": {
"nss": "12345678901",
"fecha_emision_reporte": "2026-06-29",
"total_semanas_cotizadas": "17", // Total weeks accumulated in the institutional employment record
"total_razones_sociales": "2",
"total_empleos": "2"
},
"status": "Finalizado",
"result": "Proceso completo"
}
}
This structure includes the candidate's full chronological employment history in the historia_laboral array, enabled through the ?detail=true query parameter.
{
"isSuccess": true,
"statusCode": 200,
"message": "Success",
"data": {
"processId": "zrQKr9R0ksg0QHMQ3Wo1",
"processName": "BGC Laboral",
"detail": {
"nss": "12345678901",
"fecha_emision_reporte": "2026-06-29",
"total_semanas_cotizadas": "17", // Total weeks accumulated in the institutional employment record
"total_razones_sociales": "2",
"total_empleos": "2",
// [Enabled only when queried with the ?detail=true parameter]
"historia_laboral": [
{
"registro_patronal": "Y622902310", // Official employer identifier
"nombre": "EMPRESA DE PRUEBA S.A. DE C.V.",
"fecha_alta": "2024-09-26",
"fecha_baja": "2025-01-20",
"salario_base_cotizacion": "$379.1", // Daily salary registered with the institution
"semanas_laboradas": "16"
},
{
"registro_patronal": "A123456789", // Official employer identifier
"nombre": "EMPRESA EJEMPLO S.A. DE C.V.",
"fecha_alta": "2023-01-10",
"fecha_baja": "2023-01-17",
"salario_base_cotizacion": "$350.0", // Daily salary registered with the institution
"semanas_laboradas": "1"
}
]
},
"status": "Finalizado",
"result": "Proceso completo"
}
}