La función de construir y enviar el documento electrónico, se proporciono un ejemplo de la estructra para el método enviar, puede encontrar los campos en el siguiente enlace:
Campos método enviar
Request: Parámetros a enviar
URL: https://demointegracion.thefactoryhka.com.pa/api/Enviar
{
"documento": {
"codigoSucursalEmisor": "string",
"tipoSucursal": "string",
"datosTransaccion": {
"tipoEmision": "string",
"fechaInicioContingencia": "string",
"motivoContingencia": "string",
"tipoDocumento": "string",
"numeroDocumentoFiscal": "string",
"puntoFacturacionFiscal": "string",
"fechaEmision": "string",
"fechaSalida": "string",
"naturalezaOperacion": "string",
"tipoOperacion": "string",
"destinoOperacion": "string",
"formatoCAFE": "string",
"entregaCAFE": "string",
"envioContenedor": "string",
"procesoGeneracion": "string",
"tipoVenta": "string",
"informacionInteres": "string",
"cliente": {
"tipoClienteFE": "string",
"tipoContribuyente": "string",
"numeroRUC": "string",
"digitoVerificadorRUC": "string",
"razonSocial": "string",
"direccion": "string",
"codigoUbicacion": "string",
"provincia": "string",
"distrito": "string",
"corregimiento": "string",
"tipoIdentificacion": "string",
"nroIdentificacionExtranjero": "string",
"paisExtranjero": "string",
"telefono1": "string",
"telefono2": "string",
"telefono3": "string",
"correoElectronico1": "string",
"correoElectronico2": "string",
"correoElectronico3": "string",
"pais": "string",
"paisOtro": "string"
},
"datosFacturaExportacion": {
"condicionesEntrega": "string",
"monedaOperExportacion": "string",
"monedaOperExportacionNonDef": "string",
"tipoDeCambio": "string",
"montoMonedaExtranjera": "string",
"puertoEmbarque": "string"
},
"listaDocsFiscalReferenciados": [
{
"fechaEmisionDocFiscalReferenciado": "string",
"cufeFEReferenciada": "string",
"nroFacturaPapel": "string",
"nroFacturaImpFiscal": "string"
}
],
"listaAutorizadosDescargaFEyEventos": [
{
"tipoContribuyente": "string",
"rucReceptor": "string",
"digitoVerifRucReceptor": "string"
}
]
},
"listaItems": [
{
"descripcion": "string",
"codigo": "string",
"unidadMedida": "string",
"cantidad": "string",
"fechaFabricacion": "string",
"fechaCaducidad": "string",
"codigoCPBSAbrev": "string",
"codigoCPBS": "string",
"unidadMedidaCPBS": "string",
"infoItem": "string",
"precioUnitario": "string",
"precioUnitarioDescuento": "string",
"precioItem": "string",
"precioAcarreo": "string",
"precioSeguro": "string",
"valorTotal": "string",
"codigoGTIN": "string",
"cantGTINCom": "string",
"codigoGTINInv": "string",
"cantGTINComInv": "string",
"tasaITBMS": "string",
"valorITBMS": "string",
"tasaISC": "string",
"valorISC": "string",
"listaItemOTI": [
{
"tasaOTI": "string",
"valorTasa": "string"
}
],
"vehiculo": {
"modalidadOperacionVenta": "string",
"modalidadOperacionVentaNoDef": "string",
"chasis": "string",
"codigoColor": "string",
"colorNombre": "string",
"potenciaMotor": "string",
"capacidadMotor": "string",
"pesoNeto": "string",
"pesoBruto": "string",
"tipoCombustible": "string",
"tipoCombustibleNoDef": "string",
"numeroMotor": "string",
"capacidadTraccion": "string",
"distanciaEjes": "string",
"anoModelo": "string",
"anoFabricacion": "string",
"tipoPintura": "string",
"tipoPinturaNodef": "string",
"tipoVehiculo": "string",
"usoVehiculo": "string",
"condicionVehiculo": "string",
"capacidadPasajeros": "string"
},
"medicina": {
"nroLote": "string",
"cantProductosLote": "string"
},
"pedidoComercialItem": {
"nroPedidoCompraItem": "string",
"nroItem": "string",
"infoItem": "string"
}
}
],
"totalesSubTotales": {
"totalPrecioNeto": "string",
"totalITBMS": "string",
"totalISC": "string",
"totalMontoGravado": "string",
"totalDescuento": "string",
"totalAcarreoCobrado": "string",
"valorSeguroCobrado": "string",
"totalFactura": "string",
"totalValorRecibido": "string",
"vuelto": "string",
"tiempoPago": "string",
"nroItems": "string",
"totalTodosItems": "string",
"listaDescBonificacion": [
{
"descDescuento": "string",
"montoDescuento": "string"
}
],
"listaFormaPago": [
{
"formaPagoFact": "string",
"descFormaPago": "string",
"valorCuotaPagada": "string"
}
],
"retencion": {
"codigoRetencion": "string",
"montoRetencion": "string"
},
"listaPagoPlazo": [
{
"fechaVenceCuota": "string",
"valorCuota": "string",
"infoPagoCuota": "string"
}
],
"listaTotalOTI": [
{
"codigoTotalOTI": "string",
"valorTotalOTI": "string"
}
]
},
"pedidoComercialGlobal": {
"nroPedidoCompraGlobal": "string",
"listaNroAceptacion": [
"string"
],
"codigoReceptor": "string",
"codigoSistemaEmisor": "string",
"infoPedido": "string"
},
"infoLogistica": {
"nroVolumenes": "string",
"pesoCarga": "string",
"unidadPesoTotal": "string",
"licVehiculoCarga": "string",
"razonSocialTransportista": "string",
"tipoRucTransportista": "string",
"rucTransportista": "string",
"digitoVerifRucTransportista": "string",
"infoLogisticaEmisor": "string"
},
"infoEntrega": {
"tipoRucEntrega": "string",
"numeroRucEntrega": "string",
"digitoVerifRucEntrega": "string",
"razonSocialEntrega": "string",
"direccionEntrega": "string",
"codigoUbicacionEntrega": "string",
"provinciaEntrega": "string",
"distritoEntrega": "string",
"corregimientoEntrega": "string",
"telefonoEntrega": "string",
"telefonoEntregaAlt": "string"
},
"usoPosterior": {
"cufe": "string"
},
"listaExtras": [
{
"attribute": "string",
"enabled": "string",
"id": "string",
"orden": "string",
"value": "string"
}
],
"serialDispositivo": "string"
}
}
Response:
{'codigo': '200',
'resultado': 'procesado',
'mensaje': 'El documento se envió correctamente.',
'cufe': 'FE011000000000008-952-840-7700012024050215754752970010125871749723',
'qr': 'https://dgi-fep-test.mef.gob.pa:40001/Consultas/FacturasPorQR?chFE=FE011000000000008-952-840-7700012024050215754752970010125871749723&iAmb=2&digestValue=Dx4zL54f7KS3cyXbrgQ0lJVAyaSNDKqWveJijz2+aI4=&jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjaEZFIjoiRkUwMTEwMDAwMDAwMDAwMDgtOTUyLTg0MC03NzAwMDEyMDI0MDUwMjE1NzU0NzUyOTcwMDEwMTI1ODcxNzQ5NzIzIiwiaUFtYiI6IjIiLCJkaWdlc3RWYWx1ZSI6IkR4NHpMNTRmN0tTM2N5WGJyZ1EwbEpWQXlhU05ES3FXdmVKaWp6MithSTQ9In0.K8JdwgUiU11xYucoBy39jKuaO5L1J4-CJl4GvEIx1jA',
'fechaRecepcionDGI': '2025-05-15T15:03:08-05:00',
'nroProtocoloAutorizacion': '0000155596713-2-201520250000000000645254'}{