Skip to content

Exportar Terceros

Este endpoint permite la exportación de terceros 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)thirdsEspecifica que se exportan terceros.
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.
listArray (obligatorio)-Lista de terceros 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
IDENTIFICACIÓN (OBLIGATORIO)identificationnumber
SUCURSAL (OBLIGATORIO)branch number
DIGITO DE VERIFICACIÓNverification_digitnumber
NOMBREname string
RAZÓN SOCIALlegal_namestring
PRIMER NOMBREfirst_name string
SEGUNDO NOMBREmiddle_namestring
PRIMER APELLIDOfirst_surnamestring
SEGUNDO APELLIDOsecond_surnamestring
NÚMERO DE IDENTIFICACIÓN DEL EXTRANJEROforeign_identification_number string
CÓDIGO IDENTIFICACIÓN FISCALtax_identification_codestring
NOMBRE DEL CONTACTOcontact_name string
DIRECCIÓNaddressstring
PAÍScountry number
CIUDADcitynumber
ACTIVOactive string
TELÉFONO 1phone_1number
TELÉFONO 2phone_2 number
TELÉFONO 3phone_3number
TELÉFONO 4phone_4 number
TELÉFONO CELULARcell_phonenumber
FAXfax number
APARTADO AÉREOpo_boxnumber
SEXOgender string
AÑO DE CUMPLEAÑOSbirthday_yearnumber
MES DE CUMPLEAÑOSbirthday_month number
DÍA DE CUMPLEAÑOSbirthday_daynumber
TIPO DE PERSONAperson_type number
CORREO ELECTRÓNICOemailstring
CONTACTO DE FACTURACIÓNbilling_contact string
CORREO ELECT. CONTACTO DE FACTURACIÓNbilling_contact_emailstring
TIPO DE IDENTIFICACIÓNidentification_type string
CLASIFICACIÓN - CLASE DE TERCEROclassification_third_party_typestring
DECLARANTEdeclarer string
AUTO RETENEDORself_withholderstring
AGENTE RETENEDORwithholding_agent string
BENEFICIO DIAN RETEIVA COMPRASdian_withholding_benefit_purchasesstring
TARIFA DIFERENCIAL RETE IVA VENTASdifferential_withholding_rate_sales string
PORCENTAJE DIFERENCIAL RETE IVA VENTASdifferential_withholding_percentage_salesnumber
TARIFA DIFERENCIAL RETE IVA COMPRASdifferential_withholding_rate_purchases string
PORCENTAJE DIFERENCIAL RETE IVA COMPRASdifferential_withholding_percentage_purchasesnumber
CUPO DE CRÉDITOcredit_limit number
LISTA DE PRECIOprice_listnumber
FORMA DE PAGOpayment_method number
CALIFICACIÓNratingnumber
TIPO CONTRIBUYENTEtaxpayer_type number
CÓDIGO ACTIVIDAD ECONÓMICAeconomic_activity_codenumber
VENDEDORseller number
COBRADORcollectornumber
PORCENTAJE DESCUENTO EN VENTASsales_discount_percentage number
PERÍODO DE PAGOpayment_periodnumber
OBSERVACIÓNobservation string
DÍAS OPTIMISTAoptimistic_daysnumber
DÍAS PESIMISTApessimistic_days number
CÓDIGO TIPO DE EMPRESAcompany_type_codenumber
CÓDIGO DE BANCObank_code number
CÓDIGO INTERNOinternal_codenumber
CÓDIGO OFICINAoffice_codenumber
TIPO DE CUENTAaccount_typestring
NÚMERO DE CUENTAaccount_number number
NIT DEL TITULAR DE LA CUENTAaccount_holder_nitnumber
DÍGITO DE VERIFICACIÓN TITULAR DE LA CUENTAaccount_holder_verification_digit number
NOMBRE DEL TITULAR DE LA CUENTAaccount_holder_namestring
PAÍS DE LA CUENTAaccount_country number
CIUDAD DE LA CUENTAaccount_citynumber
SIGLAS DEPARTAMENTO DE LA CUENTAaccount_department_acronym string
ACEPTA ENVÍO FACTURA POR MEDIO ELECTRÓNICOaccepts_electronic_invoice_sendingstring
NOMBRE COMERCIALcommercial_name string
CODIGO POSTALpostal_codestring
RESPONSABILIDAD FISCALfiscal_responsibility string
AÑO APERTURAopening_yearnumber
MES APERTURAopening_month number
DIA APERTURAopening_daynumber
TRIBUTOStaxesstring

📝 Ejemplo de Request JSON

{
"id_connection": "OBai6kmwKH",
"execution_type": "export",
"resource": "thirds",
"data": {
"params": {
"year": 2024
},
"list": [
{
"identification": 900123456,
"branch": 1,
"verification_digit": 5,
"name": "Empresa XYZ",
"legal_name": "XYZ S.A.S.",
"first_name": "Juan",
"middle_name": "Carlos",
"first_surname": "Pérez",
"second_surname": "López",
"foreign_identification_number": "AB12345",
"tax_identification_code": "TI123456",
"contact_name": "María Gómez",
"address": "Calle 123 #45-67, Bogotá",
"country": 170,
"city": 11001,
"active": "",
"phone_1": 6011234567,
"phone_2": 6017654321,
"phone_3": 6019876543,
"phone_4": 6016543210,
"cell_phone": 3112345678,
"fax": 6018765432,
"po_box": 1234,
"gender": "M",
"birthday_year": 1985,
"birthday_month": 6,
"birthday_day": 15,
"person_type": 1,
"email": "contacto@empresa.com",
"billing_contact": "Carlos Ramírez",
"billing_contact_email": "facturacion@empresa.com",
"identification_type": "NIT",
"classification_third_party_type": "Proveedor",
"declarer": "",
"self_withholder": "No",
"withholding_agent": "",
"dian_withholding_benefit_purchases": "No",
"differential_withholding_rate_sales": "No",
"differential_withholding_percentage_sales": 0,
"differential_withholding_rate_purchases": "No",
"differential_withholding_percentage_purchases": 0,
"credit_limit": 50000000,
"price_list": 1,
"payment_method": 1,
"rating": 5,
"taxpayer_type": 1,
"economic_activity_code": 6201,
"seller": 5001,
"collector": 6001,
"sales_discount_percentage": 10,
"payment_period": 30,
"observation": "Cliente preferencial con pagos a 30 días",
"optimistic_days": 15,
"pessimistic_days": 45,
"company_type_code": 2,
"bank_code": 1001,
"internal_code": 7890,
"office_code": 3001,
"account_type": "Corriente",
"account_number": 987654321,
"account_holder_nit": 900654321,
"account_holder_verification_digit": 8,
"account_holder_name": "XYZ S.A.S.",
"account_country": 170,
"account_city": 11001,
"account_department_acronym": "CUN",
"accepts_electronic_invoice_sending": "",
"commercial_name": "XYZ Solutions",
"postal_code": "110111",
"fiscal_responsibility": "O-13",
"opening_year": 2010,
"opening_month": 5,
"opening_day": 20,
"taxes": "IVA, ReteFuente"
}
]
}
}

📥 Response JSON (Éxito)

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

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