Skip to content

Exportar Movimientos Contables

Este endpoint permite la exportación de movimientos contables a Siigo Pyme, asegurando que los datos sean registrados correctamente en el sistema.

🌍 Endpoint

post

Terminal window
https://siigointerface.ensamblefs.com:4005/api/v1/siigo-pyme/send

🔹 Encabezados

EncabezadoValorDescripción
Content-Typeapplication/jsonIndica que los datos se envían en formato JSON.
AuthorizationBearer <api_key>API Key otorgada por iFactory SAS.
Acceptapplication/jsonIndica que la respuesta debe estar en formato JSON.

📝 Parámetros de la Solicitud

Estos son los datos requeridos para una solicitud exitosa:

CampoCampo AnidadoTipoValor / LímiteDescripción
id_connection-String (obligatorio)-ID único de conexión a Siigo Connector V2.
execution_type-String (obligatorio)exportIndica que se están exportando datos.
resource-String (obligatorio)accounting_movementsEspecifica que se exportan movimientos contables.
data-Object (obligatorio)-Contiene los datos a exportar.
paramsObject (obligatorio)-Parámetros adicionales para la exportación.
yearNumber (opcional)Año actual por defectoAño a exportar.
basic_invoiceString (obligatorio)S = Sí, N = NoFactura básica con mínimos campos.
modify_documentsString (obligatorio)S = Sí, N = NoSobrescribir documento existente.
listArray (obligatorio)-Lista de movimientos contables a exportar.
request_config-Object-Configuración avanzada de la petición.
timeoutNumber2 - 20 minTiempo de espera por petición.
attemptsNumber1 - 3 intentosReintentos en caso de fallo.
backoffNumber0.5 - 30 minTiempo de espera entre reintentos.

📦 Datos a Enviar

Aquí tienes un listado de los campos en Siigo Pyme y sus referencias:

