curl --location '/v1/dian/payroll-documents/?isTest=true&companyId=901084328&providerId=901084328' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"TypeCode": "102", //102-Documento soporte de pago de nómina electrónica
"Number": 193,
"Date": "2024-02-12T16:55:25.487",
"Note": "",
"NumberingRange": {
"Id": 0,
"Date": "2021-10-01T00:00:00",
"Prefix": "DSNE",
"FromNumber": 1,
"ToNumber": 100000,
"TechnicalKey": "",
"StartDate": "2021-10-01T00:00:00",
"EndDate": "2050-12-31T00:00:00"
},
"SoftwareProvider": {
"Id": "5b1400b0-f8bd-4cfb-b03c-6923d0551e55",
"Name": "eNomina",
"Pin": "84328",
"TestSetId": "920db886-008d-478d-b82a-d50bb1110006",
"ProviderId": "901084328",
"ProviderName": "GRAFOSOFT SAS",
"Origin": "Bilidox"
},
"SigningCertificate": {
"Password": "OMzWmXwBKXTnyQGZ",
"Content": "",
"Url": "https://app.cuental.com/ImagesArchivo/CF_20230701103059766.p12",
"Token": "aHR0cHM6Ly9hcHAuY3VlbnRhbC5jb20vSW1hZ2VzQXJjaGl2by9DRl8yMDIzMDcwMTEwMzA1OTc2Ni5wMTJ-T016V21Yd0JLWFRueVFHWg"
},
"CompanyParty": {
"ProviderId": "901084328",
"ImageUrl": "https://app.cuental.com/ImagesArchivo/PM_20180517201411241.jpg",
"Id": "901084328",
"IdentificationType": "31", //GetAllIdentificationTypes
"Name": "GRAFOSOFT SAS",
"PhysicalLocation": {
"Address": "NATURA ECOPARQUE EMPRESARIAL KM 2 ANILLO VIAL OF 628 T2",
"CityCode": "68276", //GetAllCities
"SubentityCode": "68", //GetAllSubentities
"CountryCode": "CO", //GetAllCountries
"PostalZone": ""
},
"OrganizationTypeCode": "1", //GetAllOrganizationTypes
"RegimeCode": "R-99-PN", //GetAllTaxLevels
"TaxLevelCode": "R-99-PN", //GetAllTaxLevels
"TaxResidentCode": "10", //GetAllTaxResidentTypes
"TaxCode": null, //GetAllTaxTypes
"CorporateRegistration": "05-376678-16",
"IndustryClassificationCode": "6201",
"Email": "gerencia@grafosoft.com",
"Phone": "3108697825"
},
"EmployeeParty": {
"Code": "364247",
"TypeCode": "01", //GetAllEmployeeTypes
"SubtypeCode": "00", //GetAllEmployeeSubtypes
"IsPensionRisk": false,
"FirstName": "Jhon",
"MiddleName": "David",
"FirstSurname": "Hernandez",
"SecondSurname": "Ferrer",
"ContractType": "2", //GetAllContractTypes
"IsIntegralSalary": true,
"SalaryAmount": 1800000.00,
"Name": "Jhon David Hernandez Ferrer",
"Id": "1095786063",
"IdentificationType": "13", //GetAllIdentificationTypes
"PhysicalLocation": {
"Address": "VEREDA CASIANO ALTO - FINCA EL CONSUELO",
"CityCode": "68276", //GetAllCities
"SubentityCode": "68", //GetAllSubentities
"CountryCode": "CO", //GetAllCountries
"PostalZone": ""
},
"OrganizationTypeCode": "2", //GetAllOrganizationTypes
"RegimeCode": "R-99-PN", //GetAllTaxLevels
"TaxLevelCode": "R-99-PN", //GetAllTaxLevels
"TaxResidentCode": "10", //GetAllTaxResidentTypes
"TaxCode": "", //GetAllTaxTypes
"CorporateRegistration": "00000",
"Email": "jhherdaferrer@gmail.com",
"Phone": "3022910748"
},
"Information": {
"Date": "2024-02-12T16:55:25.487",
"Address": "NATURA ECOPARQUE EMPRESARIAL KM 2 ANILLO VIAL OF 628 T2",
"CurrencyCode": "COP",
"CurrencyBaseRate": 1.0,
"PeriodCode": "4" //GetAllPayrrollPeriods
},
"Period": {
"EntryDate": "2023-11-16T00:00:00",
"FinishDate": null,
"StartDate": "2024-01-01T00:00:00",
"EndDate": "2024-01-31T00:00:00",
"TimeWorkedDays": 76 //TiempoLaborado-Dias //Cantidad de Tiempo en días que lleva laborando el Trabajador en la empresa.
},
"Pay": {
"Code": "1", //GetAllPaymentMeansIDTypes
"Date": "2024-01-31T00:00:00",
"MethodCode": "31" //GetAllPaymentMeansCodeTypes
},
"Account": {
"Bank": "",
"Type": "Ahorros", //texto libre
"Number": ""
},
"Items": [
{
"Type": "Devengo",
"code": "Basico", //GetAllPayrollConcepts
"Quantity": 15.00,
"Description": "",
"StartDate": "0001-01-01T00:00:00",
"EndDate": "0001-01-01T00:00:00",
"Amount": 900000.00,
"InhabilityCode": "0", //GetAllInhabilityTypes //Tipo de incapacidad
"IsSalary": false
},
{
"Type": "Devengo",
"code": "Basico",
"Quantity": 15.00,
"Description": "",
"StartDate": "0001-01-01T00:00:00",
"EndDate": "0001-01-01T00:00:00",
"Amount": 900000.00,
"InhabilityCode": "0",
"IsSalary": false
},
{
"Type": "Devengo",
"code": "Transporte",
"Quantity": 15.00,
"Description": "",
"StartDate": "0001-01-01T00:00:00",
"EndDate": "0001-01-01T00:00:00",
"Amount": 81000.00,
"InhabilityCode": "0",
"IsSalary": false
},
{
"Type": "Devengo",
"code": "Transporte",
"Quantity": 15.00,
"Description": "",
"StartDate": "0001-01-01T00:00:00",
"EndDate": "0001-01-01T00:00:00",
"Amount": 81000.00,
"InhabilityCode": "0",
"IsSalary": false
},
{
"Type": "Deduccion",
"code": "Salud",
"Quantity": 1.00,
"Description": "",
"StartDate": "0001-01-01T00:00:00",
"EndDate": "0001-01-01T00:00:00",
"Amount": 36000.00,
"InhabilityCode": "0",
"IsSalary": false
},
{
"Type": "Deduccion",
"code": "Salud",
"Quantity": 1.00,
"Description": "",
"StartDate": "0001-01-01T00:00:00",
"EndDate": "0001-01-01T00:00:00",
"Amount": 36000.00,
"InhabilityCode": "0",
"IsSalary": false
},
{
"Type": "Deduccion",
"code": "FondoPension",
"Quantity": 1.00,
"Description": "",
"StartDate": "0001-01-01T00:00:00",
"EndDate": "0001-01-01T00:00:00",
"Amount": 36000.00,
"InhabilityCode": "0",
"IsSalary": false
},
{
"Type": "Deduccion",
"code": "FondoPension",
"Quantity": 1.00,
"Description": "",
"StartDate": "0001-01-01T00:00:00",
"EndDate": "0001-01-01T00:00:00",
"Amount": 36000.00,
"InhabilityCode": "0",
"IsSalary": false
}
],
"CustomizePrintFormat": {
"HeaderText": "",
"FooterText": "Esta Factura de Venta se asimila en sus efectos a la letra de Cambio (Art. 621 y 774 de C.C.)"
},
"MonetaryTotal": {
"PayableAmount": 1962000.0, //devengos
"DiscountAmount": 144000.0, //deducciones
"TotalAmount": 1818000.0 //devengos - deducciones
}
}'