Modelos de documentos
Modelo Factura Básica
{
"number" : 990000001,
"type_document_id" : 1,
"date" : "2021-08-17",
"time" : "04:08:12",
"resolution_number" : "18760000001",
"prefix" : "SETP",
"notes" : "",
"disable_confirmation_text" : true,
"establishment_name" : "NOMBRE EMPRESA",
"establishment_address" : "CLL 18A 11 - 20",
"establishment_phone" : "3106031839",
"establishment_municipality" : 439,
"atacheddocument_name_prefix" : null,
"establishment_email" : "alternate_email@dominio.com",
"sendmail" : true,
"sendmailtome" : true,
"seze" : "2021-2017",
"head_note" : "NOTA EN EL ENCABEZADO DE PAGINA",
"foot_note" : "NOTA EN EL PIE DE PAGINA",
"customer" : {
"identification_number" : 901249232,
"dv": 0,
"name": "NOMBRE EMPRESA",
"phone": 3106031839,
"address": "CLL 18A # 11 - 20,
"email": "email_cliente@dominio.com",
"merchant_registration": "0000000-00",
"type_document_identification_id": 6,
"type_organization_id": 1,
"type_liability_id": 117,
"municipality_id": 439,
"type_regime_id": 1
},
"payment_form": {
"payment_form_id": 2,
"payment_method_id": 30,
"payment_due_date": "2021-09-17",
"duration_measure": "30"
},
"allowance_charges": [
{
"discount_id": 1,
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "50000.00",
"base_amount": "1000000.00"
}
],
"legal_monetary_totals": {
"line_extension_amount": "840336.134",
"tax_exclusive_amount": "840336.134",
"tax_inclusive_amount": "1000000.00",
"allowance_total_amount": "50000.00",
"payable_amount": "950000.00"
},
"tax_totals":
[
{
"tax_id": 1,
"tax_amount": "159663.865",
"percent": "19",
"taxable_amount": "840336.134"
}
],
"invoice_lines":
[
{
"unit_measure_id": 70,
"invoiced_quantity": "1",
"line_extension_amount": "840336.134",
"free_of_charge_indicator": false,
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "159663.865",
"taxable_amount": "840336.134",
"percent": "19.00"
}
],
"description": "COMISION POR SERVICIOS",
"notes": "ESTA ES UNA NOTA DE DETALLE DE LINEA.",
"code": "COMISION",
"type_item_identification_id": 4,
"price_amount": "1000000.00",
"base_quantity": "1"
}
]
}
Modelo Factura Multimoneda
Se deben agregar las siguientes propiedades "idcurrency", "calculationrate" y "calculationratedate"
{
"number" : 990000001,
"type_document_id" : 1,
"date" : "2021-08-17",
"time" : "04:08:12",
"resolution_number" : "18760000001",
"prefix" : "SETP",
"notes" : "",
"disable_confirmation_text" : true,
"establishment_name" : "NOMBRE EMPRESA",
"establishment_address" : "CLL 18A 11 - 20",
"establishment_phone" : "3106031839",
"establishment_municipality" : 439,
"atacheddocument_name_prefix" : null,
"establishment_email" : "alternate_email@dominio.com",
"sendmail" : true,
"sendmailtome" : true,
"seze" : "2021-2017",
"head_note" : "NOTA EN EL ENCABEZADO DE PAGINA",
"foot_note" : "NOTA EN EL PIE DE PAGINA",
"idcurrency": 135,
"calculationrate": "3546.00",
"calculationratedate": "2021-04-03",
"customer" : {
"identification_number" : 901249232,
"dv": 0,
"name": "NOMBRE EMPRESA",
"phone": 3106031839,
"address": "CLL 18A # 11 - 20,
"email": "email_cliente@dominio.com",
"merchant_registration": "0000000-00",
"type_document_identification_id": 6,
"type_organization_id": 1,
"type_liability_id": 117,
"municipality_id": 439,
"type_regime_id": 1
},
"payment_form": {
"payment_form_id": 2,
"payment_method_id": 30,
"payment_due_date": "2021-09-17",
"duration_measure": "30"
},
"allowance_charges": [
{
"discount_id": 1,
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "50000.00",
"base_amount": "1000000.00"
}
],
"legal_monetary_totals": {
"line_extension_amount": "840336.134",
"tax_exclusive_amount": "840336.134",
"tax_inclusive_amount": "1000000.00",
"allowance_total_amount": "50000.00",
"payable_amount": "950000.00"
},
"tax_totals":
[
{
"tax_id": 1,
"tax_amount": "159663.865",
"percent": "19",
"taxable_amount": "840336.134"
}
],
"invoice_lines":
[
{
"unit_measure_id": 70,
"invoiced_quantity": "1",
"line_extension_amount": "840336.134",
"free_of_charge_indicator": false,
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "159663.865",
"taxable_amount": "840336.134",
"percent": "19.00"
}
],
"description": "COMISION POR SERVICIOS",
"notes": "ESTA ES UNA NOTA DE DETALLE DE LINEA.",
"code": "COMISION",
"type_item_identification_id": 4,
"price_amount": "1000000.00",
"base_quantity": "1"
}
]
}
Modelo Factura Sector Salud
{
"number": 990000282,
"type_document_id": 1,
"date": "2021-04-30",
"time": "04:08:12",
"resolution_number": "18760000001",
"prefix": "SETP",
"notes": "Nota general del documento!",
"disable_confirmation_text": true,
"establishment_name": "NOMBRE EMPRESA",
"establishment_address": "CLL 18A NRO 11 - 20",
"establishment_phone": "3106031839",
"establishment_municipality": 600,
"atacheddocument_name_prefix": "FES-SETP990000244-",
"establishment_email": "alternate_email@alternate.com",
"sendmail": true,
"sendemailtome": true,
"seze": "2021-2020",
"head_note": "Documento Generado por NextPyme Plus - Nota en el encabezado del documento",
"foot_note": "Documento Generado por NextPyme Plus - Nota al final del documento",
"health_fields": {
"invoice_period_start_date": "2021-02-01",
"invoice_period_end_date": "2021-03-01",
"health_type_operation_id": 1,
"users_info": [{
"provider_code": "AF-0000500-85-XX-001",
"health_type_document_identification_id": 4,
"identification_number": "A7687362",
"surname": "RAMIREZ",
"second_surname": "RAMIREZ",
"first_name": "JUAN",
"health_type_user_id": 1,
"health_contracting_payment_method_id": 7,
"health_coverage_id": 5,
"autorization_numbers": "A12345;604567;AX-2345",
"mipres": "RNA3D345;664FF04567;ARXXX-2765345",
"mipres_delivery": "RN6645G-345;6-064XX54FF04567;XXX-2-OO-987D65345",
"contract_number": "1000-2021-0005698",
"policy_number": "1045-2FG01-0567228",
"co_payment": "3300.00",
"moderating_fee": "5800.00",
"recovery_fee": "105000.00",
"shared_payment": "225000.00"
},
{
"provider_code": "AF-0000500-85-XX-002",
"health_type_document_identification_id": 3,
"identification_number": "94641692",
"surname": "HERNANDEZ",
"second_surname": "HERNANDEZ",
"first_name": "MARIA",
"health_type_user_id": 2,
"health_contracting_payment_method_id": 3,
"health_coverage_id": 3,
"autorization_numbers": "A12345;604567;AX-2345",
"mipres": "RNA3D345;664FF04567;ARXXX-2765345",
"mipres_delivery": "RN6645G-345;6-064XX54FF04567;XXX-2-OO-987D65345",
"contract_number": "1000-2021-0005698",
"policy_number": "1045-2FG01-0567228",
"co_payment": "3300.00",
"moderating_fee": "5800.00",
"recovery_fee": "105000.00",
"shared_payment": "225000.00"
}
]
},
"customer": {
"identification_number": 901249232,
"dv": 0,
"name": "NOMBRE EMPRESA",
"phone": 3106031839,
"address": "CLL 18A # 11 - 20",
"email": "EMPRESAlorica@gmail.com",
"merchant_registration": "0000000-00",
"type_document_identification_id": 6,
"type_organization_id": 1,
"type_liability_id": 7,
"municipality_id": 822,
"type_regime_id": 1
},
"payment_form": {
"payment_form_id": 2,
"payment_method_id": 30,
"payment_due_date": "2021-05-30",
"duration_measure": "30"
},
"allowance_charges": [{
"discount_id": 1,
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "230000.00",
"base_amount": "9663865.54"
}],
"legal_monetary_totals": {
"line_extension_amount": "9663865.54",
"tax_exclusive_amount": "9663865.55",
"tax_inclusive_amount": "11500000.00",
"allowance_total_amount": "230000.00",
"charge_total_amount": "0.00",
"payable_amount": "11270000.00"
},
"tax_totals": [{
"tax_id": 1,
"tax_amount": "1836134.45",
"percent": "19",
"taxable_amount": "9663865.55"
}],
"invoice_lines": [{
"unit_measure_id": 70,
"invoiced_quantity": "1",
"line_extension_amount": "1260504.20",
"free_of_charge_indicator": false,
"allowance_charges": [{
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "30000.00",
"base_amount": "1500000.00"
}],
"tax_totals": [{
"tax_id": 1,
"tax_amount": "239495.80",
"taxable_amount": "1260504.20",
"percent": "19.00"
}],
"description": "BONOS POR SERVICIOS",
"code": "BONOS",
"type_item_identification_id": 4,
"price_amount": "1290504.20",
"base_quantity": "1"
},
{
"unit_measure_id": 70,
"invoiced_quantity": "1",
"line_extension_amount": "8403361.34",
"free_of_charge_indicator": false,
"allowance_charges": [{
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "200000.00",
"base_amount": "10000000.00"
}],
"tax_totals": [{
"tax_id": 1,
"tax_amount": "1596638.65",
"taxable_amount": "8403361.34",
"percent": "19.00"
}],
"description": "COMISION POR SERVICIOS",
"notes": "NOTA DE DETALLE DE LINEA.",
"code": "COMISION",
"type_item_identification_id": 4,
"price_amount": "8603361.34",
"base_quantity": "1"
}
]
}
Modelo Nota Debito
{
"billing_reference": {
"number": "SETP990000228",
"uuid": "997b75c161e77ebea3d0619cbb75eb567b04ba8571769cd781d9900e29c53968ab99604d83f923df948adfb96c518cf2",
"issue_date": "2021-01-28"
},
"number": 26,
"type_document_id": 5,
"sendmail": true,
"sendmailtome": true,
"date": "2021-01-28",
"time": "04:10:09",
"notes": "Nota general del documento!",
"customer": {
"identification_number": 901249232,
"dv": 0,
"name": "NOMBRE EMPRESA",
"phone": 3106031839,
"address": "CLL 18A # 11 - 20",
"email": "EMPRESAlorica@gmail.com",
"merchant_registration": "0000000-00",
"type_document_identification_id": 6,
"type_organization_id": 1,
"type_liability_id": 7,
"municipality_id": 822,
"type_regime_id": 1
},
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "0.00",
"taxable_amount": "0.00",
"percent": "0.00"
}
],
"requested_monetary_totals": {
"line_extension_amount": "32000.00",
"tax_exclusive_amount": "0",
"tax_inclusive_amount": "32000.00",
"allowance_total_amount": "0",
"charge_total_amount": "0.00",
"payable_amount": "32000.00"
},
"debit_note_lines":
[
{
"unit_measure_id": 70,
"invoiced_quantity": "1",
"line_extension_amount": "32000.00",
"free_of_charge_indicator": false,
"allowance_charges": [{
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "32000.00"
}
],
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "0.00",
"taxable_amount": "0.00",
"percent": "0.00"
}
],
"description": "PRUEBA DE NOTA DEBITO ELECTRONICA",
"code": "001NOTA",
"type_item_identification_id": 4,
"price_amount": "32000",
"base_quantity": "1"
}
]
}
Modelo Nota Credito
{
"billing_reference": {
"number": "SETP990000246",
"uuid": "a3e47abf60b5f399647c6ebf534b1abfa17ac989c6c77e0ec09909b8091c647de80bcdf8cb45dcb7e0052695c545d3ee",
"issue_date": "2021-03-02"
},
"discrepancyresponsecode": 2,
"discrepancyresponsedescription": "PRUEBA DE MOTIVO NOTA CREDITO",
"notes": "Nota general del documento!",
"number": 771,
"type_document_id": 4,
"date": "2021-03-03",
"time": "06:00:13",
"sendmail": true,
"sendmailtome": true,
"seze": "2021-2017",
"head_note": "Documento Generado por NextPyme Plus - Nota en el encabezado del documento",
"foot_note": "Documento Generado por NextPyme Plus - Nota al final del documento",
"customer": {
"identification_number": 901249232,
"dv": 0,
"name": "NOMBRE EMPRESA",
"phone": 3106031839,
"address": "CLL 18A # 11 - 20",
"email": "EMPRESAlorica@gmail.com",
"merchant_registration": "0000000-00",
"type_document_identification_id": 6,
"type_organization_id": 1,
"type_liability_id": 7,
"municipality_id": 822,
"type_regime_id": 1
},
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "0.00",
"taxable_amount": "0.00",
"percent": "0.00"
}
],
"legal_monetary_totals": {
"line_extension_amount": "45000.00",
"tax_exclusive_amount": "0",
"tax_inclusive_amount": "45000.00",
"allowance_total_amount": "0",
"charge_total_amount": "0.00",
"payable_amount": "45000.00"
},
"credit_note_lines":
[
{
"unit_measure_id": 70,
"invoiced_quantity": "1",
"line_extension_amount": "45000.00",
"free_of_charge_indicator": false,
"allowance_charges": [{
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "45000.00"
}
],
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "0.00",
"taxable_amount": "0.00",
"percent": "0.00"
}
],
"description": "PRUEBA NOTA CONTABLE ELECTRONICA",
"code": "001NOTA",
"type_item_identification_id": 4,
"price_amount": "45000",
"base_quantity": "1"
}
]
}
Modelo Documento de Nómina
{
"type_document_id": 9,
"establishment_name": "EMPRESA S.A.S",
"establishment_address": "CRA 18A 11 - 20",
"establishment_phone": "3017882489",
"establishment_municipality": 439,
"establishment_email": "alternate_email@alternate.com",
"head_note": "TEXTO LIBRE QUE DEBE POSICIONARSE EN EL ENCABEZADO DE PAGINA DE LA REPRESENTACION GRAFICA,
"foot_note": "TEXTO LIBRE QUE DEBE POSICIONARSE EN EL PIE DE PAGINA DE LA REPRESENTACION GRAFICA,
"novelty": {
"novelty": false,
"uuidnov": ""
},
"period": {
"admision_date": "2018-10-10",
"settlement_start_date": "2021-07-01",
"settlement_end_date": "2021-07-15",
"worked_time": "15.00",
"issue_date": "2021-07-28"
},
"worker_code": "0001",
"prefix": "A",
"consecutive": 1,
"payroll_period_id": 4,
"notes": "PRUEBA DE ENVIO DE NOMINA ELECTRONICA",
"worker": {
"type_worker_id": 1,
"sub_type_worker_id": 1,
"payroll_type_document_identification_id": 3,
"municipality_id": 822,
"type_contract_id": 1,
"high_risk_pension": false,
"identification_number": 41946692,
"surname": "CARDONA",
"second_surname": "VILLADA",
"first_name": "ELIZABETH",
"address": "BRR LIMONAR MZ 6 CS 3 ET 1",
"email": "email_del_empleado@email.com",
"integral_salarary": false,
"salary": "1500000.00"
},
"payment": {
"payment_method_id": 10,
"bank_name": "BANCO DAVIVIENDA",
"account_type": "AHORROS",
"account_number": "126070603280"
},
"payment_dates": [{
"payment_date": "2021-03-10"
},
{
"payment_date": "2021-03-15"
}
],
"accrued": {
"worked_days": 15,
"salary": "750000.00",
"transportation_allowance": "109000.00",
"HEDs": [{
"start_time": "2021-03-01T18:00:00",
"end_time": "2021-03-01T19:00:00",
"quantity": 1,
"percentage": 1,
"payment": "7812.50"
}
],
"HENs": [{
"start_time": "2021-03-01T21:00:00",
"end_time": "2021-03-01T22:00:00",
"quantity": 1,
"percentage": 2,
"payment": "10937.50"
}],
"HRNs": [{
"start_time": "2021-03-01T21:00:00",
"end_time": "2021-03-01T22:00:00",
"quantity": 1,
"percentage": 3,
"payment": "8437.50"
}
],
"HEDDFs": [{
"start_time": "2021-03-01T21:00:00",
"end_time": "2021-03-01T22:00:00",
"quantity": 1,
"percentage": 4,
"payment": "12500.00"
}],
"HRDDFs": [{
"start_time": "2021-03-01T16:00:00",
"end_time": "2021-03-01T17:00:00",
"quantity": 1,
"percentage": 5,
"payment": "10937.50"
}
],
"HENDFs": [{
"start_time": "2021-03-01T21:00:00",
"end_time": "2021-03-01T22:00:00",
"quantity": 1,
"percentage": 6,
"payment": "15625.00"
}],
"HRNDFs": [{
"start_time": "2021-03-01T21:00:00",
"end_time": "2021-03-01T22:00:00",
"quantity": 1,
"percentage": 7,
"payment": "13125.00"
}],
"common_vacation": [{
"start_date": "2021-03-01",
"end_date": "2021-03-10",
"quantity": 10,
"payment": "500000.00"
}],
"paid_vacation": [{
"quantity": 5,
"payment": "250000.00"
}],
"service_bonus": [{
"quantity": 365,
"payment": "1500000.00",
"paymentNS": "250000.00"
}],
"severance": [{
"payment": "1500000.00",
"percentage": "12",
"interest_payment": "180000.00"
}],
"work_disabilities": [{
"start_date": "2021-03-05",
"end_date": "2021-03-10",
"type": 3,
"quantity": 5,
"payment": "250000.00"
}
],
"maternity_leave": [{
"start_date": "2021-03-11",
"end_date": "2021-03-15",
"quantity": 5,
"payment": "250000.00"
}],
"paid_leave": [{
"start_date": "2021-03-11",
"end_date": "2021-03-15",
"quantity": 5,
"payment": "250000.00"
}],
"non_paid_leave": [{
"start_date": "2021-03-11",
"end_date": "2021-03-15",
"quantity": 5
}],
"bonuses": [{
"salary_bonus": "100000.00"
},
{
"salary_bonus": "95000.00",
"non_salary_bonus": "50000.00"
}
],
"aid": [{
"salary_assistance": "95000.00",
"non_salary_assistance": "50000.00"
}],
"legal_strike": [{
"start_date": "2021-03-01",
"end_date": "2021-03-10",
"quantity": 10
}],
"other_concepts": [{
"salary_concept": "35000",
"non_salary_concept": "50000",
"description_concept": "INGRESO POR OTROS CONCEPTOS"
}],
"compensations": [{
"ordinary_compensation": "135000",
"extraordinary_compensation": "250000"
}],
"epctv_bonuses": [{
"paymentS": "135000",
"paymentNS": "250000",
"salary_food_payment": "135000",
"non_salary_food_payment": "250000"
}],
"commissions": [{
"commission": "135000"
},
{
"commission": "155000"
}
],
"third_party_payments": [{
"third_party_payment": "155000"
}],
"advances": [{
"advance": "135000"
},
{
"advance": "50000"
}
],
"endowment": "250000.00",
"sustenance_support": "1350000.00",
"telecommuting": "250000.00",
"withdrawal_bonus": "250000.00",
"compensation": "135000.00",
"accrued_total": "5145562.50"
},
"deductions": {
"eps_type_law_deductions_id": 1,
"eps_deduction": "60000.00",
"pension_type_law_deductions_id": 5,
"pension_deduction": "60000.00",
"fondossp_type_law_deductions_id": 5,
"fondosp_deduction_SP": "60000.00",
"fondossp_sub_type_law_deductions_id": 5,
"fondosp_deduction_sub": "60000.00",
"labor_union": [{
"percentage": "2.00",
"deduction": "30000.00"
}],
"sanctions": [{
"public_sanction": "300000.00",
"private_sanction": "130000.00"
}],
"orders": [{
"description": "LIBRANZA POR PEDIDO NRO 34256 GRUPO EXITO",
"deduction": "13000.00"
}],
"third_party_payments": [{
"third_party_payment": "155000"
},
{
"third_party_payment": "59000"
}
],
"advances": [{
"advance": "255000"
},
{
"advance": "79000"
}
],
"other_deductions": [{
"other_deduction": "133000"
}],
"voluntary_pension": "158000.00",
"withholding_at_source": "65000.00",
"afc": "33500.00",
"cooperative": "25000.00",
"tax_liens": "38500.00",
"supplementary_plan": "65000.00",
"education": "59000.00",
"refund": "47000.00",
"debt": "39000",
"deductions_total": "120000.00"
}
}