CampoReferenciaTipo
TIPO DE COMPROBANTE (OBLIGATORIO)voucher_typestring
CÓDIGO COMPROBANTE (OBLIGATORIO)voucher_codenumber
NÚMERO DE DOCUMENTOdocument_numbernumber
CUENTA CONTABLE (OBLIGATORIO)accounting_accountnumber
DÉBITO O CRÉDITO (OBLIGATORIO)debit_or_creditstring
VALOR DE LA SECUENCIA (OBLIGATORIO)sequence_value number
AÑO DEL DOCUMENTOdocument_yearnumber
MES DEL DOCUMENTOdocument_month number
DÍA DEL DOCUMENTOdocument_daynumber
CÓDIGO DEL VENDEDORsalesperson_code number
CÓDIGO DE LA CIUDADcity_codenumber
CÓDIGO DE LA ZONAzone_code number
SECUENCIAsequencenumber
CENTRO DE COSTOcost_center number
SUBCENTRO DE COSTOsub_cost_centernumber
NITnit number
SUCURSALbranchnumber
DESCRIPCIÓN DE LA SECUENCIAsequence_description string
NÚMERO DE CHEQUEcheck_numbernumber
COMPROBANTE ANULADOcanceled_voucher string
CÓDIGO DEL MOTIVO DE DEVOLUCIÓNreturn_reason_codenumber
FORMA DE PAGOpayment_method number
VALOR DEL CARGO 1 DE LA SECUENCIAsequence_charge_1_valuenumber
VALOR DEL CARGO 2 DE LA SECUENCIAsequence_charge_2_value number
VALOR DEL DESCUENTO 1 DE LA SECUENCIAsequence_discount_1_valuenumber
VALOR DEL DESCUENTO 2 DE LA SECUENCIAsequence_discount_2_value number
VALOR DEL DESCUENTO 3 DE LA SECUENCIAsequence_discount_3_valuenumber
FACTURA ELECTRÓNICA A DEBITAR/ACREDITARelectronic_invoice_to_debit_or_credit string
NÚMERO DE FACTURA ELECTRÓNICA A DEBITAR/ACREDITARnumber_electronic_invoice_to_debit_or_credit number
CUFEcufestring
PREFIJO DE ORDER REFERENCEorder_reference_prefixstring
CONSECUTIVO DE ORDER REFERENCEconsecutive_of_order_referencestring
PREFIJO ORDEN DE ENTREGAdelivery_schedule_prefixstring
NÚMERO ORDEN DE ENTREGArelease_numberstring
AÑO FECHA DE ORDEN DE ENTREGAyear_release_datestring
MES FECHA DE ORDEN DE ENTREGAmonth_release_datestring
DÍA FECHA DE ORDEN DE ENTREGAday_release_datestring
DÍA FECHA DE ORDEN DE ENTREGAday_release_datestring
INGRESOS PARA TERCEROSthird_party_revenuesstring
FECHA ACTUALIZACIÓN DEL DOCUMENTOdocument_update_datestring
HORA DE ACTUALIZACIÓN DEL DOCUMENTOdocument_update_timestring
PREFIJO ORDEN DE ENTREGA2release_prefix2string
NÚMERO ORDEN DE ENTREGA2release_number2string
AÑO FECHA DE ORDEN DE ENTREGA2year_release_date2string
MES FECHA DE ORDEN DE ENTREGA2month_release_date2string
DÍA FECHA DE ORDEN DE ENTREGA2day_release_date2string
PREFIJO ORDEN DE ENTREGA3release_prefix3string
NÚMERO ORDEN DE ENTREGA3release_number3string
AÑO FECHA DE ORDEN DE ENTREGA3year_release_date3string
MES FECHA DE ORDEN DE ENTREGA3month_release_date3string
DÍA FECHA DE ORDEN DE ENTREGA3day_release_date3string
PREFIJO ORDEN DE ENTREGA4release_prefix4string
NÚMERO ORDEN DE ENTREGA4release_number4string
AÑO FECHA DE ORDEN DE ENTREGA4year_release_date4string
MES FECHA DE ORDEN DE ENTREGA4month_release_date4string
DÍA FECHA DE ORDEN DE ENTREGA4day_release_date4string
PREFIJO ORDEN DE ENTREGA5release_prefix5string
NÚMERO ORDEN DE ENTREGA5release_number5string
AÑO FECHA DE ORDEN DE ENTREGA5year_release_date5string
MES FECHA DE ORDEN DE ENTREGA5month_release_date5string
DÍA FECHA DE ORDEN DE ENTREGA5day_release_date5string
PORCENTAJE ALIMENTOS ULTRAPROCESADOSultra_processed_foods_percentage number
VALOR ALIMENTOS ULTRAPROCESADOSultra_processed_foods_valuenumber
VALOR BEBIDAS AZUCARADASsugary_beverages_value number
PORCENTAJE DEL IVA DE LA SECUENCIAsequence_vat_percentagenumber
VALOR DE IVA DE LA SECUENCIAsequence_vat_value number
BASE DE RETENCIÓNwithholding_basenumber
BASE PARA CUENTAS MARCADAS COMO RETEIVAvat_withholding_base_for_marked_accounts number
SECUENCIA GRAVADA O EXCENTAtaxable_or_exempt_sequencestring
PORCENTAJE AIUaiu_percentage number
BASE IVA AIUaiu_vat_basenumber
VALOR TOTAL IMPOCONSUMO DE LA SECUENCIAsequence_total_excise_tax_value number
LÍNEA PRODUCTOproduct_linenumber
GRUPO PRODUCTOproduct_group number
CÓDIGO PRODUCTOproduct_codenumber
CANTIDADquantity number
CANTIDAD DOSquantity_twonumber
CÓDIGO DE LA BODEGAwarehouse_code number
CÓDIGO DE LA UBICACIÓNlocation_codenumber
CANTIDAD DE FACTOR DE CONVERSIÓNconversion_factor_quantity number
OPERADOR DE FACTOR DE CONVERSIÓNconversion_factor_operatornumber
VALOR DEL FACTOR DE CONVERSIÓNconversion_factor_value number
LOTElotstring
AÑO DEL VENCIMIENTO DEL LOTEyear_lot_expiration number
MES DEL VENCIMIENTO DEL LOTEmonth_lot_expirationnumber
DÍA DEL VENCIMIENTO DEL LOTEday_lot_expiration number
CLASIFICACIÓN 1classification_1string
CLASIFICACIÓN 2classification_2 string
GRUPO ACTIVOSasset_groupnumber
CÓDIGO ACTIVOasset_code number
ADICIÓN O MEJORAaddition_or_improvementstring
VECES ADICIONALES A DEPRECIAR POR ADICIÓN O MEJORAadditional_depreciation_times_for_improvement number
VECES A DEPRECIAR NIIFniif_depreciation_timesnumber
NÚMERO DEL DOCUMENTO DEL PROVEEDORsupplier_document_number number
PREFIJO DEL DOCUMENTO DEL PROVEEDORsupplier_document_prefixstring
AÑO DOCUMENTO DEL PROVEEDORsupplier_document_year number
MES DOCUMENTO DEL PROVEEDORsupplier_document_monthnumber
DÍA DOCUMENTO DEL PROVEEDORsupplier_document_day number
TIPO DOCUMENTO DE PEDIDOorder_document_typestring
CÓDIGO COMPROBANTE DE PEDIDOorder_voucher_code number
NÚMERO DE COMPROBANTE PEDIDOorder_voucher_numbernumber
SECUENCIA DE PEDIDOorder_sequence number
TIPO DE MONEDA ELABORACIÓNcurrency_typenumber
TIPO Y COMPROBANTE CRUCEcross_voucher_type number
NÚMERO DE DOCUMENTO CRUCEcross_document_numbernumber
NÚMERO DE VENCIMIENTOexpiration_number number
AÑO VENCIMIENTO DE DOCUMENTO CRUCEcross_document_expiration_yearnumber
MES VENCIMIENTO DE DOCUMENTO CRUCEcross_document_expiration_month number
DÍA VENCIMIENTO DE DOCUMENTO CRUCEcross_document_expiration_daynumber
NÚMERO DE CAJA ASOCIADA AL COMPROBANTEassociated_cash_register_number number
CONCEPTO DE NÓMINApayroll_conceptnumber
CANTIDAD (DÍAS /HORAS. ETC)quantity_days_hours number
TIPO DE PAGOpayment_typenumber
DESCRIPCIÓN DE COMENTARIOScomments_description string
DESCRIPCIÓN LARGAlong_descriptionstring
INCONTERMinconterm string
DESCRIPCIÓN EXPORTACIÓNexport_description string
MEDIO DE TRANSPORTEtransport_means string
PAÍS DE ORIGENcountry_of_originnumber
CIUDAD DE ORIGENcity_of_origin number
PAIS DESTINOdestination_countrynumber
CIUDAD DESTINOdestination_citynumber
PESO NETOnet_weightnumber
PESO BRUTOgross_weight number
UNIDAD DE MEDIDA NETOnet_measurement_unitstring
UNIDAD DE MEDIDA BRUTOgross_measurement_unit string
CONCEPTO FACTURACION EN BLOQUEblock_billing_conceptstring
DATOS ESTABLEC. (L=LOCAL O=OFICINA)establishment_data_local_or_office string
NÚMERO ESTABLECIMIENTOestablishment_numbernumber
CONCEPTO DE FACTURACIÓNbilling_concept number
GRUPO DEL INMUEBLEproperty_groupstring
SUBGRUPO DEL INMUEBLEproperty_subgroup number
NÚMERO DEL INMUEBLEproperty_numberstring

