3) API para obter os valores calculados (reportEsocialInssDctfWeb/InssValues) http://localhost:8051/api/rh/esocial/v1/reportEsocialInssDctfWeb/InssValues
Parâmetros GET: Identificador da empresa | (1-1) | companyId | string | Período folha (obrigatório) - AAAAMM → mensal
- AAAA → anual
| (1-1) | paymentPeriod | string | Inscrição estabelecimento | (0-N) | registrationNumber | Array<string> | Somente divergências | (0-1) | differencesOnly | boolean (default: false) |
Exemplo do query Params: companyId=1&paymentPeriod=202205®istrationNumber=07.577.599/0001-70,07.577.599/0002-50&differencesOnly=true Exemplo do Json response: { "hasNext": false, "items": [ { "companyId": 1, "month": 1, "year": 2022, "period": 1, "totalEmployees": 3681.56, "totalCompany": 18383.02, "totalDeductions": 0.00, "totalInss": 22064.58, "totalEmployeesRet": 865.88, "totalCompanyRet": 2000.00, "totalDeductionsRet": 0.00, "totalInssRet": 3545.88, "establishments": [ { "registrationNumber": "07.577.599/0001-70", "description": "RM Sistemas - Matriz 2", "cnae": "4511104", "aliquotRat": 2.0, "aliquotRatAdjusted": 1.0000, "fap": 0.5000, "employerReplacement": false, "cnaeRet": "4511104", "aliquotRatRet": 2.0, "aliquotRatAdjustedRet": 1.0000, "fapRet": 0.5000, "employerReplacementRet": false, "establishmentValues": [ { "code": "1138-01", "payrollValue": 8282.74, "retValue": 2000.00, "divergent": true }, { "code": "1170-01", "payrollValue": 60.05, "retValue": 250.00, "divergent": true }, { "code": "1176-01", "payrollValue": 4.80, "retValue": 20.00, "divergent": true }, { "code": "1191-01", "payrollValue": 24.02, "retValue": 100.00, "divergent": true }, { "code": "1196-01", "payrollValue": 36.03, "retValue": 150.00, "divergent": true }, { "code": "1200-01", "payrollValue": 14.41, "retValue": 60.00, "divergent": true }, { "code": "1646-01", "payrollValue": 621.20, "retValue": 100.00, "divergent": true } ], "lotations": [ { "lotationCode": "Z101", "description": "RM Sistemas - Matriz 2", "fpas": "515", "thirdCode": "0115", "fpasRet": "", "thirdCodeRet": "", "lotationValues": [ { "category": 101, "valueGroup": "basesCp", "valueType": "vrBcCp00", "payrollValue": 41413.74, "retValue": 0.00, "divergent": true } ] } ] }, { "registrationNumber": "07.577.599/0002-50", "description": "RM Sistemas - FRJ", "cnae": "4522501", "aliquotRat": 2.0, "aliquotRatAdjusted": 2.0000, "fap": 1.0000, "employerReplacement": false, "cnaeRet": "", "aliquotRatRet": 0.0, "aliquotRatAdjustedRet": 0.0000, "fapRet": 0.0000, "employerReplacementRet": false, "establishmentValues": [ { "code": "1138-01", "payrollValue": 1091.44, "retValue": 0.00, "divergent": true }, { "code": "1646-01", "payrollValue": 109.14, "retValue": 0.00, "divergent": true } ], "lotations": [ { "lotationCode": "Z102", "description": "RM Sistemas - FRJ", "fpas": "515", "thirdCode": "0115", "fpasRet": "", "thirdCodeRet": "", "lotationValues": [ { "category": 410, "valueType": "vrBcCp00", "payrollValue": 5457.24, "retValue": 0.00, "divergent": true } ] } ] } ] } ] } |