📝 Ejemplo de Request JSON

{
"id_connection": "OBai6kmwKH",
"execution_type": "export",
"resource": "accounting_movements",
"data": {
"params": {
"year": 2024
},
"list": [
{
"voucher_type": "F",
"voucher_code": 1,
"document_number": 987654,
"accounting_account": 456789,
"debit_or_credit": "D",
"sequence_value": 10000,
"document_year": 2025,
"document_month": 3,
"document_day": 10,
"salesperson_code": 789,
"city_code": 11001,
"zone_code": 5,
"sequence": 1,
"cost_center": 101,
"sub_cost_center": 202,
"nit": 900123456,
"branch": 2,
"sequence_description": "Venta de productos electrónicos",
"check_number": 0,
"canceled_voucher": "N",
"return_reason_code": 0,
"payment_method": 1,
"sequence_charge_1_value": 0,
"sequence_charge_2_value": 0,
"sequence_discount_1_value": 500,
"sequence_discount_2_value": 100,
"sequence_discount_3_value": 50,
"electronic_invoice_to_debit_or_credit": "N",
"number_electronic_invoice_to_debit_or_credit": 0,
"cufe": "ABCDE12345FGHIJ67890",
"order_reference_prefix": "ORD",
"consecutive_of_order_reference": "2025031001",
"delivery_schedule_prefix": "DS",
"release_number": "1001",
"year_release_date": "2025",
"month_release_date": "03",
"day_release_date": "10",
"third_party_revenues": "N",
"document_update_date": "2025-03-10",
"document_update_time": "14:30:00",
"release_prefix2": "RP2",
"release_number2": "2002",
"year_release_date2": "2025",
"month_release_date2": "03",
"day_release_date2": "11",
"ultra_processed_foods_percentage": 10,
"ultra_processed_foods_value": 2000,
"sugary_beverages_value": 1500,
"sequence_vat_percentage": 19,
"sequence_vat_value": 1900,
"withholding_base": 5000,
"vat_withholding_base_for_marked_accounts": 1000,
"taxable_or_exempt_sequence": "Gravada",
"aiu_percentage": 5,
"aiu_vat_base": 500,
"sequence_total_excise_tax_value": 300,
"product_line": 10,
"product_group": 20,
"product_code": 305,
"quantity": 3,
"quantity_two": 0,
"warehouse_code": 1,
"location_code": 101,
"conversion_factor_quantity": 1,
"conversion_factor_operator": 1,
"conversion_factor_value": 1.0,
"lot": "L20250310",
"year_lot_expiration": 2026,
"month_lot_expiration": 3,
"day_lot_expiration": 10,
"classification_1": "Electrónica",
"classification_2": "Consumo",
"asset_group": 5,
"asset_code": 5001,
"addition_or_improvement": "N",
"additional_depreciation_times_for_improvement": 0,
"niif_depreciation_times": 5,
"supplier_document_number": 12345678,
"supplier_document_prefix": "INV",
"supplier_document_year": 2025,
"supplier_document_month": 3,
"supplier_document_day": 5,
"order_document_type": "Pedido",
"order_voucher_code": 305,
"order_voucher_number": 67890,
"order_sequence": 1,
"currency_type": 1,
"cross_voucher_type": 0,
"cross_document_number": 0,
"expiration_number": 101,
"cross_document_expiration_year": 2025,
"cross_document_expiration_month": 6,
"cross_document_expiration_day": 30,
"associated_cash_register_number": 10,
"payroll_concept": 501,
"quantity_days_hours": 8,
"payment_type": 1,
"comments_description": "Pago realizado vía transferencia bancaria",
"long_description": "Factura por venta de equipos electrónicos",
"inconterm": "FOB",
"export_description": "Envío de productos electrónicos",
"transport_means": "Aéreo",
"country_of_origin": 170,
"city_of_origin": 11001,
"destination_country": 840,
"destination_city": 3651000,
"net_weight": 5,
"gross_weight": 6,
"net_measurement_unit": "kg",
"gross_measurement_unit": "kg",
"block_billing_concept": "No aplica",
"establishment_data_local_or_office": "L",
"establishment_number": 3,
"billing_concept": 45,
"property_group": "Comercial",
"property_subgroup": 1,
"property_number": "LOC2025"
}
]
}
}

📥 Response JSON (Éxito)

{
"statusCode": 200,
"message": "Movimientos contables insertados correctamente en Siigo Pyme",
"errors": null
}

Este endpoint permite la integración eficiente con Siigo Pyme, asegurando la correcta exportación de movimientos contables. 🚀