{"openapi":"3.1.0","info":{"title":"Sifende API","description":"API de facturación electrónica para Paraguay (SIFEN).\n\nEste documento se genera desde el código de la API, así que describe lo que la API\nrealmente acepta y devuelve. Ante una contradicción con la documentación escrita, vale\nlo que dice acá.\n\n**Emisión asíncrona.** `POST /api/v1/documento-electronico` responde `202 Accepted` con\nel CDC ya calculado y `estado: PENDIENTE`. El envío a SIFEN ocurre en segundo plano;\nel estado final se consulta con `GET /api/v1/documento-electronico/status/{cdc}`.\n\n**Ambientes.** La URL base es la misma para DEV, PROD y SANDBOX. Cada API key conserva\nun ambiente inmutable persistido. Las claves nuevas usan `sk_test_`, `sk_live_` y\n`sk_sandbox_`, respectivamente; las claves legacy conservan su valor y nunca se rutean\ninfiriendo el ambiente desde el prefijo. SANDBOX no llama a SIFEN y autoaprueba localmente.\n\n**Errores.** Todas las respuestas de error son `application/problem+json`\n([RFC 9457](https://www.rfc-editor.org/rfc/rfc9457)), con `type` apuntando a la página de\nla documentación que explica ese error concreto.\n\n**API integradora.** Las rutas `/api/v1/integrador/**` son para socios integradores: dan\nde alta y configuran a sus clientes con una key integradora `ik_…`, no con una API key\nde contribuyente. Responden dentro del envelope `{data, timestamp, errors}`.\n\n**Alcance.** Sólo la API de integración, la API integradora y los catálogos públicos. Los\nendpoints del panel web, que usan la sesión del panel, no son parte de este contrato.\n","contact":{"name":"Soporte Sifende","url":"https://www.sifende.com.py/docs","email":"soporte@sifende.com.py"},"version":"v1"},"externalDocs":{"description":"Documentación de Sifende","url":"https://www.sifende.com.py/docs"},"servers":[{"url":"https://api.sifende.com.py","description":"DEV, PROD y SANDBOX — el ambiente está persistido en la API key"}],"security":[{"apiKey":[]}],"tags":[{"name":"API key","description":"La API key con la que se hace el pedido."},{"name":"Webhooks","description":"Administración de los webhooks del contribuyente y ambiente de la API key."},{"name":"Catálogos","description":"Datos de referencia de SIFEN. No requieren autenticación."},{"name":"Integrador: personalización","description":"Contacto, colores, logo y datos de la cuenta de cada cliente."},{"name":"Contribuyente","description":"Datos y plan del contribuyente identificado por la API key."},{"name":"Documentos electrónicos","description":"API de integración: emisión, consulta de estado, KuDE y eventos. Se autentica con API key, que además identifica al contribuyente emisor."},{"name":"Integrador: establecimientos","description":"Establecimientos y puntos de expedición de cada cliente."},{"name":"Integrador: API keys de clientes","description":"API keys `sk_…` con las que cada cliente emite. El integrador ve y administra sólo las que creó."},{"name":"Integrador: webhooks","description":"Webhooks de cada cliente: mismos eventos, firma y reintentos que los de la API de integración."},{"name":"Integrador: solicitud de certificado","description":"Trámite del certificado digital de un cliente que todavía no lo tiene. La firma del formulario F1 es del titular."},{"name":"Padrón","description":"Consulta de contribuyentes y ciudadanos por RUC o cédula."},{"name":"Integrador: clientes","description":"Cartera del integrador: alta de clientes con o sin titular, invitación al titular, plan y pagador."},{"name":"Integrador: configuración fiscal","description":"Certificado, timbrado, CSC y paso a producción de cada cliente."}],"paths":{"/api/v1/integrador/clientes/{contribuyenteId}/webhooks/{webhookId}":{"get":{"tags":["Integrador: webhooks"],"summary":"Consultar un webhook","description":"Devuelve un webhook del cliente, sin el secreto.\n","operationId":"integrador-consultar-webhook","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234},{"name":"webhookId","in":"path","description":"ID del webhook","required":true,"schema":{"type":"integer","format":"int64"},"example":42}],"responses":{"200":{"description":"Webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseWebhookEndpointDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]},"put":{"tags":["Integrador: webhooks"],"summary":"Actualizar un webhook","description":"Actualiza URL, eventos y estado de un webhook del cliente. El ambiente de un webhook no cambia.\n","operationId":"integrador-actualizar-webhook","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234},{"name":"webhookId","in":"path","description":"ID del webhook","required":true,"schema":{"type":"integer","format":"int64"},"example":42}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveWebhookEndpointRequest"}}},"required":true},"responses":{"200":{"description":"Webhook actualizado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseWebhookEndpointDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]},"delete":{"tags":["Integrador: webhooks"],"summary":"Eliminar un webhook","description":"Elimina un webhook del cliente.\n","operationId":"integrador-eliminar-webhook","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234},{"name":"webhookId","in":"path","description":"ID del webhook","required":true,"schema":{"type":"integer","format":"int64"},"example":42}],"responses":{"204":{"description":"Webhook eliminado"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/solicitud-certificado":{"get":{"tags":["Integrador: solicitud de certificado"],"summary":"Consultar el trámite","description":"Devuelve el estado del trámite de certificado del cliente y su solicitud, si existe.\n","operationId":"integrador-consultar-tramite-certificado","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"responses":{"200":{"description":"Estado del trámite","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseTramiteCertificadoDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]},"put":{"tags":["Integrador: solicitud de certificado"],"summary":"Guardar la solicitud","description":"Guarda los datos de la solicitud de certificado mientras se completa.\n","operationId":"integrador-guardar-solicitud-certificado","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuardarSolicitudRequest"}}},"required":true},"responses":{"200":{"description":"Solicitud guardada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseSolicitudCertificadoDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]},"post":{"tags":["Integrador: solicitud de certificado"],"summary":"Crear la solicitud","description":"Crea la solicitud de certificado del cliente.\n","operationId":"integrador-crear-solicitud-certificado","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrearSolicitudRequest"}}},"required":true},"responses":{"201":{"description":"Solicitud creada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseSolicitudCertificadoDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/plan":{"get":{"tags":["Integrador: clientes"],"summary":"Consultar plan y pagador","description":"Devuelve el plan actual del cliente, el cambio programado si lo hay y quién paga.\n","operationId":"integrador-consultar-plan-cliente","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"responses":{"200":{"description":"Plan y pagador del cliente","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponsePlanClientePortalDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]},"put":{"tags":["Integrador: clientes"],"summary":"Cambiar el plan","description":"Asigna al cliente un plan del integrador. `planId` y `versionEsperada` son el `planId` y el\n`versionId` de la lista de planes; si el plan cambió después de leerla, se rechaza y hay que volver a\nleerla. Si el integrador es el pagador, el primer ciclo no se le cobra al cliente.\n","operationId":"integrador-cambiar-plan-cliente","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CambiarPlanClientePortalRequest"}}},"required":true},"responses":{"200":{"description":"Plan y pagador después del cambio","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponsePlanClientePortalDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/personalizacion":{"get":{"tags":["Integrador: personalización"],"summary":"Consultar la personalización","description":"Devuelve la personalización del cliente: contacto, redes, colores, logo y datos de la cuenta.\n","operationId":"integrador-consultar-personalizacion","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"responses":{"200":{"description":"Personalización del cliente","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseContribuyentePersonalizacionDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]},"put":{"tags":["Integrador: personalización"],"summary":"Actualizar la personalización","description":"Reemplaza la personalización del cliente: nombre comercial, contacto, redes, colores y pie del KuDE.\nUn campo ausente o vacío borra el valor guardado.\n","operationId":"integrador-actualizar-personalizacion","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContribuyentePersonalizacionRequest"}}},"required":true},"responses":{"200":{"description":"Personalización actualizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseContribuyentePersonalizacionDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/personalizacion/cuenta":{"put":{"tags":["Integrador: personalización"],"summary":"Actualizar los datos de la cuenta","description":"Actualiza lo que vale para todo el RUC: el `slug` y si los correos muestran la marca Sifende.\n","operationId":"integrador-actualizar-cuenta","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePersonalizacionCuentaRequest"}}},"required":true},"responses":{"200":{"description":"Personalización actualizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseContribuyentePersonalizacionDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/pagador":{"put":{"tags":["Integrador: clientes"],"summary":"Cambiar el pagador","description":"Define quién paga el plan del cliente: `INTEGRADOR`, en la factura mensual consolidada del\nintegrador, o `CLIENTE`. Un cliente nuevo paga él mismo. Con un ciclo en curso, el cambio rige desde la\npróxima renovación.\n","operationId":"integrador-cambiar-pagador-cliente","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CambiarPagadorClientePortalRequest"}}},"required":true},"responses":{"200":{"description":"Plan y pagador después del cambio","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponsePlanClientePortalDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/establecimientos/{establecimientoId}":{"put":{"tags":["Integrador: establecimientos"],"summary":"Actualizar un establecimiento","description":"Actualiza los datos de un establecimiento del cliente.\n","operationId":"integrador-actualizar-establecimiento","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234},{"name":"establecimientoId","in":"path","description":"ID del establecimiento","required":true,"schema":{"type":"integer","format":"int64"},"example":10}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEstablecimientoRequest"}}},"required":true},"responses":{"200":{"description":"Establecimiento actualizado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseEstablecimientoDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/establecimientos/{establecimientoId}/puntos-expedicion/{puntoExpedicionId}":{"put":{"tags":["Integrador: establecimientos"],"summary":"Actualizar un punto de expedición","description":"Actualiza un punto de expedición de un establecimiento del cliente.\n","operationId":"integrador-actualizar-punto-expedicion","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234},{"name":"establecimientoId","in":"path","description":"ID del establecimiento","required":true,"schema":{"type":"integer","format":"int64"},"example":10},{"name":"puntoExpedicionId","in":"path","description":"ID del punto de expedición","required":true,"schema":{"type":"integer","format":"int64"},"example":20}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePuntoExpedicionRequest"}}},"required":true},"responses":{"200":{"description":"Punto de expedición actualizado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponsePuntoExpedicionDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/configuracion-fiscal/timbrado":{"put":{"tags":["Integrador: configuración fiscal"],"summary":"Guardar el timbrado de producción","description":"Guarda el número y la fecha de inicio del timbrado de producción del cliente.\n","operationId":"integrador-guardar-timbrado","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimbradoProduccionRequest"}}},"required":true},"responses":{"200":{"description":"Timbrado guardado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseTimbradoDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/configuracion-fiscal/csc":{"put":{"tags":["Integrador: configuración fiscal"],"summary":"Guardar el CSC de producción","description":"Guarda el ID y el valor del CSC de producción del cliente.\n","operationId":"integrador-guardar-csc","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CscProduccionRequest"}}},"required":true},"responses":{"200":{"description":"CSC guardado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseCscDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/contribuyente/webhooks/{webhookId}":{"get":{"tags":["Webhooks"],"summary":"Consultar un webhook","description":"Devuelve un webhook del ambiente de la API key, sin el secreto. Un webhook de otro ambiente\no de otro contribuyente responde `404`.\n","operationId":"consultar-webhook","parameters":[{"name":"webhookId","in":"path","description":"Identificador del webhook, tal como lo devuelve el listado","required":true,"schema":{"type":"integer","format":"int64"},"example":42}],"responses":{"200":{"description":"Webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointDTO"},"examples":{"webhook":{"description":"webhook","value":{"id":42,"url":"https://erp.ejemplo.com.py/sifende/webhook","ambiente":"PROD","eventos":["documento.aprobado","documento.rechazado"],"activo":true,"fechaCreacion":"2026-10-20T14:03:11Z","fechaEdicion":"2026-10-20T14:03:11Z","fechaRotacionSecreto":"2026-10-20T14:03:11Z"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"}}},"put":{"tags":["Webhooks"],"summary":"Actualizar un webhook","description":"Reemplaza la URL, los eventos y el estado del webhook; el ambiente no cambia. `activo: false`\npausa el webhook y cancela sus entregas pendientes. Reactivarlo respeta el límite de cinco\nwebhooks activos por ambiente. El secreto no cambia: para eso, rotalo.\n","operationId":"actualizar-webhook","parameters":[{"name":"webhookId","in":"path","description":"Identificador del webhook, tal como lo devuelve el listado","required":true,"schema":{"type":"integer","format":"int64"},"example":42}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActualizarWebhookIntegracionRequest"}}},"required":true},"responses":{"200":{"description":"Webhook actualizado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointDTO"},"examples":{"webhook":{"description":"webhook","value":{"id":42,"url":"https://erp.ejemplo.com.py/sifende/webhook","ambiente":"PROD","eventos":["documento.aprobado","documento.rechazado"],"activo":true,"fechaCreacion":"2026-10-20T14:03:11Z","fechaEdicion":"2026-10-20T14:03:11Z","fechaRotacionSecreto":"2026-10-20T14:03:11Z"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"}}},"delete":{"tags":["Webhooks"],"summary":"Eliminar un webhook","description":"Elimina el webhook y cancela sus entregas pendientes. Libera un lugar del límite de cinco\nwebhooks activos y no se puede deshacer. No exige un plan con acceso a la API.\n","operationId":"eliminar-webhook","parameters":[{"name":"webhookId","in":"path","description":"Identificador del webhook, tal como lo devuelve el listado","required":true,"schema":{"type":"integer","format":"int64"},"example":42}],"responses":{"204":{"description":"Webhook eliminado"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/integrador/clientes":{"get":{"tags":["Integrador: clientes"],"summary":"Listar clientes","description":"Devuelve, paginados, los clientes atribuidos al integrador. `q` busca por RUC, razón social o\nnombre de fantasía.\n","operationId":"integrador-listar-clientes","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"minLength":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20,"maximum":100,"minimum":1}}],"responses":{"200":{"description":"Página de clientes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponsePageDTOClientePortalDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]},"post":{"tags":["Integrador: clientes"],"summary":"Dar de alta un cliente","description":"Da de alta un contribuyente y lo atribuye al integrador. El RUC se valida contra el padrón de la DNIT.\n\nCon `correoTitular`, Sifende invita por correo al titular, la persona del cliente que entra al panel.\nSin él, el cliente funciona sin titular: el integrador lo configura y emite con sus API keys, y puede\ninvitar al titular más adelante.\n","operationId":"integrador-crear-cliente","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AltaClienteIntegradorRequest"}}},"required":true},"responses":{"201":{"description":"Cliente creado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseClienteCreadoPortalDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/webhooks":{"get":{"tags":["Integrador: webhooks"],"summary":"Listar webhooks","description":"Devuelve los webhooks del cliente en todos sus ambientes, sin el secreto.\n","operationId":"integrador-listar-webhooks","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"responses":{"200":{"description":"Webhooks del cliente","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseListWebhookEndpointDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]},"post":{"tags":["Integrador: webhooks"],"summary":"Crear un webhook","description":"Registra una URL para recibir los eventos del cliente. `ambiente` es obligatorio porque la key\nintegradora no tiene ambiente. La URL debe ser HTTPS y pública, y puede haber hasta cinco webhooks\nactivos por cliente y ambiente.\n\nEl secreto `whsec_…` con el que se firman las notificaciones se devuelve únicamente en esta respuesta.\n","operationId":"integrador-crear-webhook","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveWebhookEndpointRequest"}}},"required":true},"responses":{"201":{"description":"Webhook creado, con su secreto","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseWebhookSecretResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/webhooks/{webhookId}/rotar":{"post":{"tags":["Integrador: webhooks"],"summary":"Rotar el secreto","description":"Genera un secreto nuevo para el webhook. El anterior deja de firmar al instante.\n","operationId":"integrador-rotar-secreto-webhook","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234},{"name":"webhookId","in":"path","description":"ID del webhook","required":true,"schema":{"type":"integer","format":"int64"},"example":42}],"responses":{"200":{"description":"Webhook con su secreto nuevo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseWebhookSecretResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/titular":{"get":{"tags":["Integrador: clientes"],"summary":"Consultar la invitación al titular","description":"Devuelve el estado de la invitación al titular del cliente.\n","operationId":"integrador-consultar-invitacion-titular","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"responses":{"200":{"description":"Invitación al titular","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseAltaPortalDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]},"post":{"tags":["Integrador: clientes"],"summary":"Invitar al titular","description":"Invita por correo al titular del cliente, o reenvía la invitación con un correo nuevo. Si el cliente\nya tiene titular, responde `409` con `codigo` `TITULAR_YA_ASIGNADO`.\n","operationId":"integrador-invitar-titular","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitarTitularRequest"}}},"required":true},"responses":{"200":{"description":"Invitación enviada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseAltaPortalDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/solicitud-certificado/firma":{"post":{"tags":["Integrador: solicitud de certificado"],"summary":"Pedir la firma del F1","description":"Envía al titular del cliente el pedido de firma del formulario F1. La API no firma por el titular:\nel cliente necesita un titular para este paso.\n","operationId":"integrador-pedir-firma-formulario","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvioFirmaRequest"}}}},"responses":{"200":{"description":"Pedido de firma enviado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseEnvioFirmaDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/solicitud-certificado/enviar":{"post":{"tags":["Integrador: solicitud de certificado"],"summary":"Enviar la solicitud","description":"Envía la solicitud completa y firmada para su tramitación.\n","operationId":"integrador-enviar-solicitud-certificado","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"responses":{"200":{"description":"Solicitud enviada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseSolicitudCertificadoDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/solicitud-certificado/documentos":{"post":{"tags":["Integrador: solicitud de certificado"],"summary":"Adjuntar un documento","description":"Adjunta un documento a la solicitud. Se envía como `multipart/form-data` con `tipo` y `archivo`.\n","operationId":"integrador-adjuntar-documento-solicitud","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/AdjuntarDocumentoSolicitudIntegradorForm"}}},"required":true},"responses":{"200":{"description":"Solicitud con el documento adjunto","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseSolicitudCertificadoDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/solicitud-certificado/documentos/marangatu":{"post":{"tags":["Integrador: solicitud de certificado"],"summary":"Importar documentos de Marangatu","description":"Con el usuario y la clave de Marangatu del cliente, trae de allí los documentos de los `tipos` pedidos y los adjunta a la solicitud.\n","operationId":"integrador-importar-documentos-marangatu","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportacionMarangatuRequest"}}},"required":true},"responses":{"200":{"description":"Resultado de la importación","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseImportacionMarangatuDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/solicitud-certificado/cancelar":{"post":{"tags":["Integrador: solicitud de certificado"],"summary":"Cancelar la solicitud","description":"Cancela la solicitud de certificado del cliente.\n","operationId":"integrador-cancelar-solicitud-certificado","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"responses":{"200":{"description":"Solicitud cancelada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseSolicitudCertificadoDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/personalizacion/logo":{"post":{"tags":["Integrador: personalización"],"summary":"Subir el logo","description":"Sube el logo del cliente. Se envía como `multipart/form-data` en el campo `file`.\n","operationId":"integrador-subir-logo","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"Personalización con el logo nuevo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseContribuyentePersonalizacionDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]},"delete":{"tags":["Integrador: personalización"],"summary":"Borrar el logo","description":"Borra el logo del cliente.\n","operationId":"integrador-borrar-logo","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"responses":{"200":{"description":"Personalización sin logo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseContribuyentePersonalizacionDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/establecimientos":{"get":{"tags":["Integrador: establecimientos"],"summary":"Listar establecimientos","description":"Devuelve los establecimientos del cliente con sus puntos de expedición.\n","operationId":"integrador-listar-establecimientos","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"responses":{"200":{"description":"Establecimientos del cliente","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseListEstablecimientoDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]},"post":{"tags":["Integrador: establecimientos"],"summary":"Crear un establecimiento","description":"Crea un establecimiento del cliente.\n","operationId":"integrador-crear-establecimiento","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEstablecimientoRequest"}}},"required":true},"responses":{"201":{"description":"Establecimiento creado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseEstablecimientoDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/establecimientos/{establecimientoId}/puntos-expedicion":{"post":{"tags":["Integrador: establecimientos"],"summary":"Crear un punto de expedición","description":"Crea un punto de expedición en un establecimiento del cliente.\n","operationId":"integrador-crear-punto-expedicion","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234},{"name":"establecimientoId","in":"path","description":"ID del establecimiento","required":true,"schema":{"type":"integer","format":"int64"},"example":10}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePuntoExpedicionRequest"}}},"required":true},"responses":{"201":{"description":"Punto de expedición creado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponsePuntoExpedicionDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/configuracion-fiscal/pasar-a-produccion":{"post":{"tags":["Integrador: configuración fiscal"],"summary":"Pasar a producción","description":"Pasa al cliente a producción. `rucConfirmacion` es el RUC del cliente, sin DV. El timbrado y el CSC\nde producción se pueden mandar en el mismo body si todavía no se cargaron.\n","operationId":"integrador-pasar-a-produccion","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasoProduccionRequest"}}},"required":true},"responses":{"200":{"description":"Resultado del paso a producción","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponsePasoProduccionResponseDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/configuracion-fiscal/certificado":{"post":{"tags":["Integrador: configuración fiscal"],"summary":"Subir el certificado","description":"Carga el certificado `.p12` del cliente con su contraseña, junto con el ID y el valor del CSC.\nSe envía como `multipart/form-data`.\n","operationId":"integrador-subir-certificado","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/SubirCertificadoIntegradorForm"}}},"required":true},"responses":{"200":{"description":"Datos del certificado cargado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseCertificadoInfoDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/api-keys":{"get":{"tags":["Integrador: API keys de clientes"],"summary":"Listar API keys del cliente","description":"Devuelve las API keys del cliente creadas por el integrador, sin su valor.\n","operationId":"integrador-listar-api-keys-cliente","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"responses":{"200":{"description":"API keys del cliente creadas por el integrador","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseListApiKeyDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]},"post":{"tags":["Integrador: API keys de clientes"],"summary":"Crear una API key","description":"Crea una API key de emisión para el cliente en el `ambiente` indicado. `key` trae el valor completo\ny se devuelve únicamente en esta respuesta. Si el cliente deja al integrador, sus keys se desactivan.\n","operationId":"integrador-crear-api-key-cliente","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}},"required":true},"responses":{"201":{"description":"API key creada, con su valor completo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseCreateApiKeyResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/api-keys/{apiKeyId}/rotar":{"post":{"tags":["Integrador: API keys de clientes"],"summary":"Rotar una API key","description":"Genera un valor nuevo para la key. El anterior deja de funcionar al instante.\n","operationId":"integrador-rotar-api-key-cliente","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234},{"name":"apiKeyId","in":"path","description":"ID de la API key","required":true,"schema":{"type":"integer","format":"int64"},"example":7}],"responses":{"200":{"description":"API key con su valor nuevo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseCreateApiKeyResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/autoconfiguracion":{"post":{"tags":["Integrador: clientes"],"summary":"Traer los datos de Marangatu","description":"Con el usuario y la clave de Marangatu del contribuyente, trae sus datos para precargar el alta:\nrazón social, domicilio, actividades y estado de facturación electrónica.\n","operationId":"integrador-autoconfigurar-cliente","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoconfiguracionPortalRequest"}}},"required":true},"responses":{"200":{"description":"Datos del contribuyente en Marangatu","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseAutoconfiguracionPortalDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/documento-electronico":{"post":{"tags":["Documentos electrónicos"],"summary":"Emitir un documento electrónico","description":"Registra el documento y lo encola para SIFEN. La respuesta es inmediata y el CDC ya\nviene calculado, pero el envío ocurre en segundo plano: `estado` es siempre\n`PENDIENTE` acá. El estado final se consulta con el `statusUrl` de la respuesta.\n\nEl emisor no se envía en el body: sale de la API key. El timbrado lo toma Sifende del\nambiente. El correlativo también lo asigna Sifende, salvo que tu sistema numere por su\ncuenta: con `numeroDocumento` se usa ese número en lugar del siguiente (y opcionalmente\n`codigoSeguridad` y `numeroTimbrado`). Un número ya usado devuelve 409 con\n`document-number-in-use` y el CDC existente; uno inutilizado, 409 con\n`document-number-voided`; un `numeroTimbrado` distinto del cargado, 422 con\n`timbrado-mismatch`. Un número cuyo documento fue `RECHAZADO` devuelve 422 con\n`document-number-requires-voiding`: hay que inutilizarlo y emitir con otro número.\n","operationId":"emitir-documento","parameters":[{"name":"Idempotency-Key","in":"header","description":"Clave opcional para identificar una intención idempotente en operaciones compatibles.\nAcepta un solo valor de 1 a 255 caracteres ASCII visibles, sin espacios al inicio ni al final.\nEl alcance es por contribuyente y ambiente, compartido entre los tipos de operación.\nUna clave existente resuelve la operación original sin comparar el body ni el CDC posterior.\nOtro tipo de operación devuelve 422. El cliente debe persistir la clave y la solicitud original\ny generar una clave nueva para cada intención nueva. El replay dura 7 días desde la finalización;\ndespués la clave sigue reservada hasta que termina la conservación del documento.\nLa solicitud debe poder deserializarse; los campos del body se validan sólo para operaciones nuevas.\n","required":false,"schema":{"type":"string","maxLength":255,"minLength":1,"pattern":"^[!-~](?:[ -~]{0,253}[!-~])?$"},"example":"550e8400-e29b-41d4-a716-446655440000"}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/FacturaElectronicaRequest"},{"$ref":"#/components/schemas/NotaCreditoElectronicaRequest"},{"$ref":"#/components/schemas/NotaDebitoElectronicaRequest"},{"$ref":"#/components/schemas/NotaRemisionElectronicaRequest"},{"$ref":"#/components/schemas/AutofacturaElectronicaRequest"}]}}},"required":true},"responses":{"202":{"description":"Documento registrado y encolado. `Location` apunta al `statusUrl`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentoElectronicoEmisionResponseDTO"},"example":{"id":"550e8400-e29b-41d4-a716-446655440000","deId":4821,"cdc":"01800123451001001000000122026042710000000006","estado":"PENDIENTE","tipoDocumento":"FACTURA_ELECTRONICA","iTiDe":1,"numeroDocumento":122,"numeroFormateado":"001-001-0000122","fechaCreacion":"2026-04-27T10:30:00","qrUrl":"https://ekuatia.set.gov.py/consultas-test/qr?nVersion=150&Id=018001234510010010000001220260427100000000006","statusUrl":"https://api.sifende.com.py/api/v1/documento-electronico/status/01800123451001001000000122026042710000000006","kudeUrl":"https://api.sifende.com.py/api/v1/documento-electronico/01800123451001001000000122026042710000000006/kude"}}}},"400":{"$ref":"#/components/responses/IdempotencyBadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/DocumentQuotaExceeded"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/EmissionConflict"},"422":{"$ref":"#/components/responses/EmissionUnprocessableEntity"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/IdempotencyUnavailable"}}}},"/api/v1/documento-electronico/{cdc}/nominar":{"post":{"tags":["Documentos electrónicos"],"summary":"Nominar el receptor de una factura innominada","description":"Identifica al receptor de una factura innominada aprobada mediante un evento de nominación ante SIFEN.\nNominación síncrona B2B/B2C/B2F. La consulta de confirmación y, si se confirma\nausencia, como máximo un reenvío ocurren dentro de esta petición.\nUn resultado incierto conserva ENVIADO y responde 503 con Retry-After;\nno equivale a aprobación ni rechazo y no inicia recuperación en segundo plano.\nSólo APROBADO aporta el receptor efectivo para la precarga de NCE/NDE en el panel.\n El XML firmado, CDC y KuDE originales no se modifican.\n Idempotency-Key es opcional, con alcance por contribuyente y ambiente compartido entre operaciones.\n Una clave existente recupera el documento, motivo y receptor originales, sin comparar\n el body ni el CDC posterior, incluso si el documento quedó archivado.\n Otro tipo de operación devuelve 422. Persistí la clave y la solicitud original;\n usá una clave nueva para cada intención nueva. El replay dura 7 días desde la finalización.\n La clave sigue reservada después, hasta que termina la conservación del documento.\n El body debe poder deserializarse; sus campos se validan sólo para operaciones nuevas.\n SANDBOX responde 422 sin registrar ni enviar un evento.\n","operationId":"nominar-documento","parameters":[{"name":"cdc","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventoNominacionRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventoSifenDTO"}}}}}}},"/api/v1/documento-electronico/{cdc}/cancelar":{"post":{"tags":["Documentos electrónicos"],"summary":"Cancelar un documento","description":" Envía a SIFEN el evento de cancelación. Sólo se puede cancelar un documento aprobado\n y dentro del plazo que fija SIFEN. Una respuesta `4003` se trata como éxito equivalente\n porque SIFEN ya tiene registrada una cancelación para el CDC. SANDBOX responde `422`.\n","operationId":"cancelar-documento","parameters":[{"name":"cdc","in":"path","description":"CDC del documento a cancelar, 44 dígitos","required":true,"schema":{"type":"string"},"example":"01800123451001001000000122026042710000000006"},{"name":"Idempotency-Key","in":"header","description":"Clave opcional para identificar una intención idempotente en operaciones compatibles.\nAcepta un solo valor de 1 a 255 caracteres ASCII visibles, sin espacios al inicio ni al final.\nEl alcance es por contribuyente y ambiente, compartido entre los tipos de operación.\nUna clave existente resuelve la operación original sin comparar el body ni el CDC posterior.\nOtro tipo de operación devuelve 422. El cliente debe persistir la clave y la solicitud original\ny generar una clave nueva para cada intención nueva. El replay dura 7 días desde la finalización;\ndespués la clave sigue reservada hasta que termina la conservación del documento.\nLa solicitud debe poder deserializarse; los campos del body se validan sólo para operaciones nuevas.\n","required":false,"schema":{"type":"string","maxLength":255,"minLength":1,"pattern":"^[!-~](?:[ -~]{0,253}[!-~])?$"},"example":"550e8400-e29b-41d4-a716-446655440000"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelacionRequest"}}},"required":true},"responses":{"200":{"description":"Evento de cancelación registrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventoSifenDTO"}}}},"400":{"$ref":"#/components/responses/IdempotencyBadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/DocumentArchived"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"422":{"$ref":"#/components/responses/IdempotencyKeyReused"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/IdempotencyUnavailable"}}}},"/api/v1/documento-electronico/inutilizar":{"post":{"tags":["Documentos electrónicos"],"summary":"Inutilizar un rango de numeración","description":" Informa a SIFEN que un rango de números de un timbrado no se va a usar. Una respuesta\n `4066` deja el resultado terminal `INDETERMINADA` y bloquea nuevos envíos para proteger\n el rango. SANDBOX responde `422` sin registrar ni enviar un evento.\n","operationId":"inutilizar-numeracion","parameters":[{"name":"Idempotency-Key","in":"header","description":"Clave opcional para identificar una intención idempotente en operaciones compatibles.\nAcepta un solo valor de 1 a 255 caracteres ASCII visibles, sin espacios al inicio ni al final.\nEl alcance es por contribuyente y ambiente, compartido entre los tipos de operación.\nUna clave existente resuelve la operación original sin comparar el body ni el CDC posterior.\nOtro tipo de operación devuelve 422. El cliente debe persistir la clave y la solicitud original\ny generar una clave nueva para cada intención nueva. El replay dura 7 días desde la finalización;\ndespués la clave sigue reservada hasta que termina la conservación del documento.\nLa solicitud debe poder deserializarse; los campos del body se validan sólo para operaciones nuevas.\n","required":false,"schema":{"type":"string","maxLength":255,"minLength":1,"pattern":"^[!-~](?:[ -~]{0,253}[!-~])?$"},"example":"550e8400-e29b-41d4-a716-446655440000"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventoInutilizacionRequest"}}},"required":true},"responses":{"200":{"description":"Evento de inutilización registrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventoSifenDTO"}}}},"400":{"$ref":"#/components/responses/IdempotencyBadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/IdempotencyConflict"},"422":{"$ref":"#/components/responses/IdempotencyKeyReused"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/IdempotencyUnavailable"}}}},"/api/v1/contribuyente/webhooks":{"get":{"tags":["Webhooks"],"summary":"Listar webhooks","description":"Devuelve los webhooks del contribuyente en el ambiente de la API key, los más recientes primero.\nNo incluye los de otros ambientes ni los eliminados, y nunca devuelve el secreto.\n","operationId":"listar-webhooks","responses":{"200":{"description":"Webhooks del ambiente de la clave","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpointDTO"}},"examples":{"unWebhook":{"description":"unWebhook","value":[{"id":42,"url":"https://erp.ejemplo.com.py/sifende/webhook","ambiente":"PROD","eventos":["documento.aprobado","documento.rechazado"],"activo":true,"fechaCreacion":"2026-10-20T14:03:11Z","fechaEdicion":"2026-10-20T14:03:11Z","fechaRotacionSecreto":"2026-10-20T14:03:11Z"}]}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalError"}}},"post":{"tags":["Webhooks"],"summary":"Crear un webhook","description":"Registra una URL para recibir eventos en el ambiente de la API key; el ambiente no se envía\nen el body. La URL debe ser HTTPS y pública. Cada contribuyente puede tener hasta cinco\nwebhooks activos por ambiente.\n\nEl secreto `whsec_…` con el que se firman las notificaciones se devuelve únicamente en esta\nrespuesta: guardalo. Para obtener uno nuevo, rotalo.\n\nNo admite `Idempotency-Key`: el header se rechaza con `400 idempotency-not-supported`.\nSi un reintento encuentra la URL ya registrada, responde `400 validation-error`; en ese caso\nconsultá el listado.\n","operationId":"crear-webhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrearWebhookIntegracionRequest"}}},"required":true},"responses":{"201":{"description":"Webhook creado. `Location` apunta a su consulta","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretResponse"},"examples":{"creado":{"description":"creado","value":{"endpoint":{"id":42,"url":"https://erp.ejemplo.com.py/sifende/webhook","ambiente":"PROD","eventos":["documento.aprobado","documento.rechazado"],"activo":true,"fechaCreacion":"2026-10-20T14:03:11Z","fechaEdicion":"2026-10-20T14:03:11Z","fechaRotacionSecreto":"2026-10-20T14:03:11Z"},"secreto":"whsec_8Kq2m5N0vXrT1bYc3LdWz9AeJfHpU4sG"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/contribuyente/webhooks/{webhookId}/rotar":{"post":{"tags":["Webhooks"],"summary":"Rotar el secreto de un webhook","description":"Genera un secreto nuevo y deja de firmar con el anterior, también las entregas pendientes.\nEl secreto nuevo se devuelve únicamente en esta respuesta: guardalo.\n\nNo admite `Idempotency-Key`: el header se rechaza con `400 idempotency-not-supported`.\nCada llamada genera un secreto distinto; si no recibiste la respuesta, volvé a rotar.\n","operationId":"rotar-secreto-webhook","parameters":[{"name":"webhookId","in":"path","description":"Identificador del webhook, tal como lo devuelve el listado","required":true,"schema":{"type":"integer","format":"int64"},"example":42}],"responses":{"200":{"description":"Secreto rotado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretResponse"},"examples":{"rotado":{"description":"rotado","value":{"endpoint":{"id":42,"url":"https://erp.ejemplo.com.py/sifende/webhook","ambiente":"PROD","eventos":["documento.aprobado","documento.rechazado"],"activo":true,"fechaCreacion":"2026-10-20T14:03:11Z","fechaEdicion":"2026-10-20T14:03:11Z","fechaRotacionSecreto":"2026-10-20T14:03:11Z"},"secreto":"whsec_8Kq2m5N0vXrT1bYc3LdWz9AeJfHpU4sG"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/public/enums":{"get":{"tags":["Catálogos"],"summary":"Listar todas las enumeraciones de SIFEN","description":"Catálogo completo de valores válidos, con su código SIFEN y su descripción. Es la fuente para poblar selects en tu UI.","operationId":"listar-enumeraciones","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/EnumValueDTO"}}}}}}},"security":[]}},"/api/v1/padron/{documento}":{"get":{"tags":["Padrón"],"summary":"Consultar un RUC o cédula en el padrón","description":"Devuelve razón social, estado, tipo de contribuyente y domicilio fiscal con los códigos\ngeográficos de SIFEN, listos para completar el receptor de un documento electrónico.\n\nAcepta el documento con o sin puntos y con o sin dígito verificador (`80002201`,\n`80002201-7`, `80.002.201-7`). Una cédula que no es RUC responde con\n`tipoDocumento: CEDULA` y `esContribuyente: false`.\n\nLímite: 60 consultas por minuto por API key.\n","operationId":"consultar-padron","parameters":[{"name":"documento","in":"path","description":"RUC o cédula, con o sin puntos y DV.","required":true,"schema":{"type":"string"},"example":"80002201-7"}],"responses":{"200":{"description":"Documento encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Padron"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Límite de consultas superado; `Retry-After` indica los segundos a esperar.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponsePadron"}}}},"500":{"$ref":"#/components/responses/InternalError"},"502":{"description":"El padrón no respondió; reintentá en unos minutos.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponsePadron"}}}}},"security":[{"apiKey":[]}]}},"/api/v1/integrador/planes":{"get":{"tags":["Integrador: clientes"],"summary":"Listar planes del integrador","description":"Devuelve los planes privados del integrador, los que puede asignar a sus clientes. `planId` y\n`versionId` son los valores que pide el cambio de plan.\n","operationId":"integrador-listar-planes","responses":{"200":{"description":"Planes del integrador","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseListPlanIntegradorPortalDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/padron/{documento}":{"get":{"tags":["Integrador: clientes"],"summary":"Consultar el padrón","description":"Busca un RUC o una cédula en el padrón de la DNIT para precargar el alta de un cliente. Tiene un\nlímite de consultas por minuto por integrador; al superarlo responde `429`.\n","operationId":"integrador-consultar-padron","parameters":[{"name":"documento","in":"path","description":"RUC sin DV, o número de cédula","required":true,"schema":{"type":"string"},"example":80012345}],"responses":{"200":{"description":"Datos del padrón","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponsePadron"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}":{"get":{"tags":["Integrador: clientes"],"summary":"Consultar un cliente","description":"Devuelve el detalle de un cliente del integrador: datos, plan, estado de pago y alta.\n","operationId":"integrador-consultar-cliente","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"responses":{"200":{"description":"Detalle del cliente","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseClientePortalDetalleDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/webhooks/entregas":{"get":{"tags":["Integrador: webhooks"],"summary":"Listar entregas","description":"Devuelve, paginadas, las entregas de los webhooks del cliente. Se filtran por `webhookId`, `estado` y `tipoEvento`.\n","operationId":"integrador-listar-entregas-webhook","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20,"maximum":100,"minimum":1}},{"name":"webhookId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"estado","in":"query","required":false,"schema":{"type":"string","enum":["PENDIENTE","ENCOLADA","ENVIANDO","REINTENTANDO","ENTREGADA","FALLIDA","CANCELADA"]}},{"name":"tipoEvento","in":"query","required":false,"schema":{"type":"string","enum":["documento.aprobado","documento.rechazado","documento.cancelado","lote.procesado"]}}],"responses":{"200":{"description":"Página de entregas","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponsePageDTOWebhookDeliveryDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/webhooks/entregas/{entregaId}/intentos":{"get":{"tags":["Integrador: webhooks"],"summary":"Listar intentos de una entrega","description":"Devuelve los intentos de envío de una entrega, con el status y la respuesta de cada uno.\n","operationId":"integrador-listar-intentos-entrega","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234},{"name":"entregaId","in":"path","description":"ID de la entrega","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Intentos de la entrega","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseListWebhookAttemptDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/solicitud-certificado/formulario-f1":{"get":{"tags":["Integrador: solicitud de certificado"],"summary":"Descargar el formulario F1","description":"Descarga el formulario F1 de la solicitud en PDF.\n","operationId":"integrador-descargar-formulario-firma","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"responses":{"200":{"description":"Formulario F1 en PDF","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/solicitud-certificado/documentos/{documentoId}":{"get":{"tags":["Integrador: solicitud de certificado"],"summary":"Descargar un documento","description":"Descarga un documento adjunto a la solicitud.\n","operationId":"integrador-descargar-documento-solicitud","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234},{"name":"documentoId","in":"path","description":"ID del documento adjunto","required":true,"schema":{"type":"integer","format":"int64"},"example":5}],"responses":{"200":{"description":"Archivo del documento","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]},"delete":{"tags":["Integrador: solicitud de certificado"],"summary":"Quitar un documento","description":"Quita un documento adjunto de la solicitud.\n","operationId":"integrador-quitar-documento-solicitud","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234},{"name":"documentoId","in":"path","description":"ID del documento adjunto","required":true,"schema":{"type":"integer","format":"int64"},"example":5}],"responses":{"200":{"description":"Solicitud sin el documento","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseSolicitudCertificadoDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/integrador/clientes/{contribuyenteId}/configuracion-fiscal":{"get":{"tags":["Integrador: configuración fiscal"],"summary":"Consultar la configuración fiscal","description":"Devuelve el estado del certificado, el timbrado y el CSC del cliente, y qué le falta para emitir.\n","operationId":"integrador-consultar-configuracion-fiscal","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234}],"responses":{"200":{"description":"Estado de la configuración fiscal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseConfiguracionFiscalDTO"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/geografia/distritos/{distritoId}/ciudades":{"get":{"tags":["Catálogos"],"summary":"Listar ciudades de un distrito","description":"Devuelve las ciudades de un distrito con el código que SIFEN espera en el domicilio del receptor.","operationId":"listar-ciudades","parameters":[{"name":"distritoId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseListCiudadDTO"}}}}},"security":[]}},"/api/v1/geografia/departamentos":{"get":{"tags":["Catálogos"],"summary":"Listar departamentos","description":"Devuelve los departamentos de Paraguay con el código que SIFEN espera en el domicilio del receptor.","operationId":"listar-departamentos","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseListDepartamentoDTO"}}}}},"security":[]}},"/api/v1/geografia/departamentos/{departamentoId}/distritos":{"get":{"tags":["Catálogos"],"summary":"Listar distritos de un departamento","description":"Devuelve los distritos de un departamento con el código que SIFEN espera en el domicilio del receptor.","operationId":"listar-distritos","parameters":[{"name":"departamentoId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseListDistritoDTO"}}}}},"security":[]}},"/api/v1/geografia/departamentos/{departamentoId}/ciudades":{"get":{"tags":["Catálogos"],"summary":"Listar ciudades de un departamento","description":"Devuelve todas las ciudades de un departamento con el código que SIFEN espera en el domicilio del receptor.","operationId":"listar-ciudades-departamento","parameters":[{"name":"departamentoId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponseListCiudadDTO"}}}}},"security":[]}},"/api/v1/documento-electronico/{cdc}/xml":{"get":{"tags":["Documentos electrónicos"],"summary":"Descargar el XML firmado de un documento","description":"Descarga el XML firmado tal como se envió a SIFEN, con el código QR incluido. Está disponible desde que el documento se registra, sin esperar la respuesta de SIFEN. Si el documento existe pero todavía no tiene XML, responde 409.","operationId":"descargar-xml","parameters":[{"name":"cdc","in":"path","description":"CDC del documento, 44 dígitos","required":true,"schema":{"type":"string"},"example":"01800123451001001000000122026042710000000006"}],"responses":{"200":{"description":"XML firmado del documento","headers":{"Content-Disposition":{"description":"attachment; filename=\"{cdc}.xml\"","style":"simple","schema":{"type":"string"}}},"content":{"application/xml":{"schema":{"type":"string"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/DocumentArchived"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/DocumentXmlUnavailable"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/documento-electronico/{cdc}/kude":{"get":{"tags":["Documentos electrónicos"],"summary":"Descargar el KuDE en PDF","description":"Descarga el KuDE en PDF de un documento. Devuelve el PDF conservado o solicita su preparación sin correo si falta. Un 202 es JSON, no un PDF: seguir Location con soloConsulta=true, cada 5 segundos. Solo consulta no vuelve a pedir la preparación: si sigue pendiente después de 2 minutos, repetir una vez la descarga sin soloConsulta. Se verifican titularidad y retención antes de consultar archivos o solicitar preparación. Las notas de remisión requieren APROBADO o APROBADO_OBSERVACION; de lo contrario, 403. Los fallos técnicos antes informados como 422 ahora usan 500/503 según la causa.","operationId":"descargar-kude","parameters":[{"name":"cdc","in":"path","description":"CDC del documento, 44 dígitos","required":true,"schema":{"type":"string"},"example":"01800123451001001000000122026042710000000006"},{"name":"soloConsulta","in":"query","description":"Sólo consultar el estado: no vuelve a pedir la preparación del PDF","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"PDF del KuDE","headers":{"Content-Disposition":{"description":"inline; filename=\"{cdc}.pdf\"","style":"simple","schema":{"type":"string"}},"Content-Length":{"style":"simple","schema":{"type":"integer","format":"int64"}}},"content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"202":{"$ref":"#/components/responses/KuDePending"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/DocumentArchived"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/KuDeGenerationError"},"501":{"$ref":"#/components/responses/KuDeNotSupported"},"503":{"$ref":"#/components/responses/KuDeUnavailable"}}}},"/api/v1/documento-electronico/{cdc}/kude/ticket":{"get":{"tags":["Documentos electrónicos"],"summary":"Descargar el KuDE en cinta de papel (PDF)","description":"Genera el KuDE en formato cinta de papel para impresoras térmicas de 80 o 58 mm (Manual Técnico V150, cap. 13.6). Con resumen=true omite el detalle de ítems y de impuestos (cap. 13.7). Se genera en cada pedido y no se conserva. Disponible para facturas y notas de crédito o débito; otros tipos devuelven 501.","operationId":"descargar-kude-ticket","parameters":[{"name":"cdc","in":"path","description":"CDC del documento, 44 dígitos","required":true,"schema":{"type":"string"}},{"name":"ancho","in":"query","description":"Ancho del papel en mm: 80 o 58","required":false,"schema":{"type":"integer","format":"int32","default":80}},{"name":"resumen","in":"query","description":"Ticket resumen, sin detalle de ítems ni de impuestos","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"PDF de una sola página del ancho del papel","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/DocumentArchived"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/KuDeGenerationError"},"501":{"$ref":"#/components/responses/KuDeNotSupported"}}}},"/api/v1/documento-electronico/{cdc}/kude/ticket/imagen":{"get":{"tags":["Documentos electrónicos"],"summary":"Descargar el KuDE en cinta de papel como imagen para ESC/POS","description":"Devuelve el ticket como PNG de 1 bit con el ancho exacto de una línea de la impresora a 203 dpi: 576 o 512 puntos para papel de 80 mm, 384 para 58 mm. Se imprime con el comando de imagen ráster de ESC/POS (GS v 0).","operationId":"descargar-kude-ticket-imagen","parameters":[{"name":"cdc","in":"path","description":"CDC del documento, 44 dígitos","required":true,"schema":{"type":"string"}},{"name":"puntos","in":"query","description":"Puntos por línea de la impresora: 576, 512 o 384","required":false,"schema":{"type":"integer","format":"int32","default":576}},{"name":"resumen","in":"query","description":"Ticket resumen, sin detalle de ítems ni de impuestos","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"PNG de 1 bit","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/DocumentArchived"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/KuDeGenerationError"},"501":{"$ref":"#/components/responses/KuDeNotSupported"}}}},"/api/v1/documento-electronico/status/{cdc}":{"get":{"tags":["Documentos electrónicos"],"summary":"Consultar el estado de un documento","description":"Estados terminales: `APROBADO`, `APROBADO_OBSERVACION`, `RECHAZADO` y `ERROR`. `APROBADO_OBSERVACION` es un resultado exitoso.","operationId":"consultar-estado","parameters":[{"name":"cdc","in":"path","description":"CDC del documento, 44 dígitos","required":true,"schema":{"type":"string"},"example":"01800123451001001000000122026042710000000006"}],"responses":{"200":{"description":"Estado actual del documento","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentoElectronicoStatusDTO"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/DocumentArchived"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/documento-electronico/plan-consumo":{"get":{"tags":["Documentos electrónicos"],"summary":"Consultar plan y consumo (ruta deprecada)","description":"Ruta anterior de `GET /api/v1/contribuyente/plan-consumo`, con la misma respuesta.\nDeja de existir en la fecha del header `Sunset`.\n","operationId":"consultar-plan-consumo-deprecado","responses":{"200":{"description":"Plan y consumo actuales","headers":{"Sunset":{"description":"Fecha de remoción de la ruta (RFC 8594)","style":"simple","schema":{"type":"string","example":"Fri, 15 Jan 2027 00:00:00 GMT"}},"Deprecation":{"description":"Fecha de deprecación como `@` y segundos Unix (RFC 9745)","style":"simple","schema":{"type":"string","example":"@1791590400"}},"Link":{"description":"Ruta que la reemplaza, con `rel=\"successor-version\"`","style":"simple","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanConsumoDTO"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalError"}},"deprecated":true}},"/api/v1/documento-electronico/eventos":{"get":{"tags":["Documentos electrónicos"],"summary":"Listar eventos del contribuyente","description":"Devuelve, paginados, los eventos de cancelación, inutilización y nominación del contribuyente de la API key. Se puede filtrar por tipo de evento.","operationId":"listar-eventos","parameters":[{"name":"page","in":"query","description":"Página, base 0","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","description":"Tamaño de página","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"tipoEvento","in":"query","description":"Filtro por tipo de evento","required":false,"schema":{"type":"string"},"example":"CANCELACION"}],"responses":{"200":{"description":"Página de eventos","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDTOEventoSifenDTO"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/documento-electronico/eventos/{eventoId}":{"get":{"tags":["Documentos electrónicos"],"summary":"Consultar un evento por su id","description":"Devuelve el detalle de un evento de cancelación, inutilización o nominación del contribuyente de la API key.","operationId":"consultar-evento","parameters":[{"name":"eventoId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Evento","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventoSifenDTO"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/contribuyente":{"get":{"tags":["Contribuyente"],"summary":"Consultar el contribuyente emisor","description":"Devuelve los datos del contribuyente identificado por la API key, tal como se usan\nal emitir en el ambiente de la clave: datos fiscales, dirección, timbrado,\nestablecimientos y el estado de la configuración necesaria para emitir.\n\n`estadoConfiguracion.listoParaEmitir` reproduce los controles que la emisión\nhace antes de asignar número. No contempla el cupo del plan, que se consulta en\n`GET /api/v1/contribuyente/plan-consumo`. En SANDBOX el timbrado y el\nCSC de prueba se generan en la primera emisión y el certificado no se exige: sin\nuno activo, se firma con uno de prueba.\n","operationId":"consultar-contribuyente","responses":{"200":{"description":"Datos del contribuyente emisor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContribuyenteIntegracionDTO"},"examples":{"personaJuridica":{"description":"personaJuridica","value":{"ruc":"80012345","digitoVerificador":"1","razonSocial":"Ejemplo S.A.","nombreFantasia":"Ejemplo","tipoContribuyente":"PERSONA_JURIDICA","ambiente":"PROD","actividadesEconomicas":[{"codigo":"56101","descripcion":"Restaurantes"}],"direccion":"Av. Mcal. López","numeroCasa":1234,"departamento":{"codigo":1,"descripcion":"CAPITAL"},"distrito":{"codigo":1,"descripcion":"ASUNCION (DISTRITO)"},"ciudad":{"codigo":1,"descripcion":"ASUNCION (DISTRITO)"},"telefono":"021123456","email":"facturacion@ejemplo.com.py","timbrado":{"numero":12345678,"fechaInicioVigencia":"2026-01-15"},"establecimientos":[{"numeroEstablecimiento":1,"nombreSucursal":"Casa central","activo":true,"puntosExpedicion":[{"puntoExpedicion":1,"activo":true}]}],"logoUrl":"https://example.com/logo.png","estadoConfiguracion":{"certificadoConfigurado":true,"certificadoVence":"2027-03-01","certificadoVigente":true,"cscConfigurado":true,"timbradoVigente":true,"direccionConfigurada":true,"actividadEconomicaConfigurada":true,"listoParaEmitir":true}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/contribuyente/webhooks/{webhookId}/entregas":{"get":{"tags":["Webhooks"],"summary":"Listar las entregas de un webhook","description":"Devuelve, paginado y con las más recientes primero, el historial de entregas del webhook:\nestado, cantidad de intentos y último error. Se conserva durante 90 días.\n","operationId":"listar-entregas-webhook","parameters":[{"name":"webhookId","in":"path","description":"Identificador del webhook, tal como lo devuelve el listado","required":true,"schema":{"type":"integer","format":"int64"},"example":42},{"name":"page","in":"query","description":"Página, base 0","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","description":"Tamaño de página, de 1 a 100","required":false,"schema":{"type":"integer","format":"int32","default":20}},{"name":"estado","in":"query","description":"Filtro por estado de la entrega","required":false,"schema":{"type":"string","enum":["PENDIENTE","ENCOLADA","ENVIANDO","REINTENTANDO","ENTREGADA","FALLIDA","CANCELADA"]}},{"name":"tipoEvento","in":"query","description":"Filtro por tipo de evento","required":false,"schema":{"type":"string","enum":["documento.aprobado","documento.rechazado","documento.cancelado","lote.procesado"]}}],"responses":{"200":{"description":"Página de entregas","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEntregaPaginaDTO"},"examples":{"entregas":{"description":"entregas","value":{"content":[{"id":"6f1d2c1e-6a77-4a4a-8d56-3f5a3a2b9c10","eventId":"d44f9f47-380f-4f51-b5c9-4fa335711e18","tipoEvento":"documento.aprobado","endpointId":42,"endpointUrl":"https://erp.ejemplo.com.py/sifende/webhook","estado":"ENTREGADA","cantidadIntentos":1,"ultimoHttpStatus":200,"ultimoErrorCodigo":null,"ultimoErrorMensaje":null,"fechaCreacion":"2026-10-20T15:00:00Z","fechaUltimoIntento":"2026-10-20T15:00:01Z","fechaEntrega":"2026-10-20T15:00:01Z","fechaFallo":null}],"page":0,"size":20,"totalElements":1,"totalPages":1}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/contribuyente/plan-consumo":{"get":{"tags":["Contribuyente"],"summary":"Consultar plan y consumo","description":"Devuelve el ciclo y consumo del contribuyente identificado por la API key.","operationId":"consultar-plan-consumo","responses":{"200":{"description":"Plan y consumo actuales","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanConsumoDTO"},"examples":{"plan500":{"description":"plan500","value":{"codigoPlan":"PLAN_500","nombrePlan":"Plan 500","inicioPeriodo":"2026-03-01T03:00:00Z","finPeriodo":"2026-04-01T03:00:00Z","documentosIncluidos":500,"consumoConfirmado":512,"reservasActivas":3,"documentosDisponibles":0,"permiteAdicionales":true,"precioDocumentoAdicionalPyg":250,"adicionalesFacturables":12,"costoEstimadoPyg":3000}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/api/v1/integrador/clientes/{contribuyenteId}/api-keys/{apiKeyId}":{"delete":{"tags":["Integrador: API keys de clientes"],"summary":"Revocar una API key","description":"Revoca la key; desde ese momento responde `401`. No se puede deshacer.\n","operationId":"integrador-revocar-api-key-cliente","parameters":[{"name":"contribuyenteId","in":"path","description":"ID del cliente (`contribuyenteId`). Tiene que estar atribuido al integrador","required":true,"schema":{"type":"integer","format":"int64"},"example":1234},{"name":"apiKeyId","in":"path","description":"ID de la API key","required":true,"schema":{"type":"integer","format":"int64"},"example":7}],"responses":{"204":{"description":"API key revocada"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/IntegradorUnauthorized"},"403":{"$ref":"#/components/responses/IntegradorForbidden"},"404":{"$ref":"#/components/responses/IntegradorNotFound"},"409":{"$ref":"#/components/responses/IntegradorConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"integradorKey":[]}]}},"/api/v1/contribuyente/api-key":{"delete":{"tags":["API key"],"summary":"Revocar la API key","description":"Elimina la API key con la que se hace este pedido; desde ese momento responde 401. Sirve para\nque una integración se dé de baja sin entrar al panel: borrá antes sus webhooks con la misma\nclave. Revocar la clave y borrar webhooks no exige un plan con acceso a la API.\n","operationId":"revocar-api-key","responses":{"204":{"description":"API key revocada"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalError"}}}}},"components":{"schemas":{"SaveWebhookEndpointRequest":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"minLength":0},"eventos":{"type":"array","items":{"type":"string","enum":["documento.aprobado","documento.rechazado","documento.cancelado","lote.procesado"]},"minItems":1},"activo":{"type":"boolean"},"ambiente":{"type":"string","enum":["DEV","PROD","SANDBOX"]}},"required":["ambiente","eventos","url"]},"ApiResponseWebhookEndpointDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WebhookEndpointDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"WebhookEndpointDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64","example":42},"url":{"type":"string","example":"https://erp.ejemplo.com.py/sifende/webhook"},"ambiente":{"type":"string","enum":["DEV","PROD","SANDBOX"],"example":"PROD"},"eventos":{"type":"array","example":["documento.aprobado","documento.rechazado"],"items":{"type":"string"}},"activo":{"type":"boolean"},"fechaCreacion":{"type":"string","format":"date-time"},"fechaEdicion":{"type":"string","format":"date-time"},"fechaRotacionSecreto":{"type":"string","format":"date-time"}},"required":["activo","ambiente","eventos","fechaCreacion","fechaEdicion","fechaRotacionSecreto","id","url"]},"FormularioF1":{"type":"object","properties":{"titularNombre":{"type":"string","maxLength":255,"minLength":0},"titularDocumento":{"type":"string","maxLength":20,"minLength":0},"titularCelular":{"type":"string","maxLength":30,"minLength":0},"titularEmail":{"type":"string","format":"email","maxLength":255,"minLength":0},"titularDireccion":{"type":"string","maxLength":255,"minLength":0},"sistemaOperativo":{"type":"string","enum":["WINDOWS","MACOS","LINUX","OTRO"]},"sistemaOperativoOtro":{"type":"string","maxLength":60,"minLength":0},"organizacionNombre":{"type":"string","maxLength":255,"minLength":0},"organizacionRuc":{"type":"string","maxLength":20,"minLength":0},"unidadOrganizativa":{"type":"string","maxLength":120,"minLength":0},"cargo":{"type":"string","maxLength":120,"minLength":0},"contactoNombre":{"type":"string","maxLength":255,"minLength":0},"contactoCelular":{"type":"string","maxLength":30,"minLength":0},"contactoTelefono":{"type":"string","maxLength":30,"minLength":0},"contactoEmail":{"type":"string","format":"email","maxLength":255,"minLength":0},"contactoDireccion":{"type":"string","maxLength":255,"minLength":0}}},"GuardarSolicitudRequest":{"type":"object","properties":{"prestador":{"type":"string","enum":["SOSDOCS","CODE100"]},"tipoSolicitante":{"type":"string","enum":["UNIPERSONAL","SA","SRL","EAS","ASOCIACION","COOPERATIVA","COMISION_VECINAL"]},"formulario":{"$ref":"#/components/schemas/FormularioF1"}},"required":["formulario","prestador","tipoSolicitante"]},"ApiResponseSolicitudCertificadoDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SolicitudCertificadoDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"DocumentoSolicitudDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"tipo":{"type":"string","enum":["CEDULA_IDENTIDAD","CONSTANCIA_RUC","CEDULA_TRIBUTARIA","CERTIFICADO_CUMPLIMIENTO","ESCRITURA_CONSTITUCION","ACTA_ASAMBLEA","CONSTANCIA_ABOGACIA","BENEFICIARIOS_FINALES","ESTRUCTURA_JURIDICA","REPRESENTACION_LEGAL","NOTA_AUTORIZACION","CEDULAS_AUTORIDADES","NOTA_DESIGNACION_FIRMANTE","FORMULARIO_F1"]},"nombreArchivo":{"type":"string"},"contentType":{"type":"string"},"tamano":{"type":"integer","format":"int32"},"origen":{"type":"string","enum":["USUARIO","MARANGATU","FIRMA"]},"estado":{"type":"string","enum":["CARGADO","APROBADO","OBSERVADO"]},"observacion":{"type":"string"},"fechaCreacion":{"type":"string","format":"date-time"}}},"FirmaDTO":{"type":"object","properties":{"estado":{"type":"string","enum":["SIN_ENVIAR","PENDIENTE","VENCIDA","FIRMADA"]},"email":{"type":"string"},"expiraEn":{"type":"string","format":"date-time"},"fecha":{"type":"string","format":"date-time"}}},"PrestadorDTO":{"type":"object","properties":{"codigo":{"type":"string","enum":["SOSDOCS","CODE100"]},"nombre":{"type":"string"},"razonSocial":{"type":"string"},"sitio":{"type":"string"},"precio":{"type":"integer","format":"int64"},"validezMeses":{"type":"integer","format":"int32"},"habilitado":{"type":"boolean"}}},"RequisitoDTO":{"type":"object","properties":{"tipo":{"type":"string","enum":["CEDULA_IDENTIDAD","CONSTANCIA_RUC","CEDULA_TRIBUTARIA","CERTIFICADO_CUMPLIMIENTO","ESCRITURA_CONSTITUCION","ACTA_ASAMBLEA","CONSTANCIA_ABOGACIA","BENEFICIARIOS_FINALES","ESTRUCTURA_JURIDICA","REPRESENTACION_LEGAL","NOTA_AUTORIZACION","CEDULAS_AUTORIDADES","NOTA_DESIGNACION_FIRMANTE","FORMULARIO_F1"]},"nombre":{"type":"string"},"ayuda":{"type":"string"},"obligatorio":{"type":"boolean"},"disponibleEnMarangatu":{"type":"boolean"},"admiteVarios":{"type":"boolean"},"cumplido":{"type":"boolean"},"documentos":{"type":"array","items":{"$ref":"#/components/schemas/DocumentoSolicitudDTO"}}}},"SolicitudCertificadoDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"contribuyenteId":{"type":"integer","format":"int64"},"ruc":{"type":"string"},"razonSocial":{"type":"string"},"prestador":{"$ref":"#/components/schemas/PrestadorDTO"},"tipoSolicitante":{"type":"string","enum":["UNIPERSONAL","SA","SRL","EAS","ASOCIACION","COOPERATIVA","COMISION_VECINAL"]},"estado":{"type":"string","enum":["BORRADOR","EN_REVISION","OBSERVADA","ENVIADA_PRESTADOR","EMITIDA","COMPLETADA","CANCELADA"]},"origen":{"type":"string","enum":["PORTAL_SOCIOS","BACKOFFICE"]},"formulario":{"$ref":"#/components/schemas/FormularioF1"},"requisitos":{"type":"array","items":{"$ref":"#/components/schemas/RequisitoDTO"}},"faltantes":{"type":"array","items":{"type":"string"}},"firma":{"$ref":"#/components/schemas/FirmaDTO"},"observacion":{"type":"string"},"referenciaPrestador":{"type":"string"},"fechaCreacion":{"type":"string","format":"date-time"},"fechaEnvio":{"type":"string","format":"date-time"},"fechaEnvioPrestador":{"type":"string","format":"date-time"},"fechaEmision":{"type":"string","format":"date-time"},"fechaCierre":{"type":"string","format":"date-time"},"fechaEdicion":{"type":"string","format":"date-time"},"enlaceExpiraEn":{"type":"string","format":"date-time"}}},"CambiarPlanClientePortalRequest":{"type":"object","properties":{"planId":{"type":"integer","format":"int64"},"versionEsperada":{"type":"integer","format":"int64"}},"required":["planId","versionEsperada"]},"Actual":{"type":"object","properties":{"codigo":{"type":"string"},"nombre":{"type":"string"},"delIntegrador":{"type":"boolean"},"documentosIncluidos":{"type":"integer","format":"int32"},"precioMensualPyg":{"type":"integer","format":"int64"},"vigenteDesde":{"type":"string","format":"date-time"}}},"ApiResponsePlanClientePortalDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PlanClientePortalDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"Pagador":{"type":"object","properties":{"actual":{"type":"string","enum":["INTEGRADOR","CLIENTE"]},"programado":{"type":"string","enum":["INTEGRADOR","CLIENTE"]},"desde":{"type":"string","format":"date-time"}}},"PlanClientePortalDTO":{"type":"object","properties":{"actual":{"$ref":"#/components/schemas/Actual"},"programado":{"$ref":"#/components/schemas/Programado"},"pagador":{"$ref":"#/components/schemas/Pagador"}}},"Programado":{"type":"object","properties":{"codigo":{"type":"string"},"nombre":{"type":"string"},"fechaEfectiva":{"type":"string","format":"date-time"}}},"UpdateContribuyentePersonalizacionRequest":{"type":"object","properties":{"sitioWeb":{"type":"string","maxLength":255,"minLength":0,"pattern":"|https?://.{1,240}"},"facebookUrl":{"type":"string","maxLength":255,"minLength":0,"pattern":"|https?://.{1,240}"},"instagramUrl":{"type":"string","maxLength":255,"minLength":0,"pattern":"|https?://.{1,240}"},"twitterUrl":{"type":"string","maxLength":255,"minLength":0,"pattern":"|https?://.{1,240}"},"linkedinUrl":{"type":"string","maxLength":255,"minLength":0,"pattern":"|https?://.{1,240}"},"tiktokUrl":{"type":"string","maxLength":255,"minLength":0,"pattern":"|https?://.{1,240}"},"youtubeUrl":{"type":"string","maxLength":255,"minLength":0,"pattern":"|https?://.{1,240}"},"whatsapp":{"type":"string","maxLength":30,"minLength":0},"telefonoContacto":{"type":"string","maxLength":30,"minLength":0},"emailContacto":{"type":"string","format":"email","maxLength":100,"minLength":0},"direccionContacto":{"type":"string","maxLength":255,"minLength":0},"nombreComercial":{"type":"string","maxLength":100,"minLength":0},"slug":{"type":"string","maxLength":60,"minLength":0},"colorPrimario":{"type":"string","pattern":"|#[0-9A-Fa-f]{6}"},"colorSecundario":{"type":"string","pattern":"|#[0-9A-Fa-f]{6}"},"mensajePie":{"type":"string","maxLength":500,"minLength":0},"mostrarLogoKude":{"type":"boolean"},"mostrarLogoEmail":{"type":"boolean"},"mostrarRedesEmail":{"type":"boolean"},"mostrarMarcaSifendeEmail":{"type":"boolean"}}},"ApiResponseContribuyentePersonalizacionDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ContribuyentePersonalizacionDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"ContribuyentePersonalizacionDTO":{"type":"object","properties":{"contribuyenteId":{"type":"integer","format":"int64"},"tieneLogo":{"type":"boolean"},"logoUrl":{"type":"string"},"logoNombreArchivo":{"type":"string"},"sitioWeb":{"type":"string"},"facebookUrl":{"type":"string"},"instagramUrl":{"type":"string"},"twitterUrl":{"type":"string"},"linkedinUrl":{"type":"string"},"tiktokUrl":{"type":"string"},"youtubeUrl":{"type":"string"},"whatsapp":{"type":"string"},"telefonoContacto":{"type":"string"},"emailContacto":{"type":"string"},"direccionContacto":{"type":"string"},"nombreComercial":{"type":"string"},"slug":{"type":"string"},"colorPrimario":{"type":"string"},"colorSecundario":{"type":"string"},"mensajePie":{"type":"string"},"mostrarLogoKude":{"type":"boolean"},"mostrarLogoEmail":{"type":"boolean"},"mostrarRedesEmail":{"type":"boolean"},"mostrarMarcaSifendeEmail":{"type":"boolean"},"fechaEdicion":{"type":"string","format":"date-time"}}},"UpdatePersonalizacionCuentaRequest":{"type":"object","properties":{"slug":{"type":"string","maxLength":60,"minLength":0},"mostrarMarcaSifendeEmail":{"type":"boolean"}}},"CambiarPagadorClientePortalRequest":{"type":"object","properties":{"pagador":{"type":"string","enum":["INTEGRADOR","CLIENTE"]}},"required":["pagador"]},"UpdateEstablecimientoRequest":{"type":"object","properties":{"nombreSucursal":{"type":"string","maxLength":30,"minLength":0},"nombreFantasia":{"type":"string","maxLength":255,"minLength":0,"pattern":"\\s*|\\s*\\S.{2,}\\S\\s*"},"estaActivo":{"type":"boolean"}},"required":["estaActivo"]},"ApiResponseEstablecimientoDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/EstablecimientoDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"EstablecimientoDTO":{"type":"object","properties":{"establecimientoId":{"type":"integer","format":"int64"},"contribuyenteId":{"type":"integer","format":"int64"},"numeroEstablecimiento":{"type":"integer","format":"int32"},"nombreSucursal":{"type":"string"},"nombreFantasia":{"type":"string"},"perfilMarcaId":{"type":"integer","format":"int64"},"puntoExpedicionPredeterminado":{"type":"integer","format":"int32"},"estaActivo":{"type":"boolean"},"puntosExpedicion":{"type":"array","items":{"$ref":"#/components/schemas/PuntoExpedicionDTO"}},"fechaCreacion":{"type":"string","format":"date-time"},"fechaEdicion":{"type":"string","format":"date-time"}}},"PuntoExpedicionDTO":{"type":"object","properties":{"puntoExpedicionId":{"type":"integer","format":"int64"},"establecimientoId":{"type":"integer","format":"int64"},"puntoExpedicion":{"type":"integer","format":"int32"},"estaActivo":{"type":"boolean"},"perfilMarcaId":{"type":"integer","format":"int64"},"fechaCreacion":{"type":"string","format":"date-time"},"fechaEdicion":{"type":"string","format":"date-time"}}},"UpdatePuntoExpedicionRequest":{"type":"object","properties":{"estaActivo":{"type":"boolean"}},"required":["estaActivo"]},"ApiResponsePuntoExpedicionDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PuntoExpedicionDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"TimbradoProduccionRequest":{"type":"object","properties":{"numeroTimbrado":{"type":"integer","format":"int32","exclusiveMinimum":0},"fechaInicio":{"type":"string","format":"date"}},"required":["fechaInicio","numeroTimbrado"]},"ApiResponseTimbradoDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TimbradoDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"TimbradoDTO":{"type":"object","properties":{"timbradoId":{"type":"integer","format":"int64"},"contribuyenteId":{"type":"integer","format":"int64"},"numeroTimbrado":{"type":"integer","format":"int32"},"ambiente":{"type":"string"},"gestionadoPorSistema":{"type":"boolean"},"fechaInicio":{"type":"string","format":"date"},"fechaCreacion":{"type":"string","format":"date-time"},"fechaEdicion":{"type":"string","format":"date-time"}}},"CscProduccionRequest":{"type":"object","properties":{"idCsc":{"type":"string","minLength":1,"pattern":"\\d{4}"},"csc":{"type":"string","minLength":1,"pattern":"[A-Za-z0-9]{32}"}},"required":["csc","idCsc"]},"ApiResponseCscDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CscDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"CscDTO":{"type":"object","properties":{"contribuyenteCscId":{"type":"integer","format":"int64"},"contribuyenteId":{"type":"integer","format":"int64"},"ambiente":{"type":"string"},"idCsc":{"type":"string"},"cscMasked":{"type":"string"},"gestionadoPorSistema":{"type":"boolean"},"fechaCreacion":{"type":"string","format":"date-time"},"fechaEdicion":{"type":"string","format":"date-time"}}},"ActualizarWebhookIntegracionRequest":{"type":"object","example":{"url":"https://erp.ejemplo.com.py/sifende/webhook","eventos":["documento.aprobado","documento.cancelado"],"activo":true},"properties":{"url":{"type":"string","description":"URL HTTPS pública que recibe los eventos. No se siguen redirects.","example":"https://erp.ejemplo.com.py/sifende/webhook","maxLength":2048,"minLength":0},"eventos":{"type":"array","description":"Eventos a los que se suscribe el webhook.","items":{"type":"string","enum":["documento.aprobado","documento.rechazado","documento.cancelado","lote.procesado"]},"minItems":1},"activo":{"type":"boolean","description":"`false` pausa el webhook y cancela sus entregas pendientes."}},"required":["activo","eventos","url"]},"AltaClienteIntegradorRequest":{"type":"object","properties":{"ruc":{"type":"string","minLength":1,"pattern":"\\d{5,12}"},"dv":{"type":"string","minLength":1,"pattern":"\\d"},"razonSocial":{"type":"string","maxLength":255,"minLength":0},"nombreFantasia":{"type":"string","maxLength":255,"minLength":0,"pattern":"|.{4,}"},"tipoContribuyente":{"type":"string","minLength":1,"pattern":"FI|JU|1|2"},"email":{"type":"string","format":"email","maxLength":100,"minLength":0},"telefono":{"type":"string","maxLength":20,"minLength":0},"estadoRuc":{"type":"string","maxLength":10,"minLength":0},"esFacturadorElectronico":{"type":"boolean"},"direccion":{"$ref":"#/components/schemas/CreateContribuyenteDireccionRequest"},"actividadesEconomicasCodigos":{"type":"array","items":{"type":"string"}},"correoTitular":{"type":"string","format":"email","maxLength":255,"minLength":0}},"required":["dv","email","razonSocial","ruc","telefono","tipoContribuyente"]},"CreateContribuyenteDireccionRequest":{"type":"object","properties":{"departamentoId":{"type":"integer","format":"int32"},"distritoId":{"type":"integer","format":"int32"},"ciudadId":{"type":"integer","format":"int32"},"direccion":{"type":"string","maxLength":255,"minLength":0},"numeroCasa":{"type":"integer","format":"int32"},"complementoDir1":{"type":"string","maxLength":255,"minLength":0},"complementoDir2":{"type":"string","maxLength":255,"minLength":0}},"required":["ciudadId","departamentoId","direccion","distritoId","numeroCasa"]},"AccesoTitularDTO":{"type":"object","properties":{"resultado":{"type":"string","enum":["CUENTA_CREADA","CUENTA_EXISTENTE","INVITACION"]},"contrasenaGenerada":{"type":"string"}}},"AltaPortalDTO":{"type":"object","properties":{"contribuyenteId":{"type":"integer","format":"int64"},"correoTitular":{"type":"string"},"estado":{"type":"string","enum":["PENDIENTE","ACEPTADA"]},"venceEn":{"type":"string","format":"date-time"},"vencida":{"type":"boolean"},"creadaPor":{"$ref":"#/components/schemas/CreadaPor"},"aceptadaEn":{"type":"string","format":"date-time"},"fechaCreacion":{"type":"string","format":"date-time"}}},"ApiResponseClienteCreadoPortalDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ClienteCreadoPortalDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"ClienteCreadoPortalDTO":{"type":"object","properties":{"contribuyenteId":{"type":"integer","format":"int64"},"ruc":{"type":"string"},"dv":{"type":"string"},"razonSocial":{"type":"string"},"nombreFantasia":{"type":"string"},"nivel":{"type":"string","enum":["DIRECTO","RED"]},"estudio":{"$ref":"#/components/schemas/Estudio"},"origen":{"type":"string","enum":["HEREDADA","PORTAL","BACKOFFICE","MIGRACION"]},"fechaAlta":{"type":"string","format":"date-time"},"vigenteDesde":{"type":"string","format":"date-time"},"estadoAlta":{"type":"string","enum":["PENDIENTE_TITULAR","ACTIVO"]},"plan":{"$ref":"#/components/schemas/Plan"},"estadoPago":{"type":"string","enum":["AL_DIA","PENDIENTE","SIN_COBROS"]},"pagos":{"type":"array","items":{"$ref":"#/components/schemas/PagoPeriodo"}},"enlaceSifende":{"type":"string"},"altaPortal":{"$ref":"#/components/schemas/AltaPortalDTO"},"accesoTitular":{"$ref":"#/components/schemas/AccesoTitularDTO"}}},"ClientePortalDTO":{"type":"object","properties":{"contribuyenteId":{"type":"integer","format":"int64"},"ruc":{"type":"string"},"dv":{"type":"string"},"razonSocial":{"type":"string"},"nombreFantasia":{"type":"string"},"nivel":{"type":"string","enum":["DIRECTO","RED"]},"estudio":{"$ref":"#/components/schemas/Estudio"},"origen":{"type":"string","enum":["HEREDADA","PORTAL","BACKOFFICE","MIGRACION"]},"fechaAlta":{"type":"string","format":"date-time"},"vigenteDesde":{"type":"string","format":"date-time"},"estadoAlta":{"type":"string","enum":["PENDIENTE_TITULAR","ACTIVO"]},"plan":{"$ref":"#/components/schemas/Plan"},"estadoPago":{"type":"string","enum":["AL_DIA","PENDIENTE","SIN_COBROS"]}}},"CreadaPor":{"type":"object","properties":{"socioUsuarioId":{"type":"integer","format":"int64"},"nombre":{"type":"string"},"correo":{"type":"string"}}},"Estudio":{"type":"object","properties":{"socioId":{"type":"integer","format":"int64"},"nombre":{"type":"string"}}},"PagoPeriodo":{"type":"object","properties":{"periodoInicio":{"type":"string","format":"date-time"},"periodoFin":{"type":"string","format":"date-time"},"estado":{"type":"string","enum":["PENDIENTE","PAGADO","ANULADO","REVERTIDO"]}}},"Plan":{"type":"object","properties":{"codigo":{"type":"string"},"nombre":{"type":"string"}}},"ApiResponseWebhookSecretResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/WebhookSecretResponse"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"WebhookSecretResponse":{"type":"object","properties":{"endpoint":{"$ref":"#/components/schemas/WebhookEndpointDTO"},"secreto":{"type":"string","description":"Secreto de firma. Sólo se devuelve al crear el webhook y al rotar el secreto.","example":"whsec_8Kq2m5N0vXrT1bYc3LdWz9AeJfHpU4sG"}},"required":["endpoint","secreto"]},"InvitarTitularRequest":{"type":"object","properties":{"correoTitular":{"type":"string","format":"email","maxLength":255,"minLength":0}},"required":["correoTitular"]},"ApiResponseAltaPortalDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AltaPortalDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"CrearSolicitudRequest":{"type":"object","properties":{"prestador":{"type":"string","enum":["SOSDOCS","CODE100"]},"tipoSolicitante":{"type":"string","enum":["UNIPERSONAL","SA","SRL","EAS","ASOCIACION","COOPERATIVA","COMISION_VECINAL"]}},"required":["prestador","tipoSolicitante"]},"EnvioFirmaRequest":{"type":"object","properties":{"email":{"type":"string","format":"email","maxLength":255,"minLength":0}}},"ApiResponseEnvioFirmaDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/EnvioFirmaDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"EnvioFirmaDTO":{"type":"object","properties":{"solicitud":{"$ref":"#/components/schemas/SolicitudCertificadoDTO"},"enlace":{"type":"string"}}},"AdjuntarDocumentoSolicitudIntegradorForm":{"type":"object","properties":{"tipo":{"type":"string","description":"Tipo de documento","enum":["CEDULA_IDENTIDAD","CONSTANCIA_RUC","CEDULA_TRIBUTARIA","CERTIFICADO_CUMPLIMIENTO","ESCRITURA_CONSTITUCION","ACTA_ASAMBLEA","CONSTANCIA_ABOGACIA","BENEFICIARIOS_FINALES","ESTRUCTURA_JURIDICA","REPRESENTACION_LEGAL","NOTA_AUTORIZACION","CEDULAS_AUTORIDADES","NOTA_DESIGNACION_FIRMANTE","FORMULARIO_F1"]},"archivo":{"type":"string","format":"binary","description":"Archivo del documento"}},"required":["archivo","tipo"]},"ImportacionMarangatuRequest":{"type":"object","properties":{"usuario":{"type":"string","minLength":1},"clave":{"type":"string","minLength":1},"tipos":{"type":"array","items":{"type":"string","enum":["CEDULA_IDENTIDAD","CONSTANCIA_RUC","CEDULA_TRIBUTARIA","CERTIFICADO_CUMPLIMIENTO","ESCRITURA_CONSTITUCION","ACTA_ASAMBLEA","CONSTANCIA_ABOGACIA","BENEFICIARIOS_FINALES","ESTRUCTURA_JURIDICA","REPRESENTACION_LEGAL","NOTA_AUTORIZACION","CEDULAS_AUTORIDADES","NOTA_DESIGNACION_FIRMANTE","FORMULARIO_F1"]},"minItems":1,"uniqueItems":true}},"required":["clave","tipos","usuario"]},"ApiResponseImportacionMarangatuDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ImportacionMarangatuDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"ImportacionMarangatuDTO":{"type":"object","properties":{"solicitud":{"$ref":"#/components/schemas/SolicitudCertificadoDTO"},"resultados":{"type":"array","items":{"$ref":"#/components/schemas/Resultado"}}}},"Resultado":{"type":"object","properties":{"tipo":{"type":"string","enum":["CEDULA_IDENTIDAD","CONSTANCIA_RUC","CEDULA_TRIBUTARIA","CERTIFICADO_CUMPLIMIENTO","ESCRITURA_CONSTITUCION","ACTA_ASAMBLEA","CONSTANCIA_ABOGACIA","BENEFICIARIOS_FINALES","ESTRUCTURA_JURIDICA","REPRESENTACION_LEGAL","NOTA_AUTORIZACION","CEDULAS_AUTORIDADES","NOTA_DESIGNACION_FIRMANTE","FORMULARIO_F1"]},"importado":{"type":"boolean"},"motivo":{"type":"string"}}},"CreateEstablecimientoRequest":{"type":"object","properties":{"numeroEstablecimiento":{"type":"integer","format":"int32","maximum":999,"minimum":1},"nombreSucursal":{"type":"string","maxLength":30,"minLength":0},"nombreFantasia":{"type":"string","maxLength":255,"minLength":0,"pattern":"\\s*|\\s*\\S.{2,}\\S\\s*"},"puntosExpedicion":{"type":"array","items":{"type":"integer","format":"int32","maximum":999,"minimum":1},"maxItems":20,"minItems":0}},"required":["numeroEstablecimiento"]},"CreatePuntoExpedicionRequest":{"type":"object","properties":{"puntoExpedicion":{"type":"integer","format":"int32","maximum":999,"minimum":1}},"required":["puntoExpedicion"]},"PasoProduccionRequest":{"type":"object","properties":{"rucConfirmacion":{"type":"string","minLength":1},"numeroTimbrado":{"type":"integer","format":"int32","exclusiveMinimum":0},"fechaInicioTimbrado":{"type":"string","format":"date"},"idCsc":{"type":"string","pattern":"\\d{4}"},"csc":{"type":"string","pattern":"[A-Za-z0-9]{32}"}},"required":["rucConfirmacion"]},"ApiResponsePasoProduccionResponseDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PasoProduccionResponseDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"ContribuyenteActividadEconomicaDTO":{"type":"object","properties":{"contribuyenteActividadId":{"type":"integer","format":"int64"},"codigo":{"type":"string"},"descripcion":{"type":"string"},"nivel":{"type":"integer","format":"int32"},"sector":{"type":"string"},"padreCodigo":{"type":"string"}}},"ContribuyenteDTO":{"type":"object","properties":{"contribuyenteId":{"type":"integer","format":"int64"},"ruc":{"type":"string"},"dv":{"type":"string"},"razonSocial":{"type":"string"},"nombreFantasia":{"type":"string"},"tipoContribuyente":{"type":"string"},"email":{"type":"string"},"telefono":{"type":"string"},"direccion":{"$ref":"#/components/schemas/ContribuyenteDireccionDTO"},"actividadesEconomicas":{"type":"array","items":{"$ref":"#/components/schemas/ContribuyenteActividadEconomicaDTO"}},"estadoRuc":{"type":"string"},"esFacturadorElectronico":{"type":"boolean"},"tieneCertificado":{"type":"boolean"},"tieneTimbrado":{"type":"boolean"},"fechaCreacion":{"type":"string","format":"date-time"},"fechaEdicion":{"type":"string","format":"date-time"},"ambiente":{"type":"string"},"fechaPasoProduccion":{"type":"string","format":"date-time"},"usuarioPasoProduccionId":{"type":"integer","format":"int64"},"tipoRegimen":{"type":"string","enum":["REGIMEN_TURISMO","IMPORTADOR","EXPORTADOR","MAQUILA","LEY_60_90","REGIMEN_PEQUENO_PRODUCTOR","REGIMEN_MEDIANO_PRODUCTOR","REGIMEN_CONTABLE"]},"responsableGeneracion":{"$ref":"#/components/schemas/ResponsableGeneracionDTO"},"esPropietario":{"type":"boolean"}}},"ContribuyenteDireccionDTO":{"type":"object","properties":{"contribuyenteId":{"type":"integer","format":"int64"},"departamentoId":{"type":"integer","format":"int32"},"departamentoCodigo":{"type":"integer","format":"int32"},"departamentoNombre":{"type":"string"},"distritoId":{"type":"integer","format":"int32"},"distritoCodigo":{"type":"integer","format":"int32"},"distritoNombre":{"type":"string"},"ciudadId":{"type":"integer","format":"int32"},"ciudadCodigo":{"type":"integer","format":"int32"},"ciudadNombre":{"type":"string"},"direccion":{"type":"string"},"numeroCasa":{"type":"integer","format":"int32"},"complementoDir1":{"type":"string"},"complementoDir2":{"type":"string"}}},"PasoProduccionResponseDTO":{"type":"object","properties":{"contribuyente":{"$ref":"#/components/schemas/ContribuyenteDTO"},"checks":{"type":"array","items":{"$ref":"#/components/schemas/PreflightCheckDTO"}}}},"PreflightCheckDTO":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"estado":{"type":"string","enum":["OK","WARNING","FAIL"]},"mensaje":{"type":"string"},"bloqueante":{"type":"boolean"}}},"ResponsableGeneracionDTO":{"type":"object","description":"Responsable de la generación del DE (D140), configurado en el emisor","properties":{"tipoDocumento":{"type":"string","description":"D141","enum":["CEDULA_PARAGUAYA","PASAPORTE","CEDULA_EXTRANJERA","CARNET_DE_RESIDENCIA","OTRO"],"example":"CEDULA_PARAGUAYA"},"descripcionTipoDocumento":{"type":"string","description":"D142, obligatoria y exclusiva de `tipoDocumento = OTRO`","maxLength":41,"minLength":9},"numeroDocumento":{"type":"string","description":"D143","example":"1234567","minLength":1,"pattern":"[0-9A-Za-z-]{1,20}"},"nombre":{"type":"string","description":"D144","example":"Ana Pérez","maxLength":255,"minLength":4},"cargo":{"type":"string","description":"D145","example":"Contadora","maxLength":100,"minLength":4}},"required":["cargo","nombre","numeroDocumento","tipoDocumento"]},"SubirCertificadoIntegradorForm":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"Certificado `.p12`"},"password":{"type":"string","description":"Contraseña del `.p12`"},"idCsc":{"type":"string","description":"ID del CSC","example":"0001"},"csc":{"type":"string","description":"Valor del CSC"}},"required":["csc","file","idCsc","password"]},"ApiResponseCertificadoInfoDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CertificadoInfoDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"CertificadoInfoDTO":{"type":"object","properties":{"certificadoDigitalId":{"type":"integer","format":"int64"},"contribuyenteId":{"type":"integer","format":"int64"},"ambiente":{"type":"string"},"estaActivo":{"type":"boolean"},"subjectCn":{"type":"string"},"issuerCn":{"type":"string"},"serialNumber":{"type":"string"},"fechaEmision":{"type":"string","format":"date"},"fechaExpiracion":{"type":"string","format":"date"},"expirado":{"type":"boolean"},"diasParaExpirar":{"type":"integer","format":"int32"},"idCsc":{"type":"string"},"cscMasked":{"type":"string"}}},"CreateApiKeyRequest":{"type":"object","properties":{"nombre":{"type":"string","maxLength":100,"minLength":0},"ambiente":{"type":"string","description":"Ambiente inmutable de operación","enum":["DEV","PROD","SANDBOX"],"example":"DEV"},"expiraEn":{"type":"string","format":"date-time"}},"required":["ambiente","nombre"]},"ApiResponseCreateApiKeyResponse":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CreateApiKeyResponse"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"CreateApiKeyResponse":{"type":"object","properties":{"apiKeyId":{"type":"integer","format":"int64"},"nombre":{"type":"string"},"keyPrefix":{"type":"string"},"key":{"type":"string"},"ambiente":{"type":"string","enum":["DEV","PROD","SANDBOX"]},"prefijoLegacy":{"type":"boolean"},"contribuyenteId":{"type":"integer","format":"int64"},"estaActivo":{"type":"boolean"},"expiraEn":{"type":"string","format":"date-time"},"fechaCreacion":{"type":"string","format":"date-time"}}},"AutoconfiguracionPortalRequest":{"type":"object","properties":{"usuario":{"type":"string","maxLength":64,"minLength":0},"clave":{"type":"string","maxLength":128,"minLength":0}},"required":["clave","usuario"]},"Actividad":{"type":"object","properties":{"codigo":{"type":"string"},"nombre":{"type":"string"},"esPrincipal":{"type":"boolean"},"reconocida":{"type":"boolean"}}},"ApiResponseAutoconfiguracionPortalDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AutoconfiguracionPortalDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"AutoconfiguracionPortalDTO":{"type":"object","properties":{"ruc":{"type":"string"},"dv":{"type":"string"},"razonSocial":{"type":"string"},"nombreFantasia":{"type":"string"},"tipoContribuyente":{"type":"string"},"email":{"type":"string"},"telefono":{"type":"string"},"estado":{"type":"string"},"estadoRuc":{"type":"string"},"domicilio":{"$ref":"#/components/schemas/Domicilio"},"actividades":{"type":"array","items":{"$ref":"#/components/schemas/Actividad"}},"facturacionElectronica":{"$ref":"#/components/schemas/FacturacionElectronica"},"consultadoEn":{"type":"string","format":"date-time"}}},"CodigoNombre":{"type":"object","properties":{"codigo":{"type":"integer","format":"int32","description":"Código SIFEN (cDepRec / cDisRec / cCiuRec).","example":1},"nombre":{"type":"string","example":"CAPITAL"}}},"Domicilio":{"type":"object","properties":{"departamento":{"$ref":"#/components/schemas/CodigoNombre"},"distrito":{"$ref":"#/components/schemas/CodigoNombre"},"localidad":{"$ref":"#/components/schemas/CodigoNombre"},"barrio":{"type":"string"},"direccion":{"type":"string"},"numeroPuerta":{"type":"string"},"referencias":{"type":"string"}}},"FacturacionElectronica":{"type":"object","properties":{"habilitacion":{"type":"string"},"timbrado":{"$ref":"#/components/schemas/Timbrado"}}},"Timbrado":{"type":"object","properties":{"numero":{"type":"integer","format":"int32"},"fechaInicioVigencia":{"type":"string","format":"date"}},"required":["fechaInicioVigencia","numero"]},"AsociacionFacturaDTO":{"type":"object","description":"Documento referenciado por la factura (H001): una nota de remisión o una factura de anticipo,\nelectrónica (`cdc`) o impresa (timbrado, establecimiento, punto, número, tipo y fecha).\n","properties":{"tipoDocumento":{"type":"string","description":"`ELECTRONICO` o `IMPRESO` (H002)","enum":["ELECTRONICO","IMPRESO","CONSTANCIA_ELECTRONICA"],"example":"ELECTRONICO"},"cdc":{"type":"string","description":"ELECTRONICO: CDC de una NRE (07…) o de una FE de anticipo (01…) del mismo emisor (H004)","pattern":"[0-9]{44}"},"numeroTimbrado":{"type":"string","description":"IMPRESO: timbrado del documento impreso (H005)","example":"12345678","pattern":"[0-9]{8}"},"establecimiento":{"type":"string","description":"IMPRESO: establecimiento (H006)","example":"001","pattern":"[0-9]{3}"},"puntoExpedicion":{"type":"string","description":"IMPRESO: punto de expedición (H007)","example":"001","pattern":"[0-9]{3}"},"numeroDocumento":{"type":"string","description":"IMPRESO: número del documento (H008)","example":"0000123","pattern":"[0-9]{7}"},"tipoDocumentoImpreso":{"type":"string","description":"IMPRESO: `FACTURA` (anticipo) o `NOTA_DE_REMISION` (H009)","enum":["FACTURA","NOTA_DE_CREDITO","NOTA_DE_DEBITO","NOTA_DE_REMISION","COMPROBANTE_DE_RETENCION"],"example":"NOTA_DE_REMISION"},"fechaEmision":{"type":"string","format":"date","description":"IMPRESO: fecha de emisión (H011)","example":"2026-03-10"},"numeroComprobanteRetencion":{"type":"string","description":"Comprobante de retención (H012). Opcional y sólo con un pago `RETENCION`","pattern":"\\S{15}"},"numeroResolucionCreditoFiscal":{"type":"string","description":"Resolución de crédito fiscal (H013). Obligatoria y exclusiva de `VENTA_CREDITO_FISCAL`","pattern":"\\S{15}"}},"required":["tipoDocumento"]},"AutofacturaElectronicaRequest":{"allOf":[{"$ref":"#/components/schemas/DocumentoElectronicoRequest"},{"type":"object","properties":{"condicionOperacion":{"type":"string","default":"CONTADO","description":"Sólo CONTADO","enum":["CONTADO"]},"vendedor":{"$ref":"#/components/schemas/VendedorAutofacturaDTO"},"lugarOperacion":{"$ref":"#/components/schemas/DomicilioAutofacturaDTO"},"constancia":{"$ref":"#/components/schemas/ConstanciaAutofacturaDTO"},"condicionPago":{"$ref":"#/components/schemas/CondicionPagoDTO"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemAutofacturaDTO"},"maxItems":999,"minItems":0},"emailEntrega":{"type":"string","format":"email","maxLength":80,"minLength":0,"pattern":"(?s).*\\S.*"}}},{"properties":{"descuentoGlobalPorcentaje":{"type":"null"},"tipoCambio":{"type":"null"},"condicionOperacion":{"const":"CONTADO"},"monedaOperacion":{"const":"PYG"}}},{"required":["tipoTransaccion"]},{"properties":{"condicionPago":{"not":{"anyOf":[{"required":["condicionCredito"]},{"required":["plazoCredito"]},{"required":["plazoEstructurado"]},{"required":["cuotas"]},{"required":["detalleCuotas"]},{"required":["montoEntregaInicial"]}]},"properties":{"tipo":{"const":"CONTADO"}},"required":["monedaPago","montoPago","tipo","tipoPago"]}}},{"properties":{"tipoDocumento":{"const":"AUTOFACTURA_ELECTRONICA"}}}],"description":"Autofactura electrónica. El comprador se deriva del contribuyente autenticado; no se envía receptor.","required":["condicionPago","constancia","items","lugarOperacion","numeroEstablecimiento","puntoExpedicion","tipoDocumento","tipoEmision","vendedor"],"unevaluatedProperties":false},"CargaRemisionDTO":{"type":"object","properties":{"unidadMedidaVolumen":{"type":"string","enum":["kWh","AA","BG","_4A","AB","BX","CM","CM2","CM3","BK","CPM","Ci","DET","Di","DOC","DPC","BL","GLL","g","GRO","ha","Hs","SET","E4","kg","kg_m2","Km","KT","LT","U_JGO","ME","ml","m","MT","M2","M3","M5","MCU","MG","ML","MIL","MM","MM2","Mi","PK","PAR","BW","FOT","FTK","PCE","pm","JR","PUL","KLT","racion","RM","RO","Se","DR","TN","UNI","UI","GL","Ya"]},"volumenTotal":{"type":"string","example":"99999999999999999999","pattern":"[1-9][0-9]{0,19}"},"unidadMedidaPeso":{"type":"string","enum":["kWh","AA","BG","_4A","AB","BX","CM","CM2","CM3","BK","CPM","Ci","DET","Di","DOC","DPC","BL","GLL","g","GRO","ha","Hs","SET","E4","kg","kg_m2","Km","KT","LT","U_JGO","ME","ml","m","MT","M2","M3","M5","MCU","MG","ML","MIL","MM","MM2","Mi","PK","PAR","BW","FOT","FTK","PCE","pm","JR","PUL","KLT","racion","RM","RO","Se","DR","TN","UNI","UI","GL","Ya"]},"pesoTotal":{"type":"string","example":"99999999999999999999","pattern":"[1-9][0-9]{0,19}"},"caracteristica":{"type":"string","enum":["MERCADERIA_CON_CADENA_DE_FRIO","CARGA_PELIGROSA","OTRO"]},"descripcionCaracteristica":{"type":"string","description":"Sólo OTRO: descripción requerida. En los otros tipos se deriva la descripción oficial","maxLength":50,"minLength":1,"pattern":".*\\S.*"}}},"ChequePagoDTO":{"type":"object","description":"Pago con cheque (E630)","properties":{"numeroCheque":{"type":"string","description":"Número del cheque (E631). Se completa con ceros a la izquierda hasta 8","example":"1234","pattern":"[0-9]{1,8}"},"bancoCheque":{"type":"string","description":"Banco emisor (E632)","example":"Banco Continental","maxLength":20,"minLength":4,"pattern":"(?s).*\\S.*"}},"required":["bancoCheque","numeroCheque"]},"ComprasPublicasDTO":{"type":"object","description":"Datos opcionales de contratación pública, en cualquier operación. Los códigos deben enviarse como strings canónicos; la API no agrega ceros ni acepta números.","properties":{"modalidad":{"type":"string","description":"Modalidad de contratación (E021), exactamente 2 caracteres no blancos","example":"CD","maxLength":2,"minLength":2,"pattern":"\\S{2}"},"entidad":{"type":"string","description":"Entidad contratante (E022), 5 dígitos y valor mayor que cero","example":"00123","maxLength":5,"minLength":5,"pattern":"(?=.*[1-9])\\d{5}"},"anho":{"type":"string","description":"Año de contratación (E023), 2 dígitos y valor mayor que cero","example":"26","maxLength":2,"minLength":2,"pattern":"(?=.*[1-9])\\d{2}"},"secuencia":{"type":"string","description":"Secuencia de contratación (E024), 7 dígitos y valor mayor que cero","example":"0000456","maxLength":7,"minLength":7,"pattern":"(?=.*[1-9])\\d{7}"},"fechaEmisionCodigo":{"type":"string","format":"date","description":"Fecha de emisión del código (E025), anterior a la fecha efectiva de la FE","example":"2026-01-10"}},"required":["anho","entidad","fechaEmisionCodigo","modalidad","secuencia"]},"CondicionPagoDTO":{"type":"object","allOf":[{"allOf":[{"if":{"properties":{"monedaPago":{"const":"PYG"}},"required":["monedaPago"]},"then":{"not":{"required":["tipoCambio"]}}},{"if":{"properties":{"monedaPago":{"not":{"const":"PYG"}}},"required":["monedaPago"]},"then":{"required":["tipoCambio"]}}]}],"description":"Medio de pago de la operación. Qué campos se informan depende de `tipo` y de `tipoPago`.\n`montoPago` tiene que cuadrar con el total de los ítems.\n","properties":{"tipo":{"type":"string","description":"`CONTADO` o `CREDITO`. Coincide con el `condicionOperacion` del documento","enum":["CONTADO","CREDITO"],"example":"CONTADO"},"tipoPago":{"type":"string","description":"Medio de pago","enum":["EFECTIVO","CHEQUE","TARJETA_DE_CREDITO","TARJETA_DE_DEBITO","TRANSFERENCIA","GIRO","BILLETERA_ELECTRONICA","TARJETA_EMPRESARIAL","VALE","RETENCION","PAGO_POR_ANTICIPO","VALOR_FISCAL","VALOR_COMERCIAL","COMPENSACION","PERMUTA","PAGO_BANCARIO","PAGO_MOVIL","DONACION","PROMOCION","CONSUMO_INTERNO","PAGO_ELECTRONICO","OTRO"],"example":"EFECTIVO"},"descripcionTipoPago":{"type":"string","description":"Descripción propia del medio (E607). Obligatoria y exclusiva de `tipoPago = OTRO`","maxLength":30,"minLength":4,"pattern":"(?s).*\\S.*"},"monedaPago":{"type":"string","description":"Moneda del pago","enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZM","BAM","BBD","BYN","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYR","BZD","CAD","CDF","CHF","CHE","CHW","CLP","CLF","CNY","COP","COU","CRC","CUP","CUC","CVE","CYP","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GHC","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTL","LVL","LYD","MAD","MZN","MDL","MGF","MKD","MGA","MMK","MNT","MOP","MRO","MTL","MUR","XUA","MVR","MRU","MWK","MXN","MXV","MYR","MZM","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","ROL","RUB","RWF","SAR","RSD","SBD","SCR","SDD","SDG","SRD","SEK","SGD","SHP","SIT","SKK","SLL","SOS","SRG","SSP","STD","SVC","SYP","SZL","THB","TJS","TMM","TND","TRY","TMT","TOP","TRL","TTD","TWD","TZS","UAH","UGX","USD","USN","UYU","UYI","UYW","UZS","VEB","VND","VUV","VES","WST","STN","XAF","XAG","XAU","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XBA","XBB","XBC","XTS","XXX","YER","YUM","ZMW","ZWL","ZAR","ZMK","ZWD"],"example":"PYG"},"montoPago":{"type":"number","description":"Monto pagado en `monedaPago`. Obligatorio para `tipo = CONTADO`","example":110000,"exclusiveMinimum":0},"tipoCambio":{"type":"number","description":"Tipo de cambio de la moneda del pago (E611)","example":7135.1256,"exclusiveMaximum":99999.9999,"exclusiveMinimum":0},"tipoTarjeta":{"type":"string","description":"Denominación de la tarjeta (E621). Se asume `OTRO` si no se informa","enum":["VISA","MASTERCARD","AMERICAN_EXPRESS","MAESTRO","PANAL","CABAL","OTRO"],"example":"VISA"},"descripcionTipoTarjeta":{"type":"string","description":"Descripción propia de la tarjeta (E622). Obligatoria y exclusiva de `tipoTarjeta = OTRO`","maxLength":20,"minLength":4,"pattern":"(?s).*\\S.*"},"formaProcesamientoPago":{"type":"string","description":"Forma de procesamiento del pago con tarjeta (E626). Se asume `OTRO` si no se informa","enum":["POS","PAGO_ELECTRONICO","OTRO"],"example":"POS"},"numeroCheque":{"type":"string","description":"Número del cheque (E631). Obligatorio para `tipoPago = CHEQUE`","example":"0001234","pattern":"[0-9]{1,8}"},"bancoCheque":{"type":"string","description":"Banco emisor del cheque (E632). Obligatorio para `tipoPago = CHEQUE`","example":"Banco Continental","maxLength":20,"minLength":4,"pattern":"(?s).*\\S.*"},"condicionCredito":{"type":"string","description":"Modalidad del crédito (E641). `PLAZO` o `CUOTA`","enum":["PLAZO","CUOTA"],"example":"PLAZO"},"plazoCredito":{"type":"string","description":"Plazo del crédito. Para `tipo = CREDITO`","example":"30 días"},"plazoEstructurado":{"$ref":"#/components/schemas/PlazoEstructuradoDTO","description":"Alternativa al plazo libre: cantidad de 1 a 9999 y unidad DIAS o MESES"},"cuotas":{"type":"integer","format":"int32","description":"Cantidad de cuotas (E644), entre 1 y 999. En runtime debe coincidir con la cantidad\nde elementos de `detalleCuotas`; JSON Schema no puede validar esa igualdad.\n","example":3},"detalleCuotas":{"type":"array","description":"Detalle de las cuotas (E650). Para `condicionCredito = CUOTA`","items":{"$ref":"#/components/schemas/CuotaCreditoDTO"}},"montoEntregaInicial":{"type":"number","description":"Entrega inicial del crédito (E645). Cero equivale a ausencia. En runtime debe ser menor que el\ntotal de la operación y expresarse en `monedaOperacion`; JSON Schema no valida ese cálculo.\n","example":50000}}},"ConstanciaAutofacturaDTO":{"type":"object","additionalProperties":false,"allOf":[{"properties":{"tipo":{"const":"CONSTANCIA_NO_CONTRIBUYENTE"}}}],"description":"Constancia electrónica asociada a la autofactura (grupo H)","properties":{"tipo":{"type":"string","description":"Tipo de constancia (H014)","enum":["CONSTANCIA_NO_CONTRIBUYENTE","CONSTANCIA_MICROPRODUCTORES"],"example":"CONSTANCIA_NO_CONTRIBUYENTE"}},"required":["tipo"]},"CreditoFacturaDTO":{"type":"object","description":"Condiciones del crédito (E640). Los medios de la entrega inicial van en `pagos`; el saldo\nfinanciado es el total menos esa entrega.\n","properties":{"condicionCredito":{"type":"string","description":"`PLAZO` o `CUOTA` (E641)","enum":["PLAZO","CUOTA"],"example":"CUOTA"},"plazoCredito":{"type":"string","description":"PLAZO: texto libre de 2 a 15 caracteres (E643)","example":"30 días"},"plazoEstructurado":{"$ref":"#/components/schemas/PlazoEstructuradoDTO","description":"PLAZO: alternativa estructurada a `plazoCredito`"},"cuotas":{"type":"integer","format":"int32","description":"CUOTA: cantidad de 1 a 999 (E644); coincide con `detalleCuotas`","example":3},"detalleCuotas":{"type":"array","description":"CUOTA: calendario completo (E650). La suma cubre el saldo financiado","items":{"$ref":"#/components/schemas/CuotaCreditoDTO"},"maxItems":999,"minItems":0},"montoEntregaInicial":{"type":"number","description":"Opcional; si se informa coincide con la suma de `pagos` (E645)","example":20000,"exclusiveMinimum":0}},"required":["condicionCredito"]},"CuotaCreditoDTO":{"type":"object","description":"Detalle de una cuota del crédito (E650)","properties":{"monto":{"type":"number","description":"Monto de la cuota (E651)","example":40000,"exclusiveMaximum":1000000000000000,"exclusiveMinimum":0,"multipleOf":0.0001},"fechaVencimiento":{"type":"string","format":"date","description":"Fecha de vencimiento opcional (E652)","example":"2026-09-18"},"moneda":{"type":"string","description":"Moneda de la cuota (E653). Si se omite, `monedaOperacion`","enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZM","BAM","BBD","BYN","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYR","BZD","CAD","CDF","CHF","CHE","CHW","CLP","CLF","CNY","COP","COU","CRC","CUP","CUC","CVE","CYP","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GHC","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTL","LVL","LYD","MAD","MZN","MDL","MGF","MKD","MGA","MMK","MNT","MOP","MRO","MTL","MUR","XUA","MVR","MRU","MWK","MXN","MXV","MYR","MZM","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","ROL","RUB","RWF","SAR","RSD","SBD","SCR","SDD","SDG","SRD","SEK","SGD","SHP","SIT","SKK","SLL","SOS","SRG","SSP","STD","SVC","SYP","SZL","THB","TJS","TMM","TND","TRY","TMT","TOP","TRL","TTD","TWD","TZS","UAH","UGX","USD","USN","UYU","UYI","UYW","UZS","VEB","VND","VUV","VES","WST","STN","XAF","XAG","XAU","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XBA","XBB","XBC","XTS","XXX","YER","YUM","ZMW","ZWL","ZAR","ZMK","ZWD"],"example":"PYG"}},"required":["monto"]},"DatosComercialesDTO":{"type":"object","description":"Referencias comerciales (G002-G004) y datos adicionales de uso comercial (E821-E826)","properties":{"ordenCompra":{"type":"string","description":"Número de orden de compra (G002)","example":"OC-2026-001","maxLength":15,"minLength":1,"pattern":"(?s).*\\S.*"},"ordenVenta":{"type":"string","description":"Número de orden de venta (G003)","maxLength":15,"minLength":1,"pattern":"(?s).*\\S.*"},"asientoContable":{"type":"string","description":"Número de asiento contable (G004)","maxLength":10,"minLength":1,"pattern":"(?s).*\\S.*"},"ciclo":{"type":"string","description":"Ciclo facturado (E821). Exige fechas de inicio y fin","example":"Octubre 2026","maxLength":15,"minLength":1,"pattern":"(?s).*\\S.*"},"fechaInicioCiclo":{"type":"string","format":"date","description":"Inicio del ciclo (E822). Obligatorio y exclusivo con `ciclo`"},"fechaFinCiclo":{"type":"string","format":"date","description":"Fin del ciclo (E823), no anterior al inicio"},"vencimientosPago":{"type":"array","description":"Fechas de vencimiento para el pago (E824), hasta 3 y no anteriores a la emisión","items":{"type":"string","format":"date"},"maxItems":3,"minItems":0},"numeroContrato":{"type":"string","description":"Número de contrato (E825)","maxLength":30,"minLength":1,"pattern":"(?s).*\\S.*"},"saldoAnterior":{"type":"number","description":"Saldo anterior (E826). Informativo: no se suma al total de la factura","minimum":0}}},"DocumentoAsociadoDTO":{"type":"object","description":"Documento que origina el ajuste. Hoy sólo se admite `tipoDocumento = ELECTRONICO`, es decir\nreferenciar otro documento por su CDC: cualquier otro valor devuelve `400 validation-error`.\nLos campos de documento impreso están reservados para cuando se habilite ese caso.\n","properties":{"tipoDocumento":{"type":"string","description":"Único valor admitido hoy: `ELECTRONICO`","enum":["ELECTRONICO","IMPRESO","CONSTANCIA_ELECTRONICA"],"example":"ELECTRONICO"},"cdc":{"type":"string","description":"CDC del documento referenciado, 44 dígitos","example":"01800123451001001000000122026042710000000006","pattern":"\\d{44}"},"numeroTimbrado":{"type":"string"},"establecimiento":{"type":"string"},"puntoExpedicion":{"type":"string"},"numeroDocumento":{"type":"string"},"tipoDocumentoImpreso":{"type":"string","enum":["FACTURA","NOTA_DE_CREDITO","NOTA_DE_DEBITO","NOTA_DE_REMISION","COMPROBANTE_DE_RETENCION"]},"fechaEmision":{"type":"string"},"rucFusionado":{"type":"string","description":"RUC fusionado del emisor del documento asociado, sin DV ni guion (H018)","example":"80012345","maxLength":8,"minLength":3,"pattern":"[1-9][0-9]*[0-9A-D]?"}},"required":["cdc","tipoDocumento"]},"DocumentoAsociadoRemisionDTO":{"type":"object","properties":{"tipoDocumento":{"type":"string","enum":["ELECTRONICO","IMPRESO","CONSTANCIA_ELECTRONICA"]},"cdc":{"type":"string","pattern":"[0-9]{44}"},"numeroTimbrado":{"type":"string","pattern":"[0-9]{8}"},"establecimiento":{"type":"string","pattern":"[0-9]{3}"},"puntoExpedicion":{"type":"string","pattern":"[0-9]{3}"},"numeroDocumento":{"type":"string","pattern":"[0-9]{7}"},"tipoDocumentoImpreso":{"type":"string","enum":["FACTURA","NOTA_DE_CREDITO","NOTA_DE_DEBITO","NOTA_DE_REMISION","COMPROBANTE_DE_RETENCION"]},"fechaEmision":{"type":"string","format":"date"},"rucFusionado":{"type":"string","pattern":"[0-9]{3,8}"}},"required":["tipoDocumento"]},"DocumentoElectronicoRequest":{"type":"object","description":"Campos comunes a todo documento electrónico. `tipoDocumento` decide el schema\ncompleto del request: cada valor agrega los campos propios de ese tipo, que están\nen el schema correspondiente (`FacturaElectronicaRequest`,\n`NotaCreditoElectronicaRequest`, …).\n\nEl emisor no se envía: sale de la API key. El timbrado lo toma Sifende del ambiente\ny el correlativo también, salvo que el sistema del integrador numere por su cuenta\ncon `numeroDocumento`.\n","discriminator":{"propertyName":"tipoDocumento","mapping":{"FACTURA_ELECTRONICA":"#/components/schemas/FacturaElectronicaRequest","NOTA_DE_CREDITO_ELECTRONICA":"#/components/schemas/NotaCreditoElectronicaRequest","NOTA_DE_DEBITO_ELECTRONICA":"#/components/schemas/NotaDebitoElectronicaRequest","NOTA_DE_REMISION_ELECTRONICA":"#/components/schemas/NotaRemisionElectronicaRequest","AUTOFACTURA_ELECTRONICA":"#/components/schemas/AutofacturaElectronicaRequest"}},"properties":{"tipoDocumento":{"type":"string","description":"Tipo de documento a emitir. Determina qué campos adicionales acepta el request","enum":["FACTURA_ELECTRONICA","NOTA_DE_CREDITO_ELECTRONICA","NOTA_DE_DEBITO_ELECTRONICA","NOTA_DE_REMISION_ELECTRONICA","AUTOFACTURA_ELECTRONICA"],"example":"FACTURA_ELECTRONICA"},"fechaEmision":{"type":"string","description":"Fecha y hora de emisión en hora local de Paraguay, sin zona ni offset. Si se omite, se usa la fecha y hora del servidor al recibir el request","example":"2026-04-15T10:30:00","pattern":"\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}"},"tipoEmision":{"type":"string","default":"NORMAL","description":"Sólo se admite `NORMAL`: SIFEN todavía no habilita la emisión en contingencia","enum":["NORMAL"],"example":"NORMAL"},"numeroEstablecimiento":{"type":"integer","format":"int32","description":"Establecimiento habilitado del emisor (1-999)","example":1},"puntoExpedicion":{"type":"integer","format":"int32","description":"Punto de expedición dentro del establecimiento (1-999)","example":1},"numeroDocumento":{"type":"integer","format":"int64","description":"Número de documento (dNumDoc) asignado por tu sistema, de 1 a 9.999.999. Si se omite, Sifende asigna el siguiente correlativo del punto de expedición","example":1234,"maximum":9999999,"minimum":1},"codigoSeguridad":{"type":"string","description":"Código de seguridad (dCodSeg) de 9 dígitos. Con el mismo número y la misma fecha de emisión produce siempre el mismo CDC. Si se omite, Sifende genera uno al azar","example":"123456789","pattern":"(?!0{9})\\d{9}"},"numeroTimbrado":{"type":"integer","format":"int32","description":"Timbrado con el que tu sistema numera. Si se informa y no coincide con el timbrado cargado en Sifende para el ambiente, el documento se rechaza con `timbrado-mismatch`","example":12345678},"tipoTransaccion":{"type":"string","description":"Naturaleza de la operación. Obligatorio para factura y autofactura; no se informa en notas de crédito, débito ni remisión","enum":["VENTA_MERCADERIA","PRESTACION_SERVICIOS","MIXTO","VENTA_ACTIVO_FIJO","VENTA_DIVISAS","COMPRA_DIVISAS","PROMOCION_O_MUESTRAS","DONACION","ANTICIPO","COMPRA_PRODUCTOS","COMPRA_SERVICIOS","VENTA_CREDITO_FISCAL","MUESTRAS_MEDICAS"],"example":"VENTA_MERCADERIA"},"descuentoGlobalPorcentaje":{"type":"number","description":"Porcentaje de descuento global aplicado a cada ítem de la operación (F010)","example":10,"exclusiveMinimum":0,"maximum":100},"monedaOperacion":{"type":"string","default":"PYG","description":"Moneda de la operación","enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZM","BAM","BBD","BYN","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYR","BZD","CAD","CDF","CHF","CHE","CHW","CLP","CLF","CNY","COP","COU","CRC","CUP","CUC","CVE","CYP","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GHC","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTL","LVL","LYD","MAD","MZN","MDL","MGF","MKD","MGA","MMK","MNT","MOP","MRO","MTL","MUR","XUA","MVR","MRU","MWK","MXN","MXV","MYR","MZM","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","ROL","RUB","RWF","SAR","RSD","SBD","SCR","SDD","SDG","SRD","SEK","SGD","SHP","SIT","SKK","SLL","SOS","SRG","SSP","STD","SVC","SYP","SZL","THB","TJS","TMM","TND","TRY","TMT","TOP","TRL","TTD","TWD","TZS","UAH","UGX","USD","USN","UYU","UYI","UYW","UZS","VEB","VND","VUV","VES","WST","STN","XAF","XAG","XAU","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XBA","XBB","XBC","XTS","XXX","YER","YUM","ZMW","ZWL","ZAR","ZMK","ZWD"],"example":"PYG"},"tipoCambio":{"type":"number","description":"Tipo de cambio global de la operación (D018)","example":7135.1256,"exclusiveMaximum":99999.9999,"exclusiveMinimum":0},"obligacionesAfectadas":{"type":"array","description":"Códigos de obligaciones tributarias afectadas (D030)","example":["211","700"],"items":{"type":"string"},"maxItems":11,"minItems":0},"infoEmisor":{"type":"string","description":"Texto libre adicional del emisor (B005), de 1 a 3000 caracteres en una sola línea","example":"Pedido #4821","maxLength":3000,"minLength":1},"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemDocumento"}}},"required":["numeroEstablecimiento","puntoExpedicion","tipoDocumento","tipoEmision"]},"DomicilioAutofacturaDTO":{"type":"object","additionalProperties":false,"description":"Dirección y códigos geográficos del vendedor o del lugar de la operación","properties":{"direccion":{"type":"string","description":"Dirección del vendedor o lugar de la transacción (E308/E316)","example":"Av. España","maxLength":255,"minLength":0},"departamento":{"type":"string","description":"Código de departamento del catálogo SIFEN (E310/E317)","example":"1","minLength":1,"pattern":"[0-9]{1,2}"},"codigoDistrito":{"type":"integer","format":"int32","description":"Código de distrito opcional del catálogo SIFEN (E312/E319)","example":1,"maximum":9999,"minimum":1},"ciudad":{"type":"string","description":"Código de ciudad del catálogo SIFEN (E314/E321)","example":"1","minLength":1,"pattern":"[0-9]{1,5}"}},"required":["ciudad","departamento","direccion"]},"EnergiaElectricaDTO":{"type":"object","description":"Medición del sector de energía eléctrica (E791). Hasta 9 por factura (NT023)","properties":{"numeroMedidor":{"type":"string","description":"Número de medidor (E792)","maxLength":50,"minLength":1},"codigoActividad":{"type":"integer","format":"int32","description":"Código de actividad (E793)","maximum":99,"minimum":0},"codigoCategoria":{"type":"string","description":"Código de categoría (E794)","maxLength":3,"minLength":1},"lecturaAnterior":{"type":"number","description":"Lectura anterior (E795)","minimum":0},"lecturaActual":{"type":"number","description":"Lectura actual (E796)","minimum":0},"consumo":{"type":"number","description":"Consumo (E797). Con ambas lecturas Sifende lo deriva como actual − anterior","minimum":0}}},"FacturaElectronicaRequest":{"allOf":[{"$ref":"#/components/schemas/DocumentoElectronicoRequest"},{"type":"object","properties":{"receptor":{"$ref":"#/components/schemas/ReceptorDTO"},"items":{"type":"array","description":"Ítems del documento. Al menos uno","items":{"$ref":"#/components/schemas/ItemDTO"},"minItems":1},"comision":{"type":"number","description":"Comisión de la operación (F025), IVA 10% incluido. Se suma al total general y su IVA al total de IVA","example":55000,"exclusiveMinimum":0},"tipoImpuesto":{"type":"string","description":"Tipo de impuesto afectado (D013). Si se omite, `IVA`; ISC no está habilitado","enum":["IVA","ISC","RENTA","NINGUNO","IVA_RENTA"],"example":"IVA"},"indicadorPresencia":{"type":"string","description":"Indicador de presencia (E011). Si se omite, `OPERACION_PRESENCIAL`","enum":["OPERACION_PRESENCIAL","OPERACION_ELECTRONICA","OPERACION_TELEMARKETING","VENTA_A_DOMICILIO","OPERACION_BANCARIA","OPERACION_CICLICA","OTRO"],"example":"OPERACION_ELECTRONICA"},"descripcionPresencia":{"type":"string","description":"Descripción propia de la presencia (E012). Obligatoria y exclusiva de `indicadorPresencia = OTRO`","example":"Venta en feria itinerante","maxLength":30,"minLength":10,"pattern":"(?s).*\\S.*"},"fechaFuturaRemision":{"type":"string","format":"date","description":"Fecha estimada del traslado de la mercadería, cuando se documentará con una nota de remisión electrónica (E013)","example":"2026-04-20"},"condicionOperacion":{"type":"string","description":"`CONTADO` o `CREDITO`","enum":["CONTADO","CREDITO"],"example":"CONTADO"},"condicionPago":{"$ref":"#/components/schemas/CondicionPagoDTO","description":"Forma anterior de un único medio de pago y del crédito. Excluyente con `pagos`/`credito`"},"pagos":{"type":"array","description":"Medios de pago, en orden. En `CONTADO` (1 a 999) cubren el total de la operación; en `CREDITO`\ndescriben la entrega inicial (0 a 999). Excluyente con `condicionPago`\n","items":{"$ref":"#/components/schemas/PagoFacturaDTO"},"maxItems":999,"minItems":0},"credito":{"$ref":"#/components/schemas/CreditoFacturaDTO","description":"Condiciones del crédito. Obligatorio en `CREDITO` con `pagos`; ausente en `CONTADO`"},"documentoAsociado":{"$ref":"#/components/schemas/DocumentoAsociadoDTO","deprecated":true,"description":"No se admite en la factura electrónica: usar `documentosAsociados`, también para una sola referencia"},"documentosAsociados":{"type":"array","description":"Notas de remisión y facturas de anticipo referenciadas (H001), en orden. Hasta 99","items":{"$ref":"#/components/schemas/AsociacionFacturaDTO"},"maxItems":99,"minItems":0},"informacionFiscal":{"type":"string","description":"Información de interés del Fisco respecto al DE (B006), de 1 a 3000 caracteres en una sola línea. Se imprime en el KuDE","maxLength":3000,"minLength":1},"condicionAnticipo":{"type":"string","description":"Condición del anticipo aplicado (D019). Obligatoria cuando la factura aplica anticipos","enum":["ANTICIPO_GLOBAL","ANTICIPO_POR_ITEM"],"example":"ANTICIPO_GLOBAL"},"anticipoGlobalPorcentaje":{"type":"number","description":"Anticipo global como porcentaje del precio unitario de cada ítem; Sifende deriva EA007","example":30,"exclusiveMinimum":0,"maximum":100},"datosComerciales":{"$ref":"#/components/schemas/DatosComercialesDTO","description":"Órdenes, asiento y datos adicionales de uso comercial"},"informacionAdicional":{"type":"string","description":"Información adicional de interés del emisor para el receptor (J003). Se imprime en el KuDE y no se envía a SIFEN","maxLength":5000,"minLength":1,"pattern":"(?s).*\\S.*"},"energia":{"type":"array","description":"Sector de energía eléctrica (E791), hasta 9 mediciones","items":{"$ref":"#/components/schemas/EnergiaElectricaDTO"},"maxItems":9,"minItems":0},"seguro":{"$ref":"#/components/schemas/SeguroDTO","description":"Sector de seguros (E800)"},"supermercado":{"$ref":"#/components/schemas/SupermercadoDTO","description":"Sector de supermercados (E810)"},"transporte":{"$ref":"#/components/schemas/TransporteFacturaDTO","description":"Transporte de la mercadería (E900), opcional en la factura"},"carga":{"$ref":"#/components/schemas/CargaRemisionDTO","description":"Datos generales de la carga (G050)"},"comprasPublicas":{"$ref":"#/components/schemas/ComprasPublicasDTO","description":"Contratación pública opcional (E020), en cualquier operación"},"codigoContratacionDncp":{"type":"string","description":"Código de contratación de compras públicas (E827), opcional en cualquier operación","example":"DNCP-2026-001","maxLength":30,"minLength":1,"pattern":".*\\S.*"}}},{"if":{"properties":{"receptor":{"properties":{"tipoOperacion":{"const":"B2F"}},"required":["tipoOperacion"]}},"required":["receptor"]},"then":{"properties":{"tipoTransaccion":{"const":"PRESTACION_SERVICIOS"}},"required":["tipoTransaccion"]}},{"if":{"properties":{"condicionOperacion":{"const":"CONTADO"}},"required":["condicionOperacion"]},"then":{"oneOf":[{"not":{"anyOf":[{"required":["pagos"]},{"required":["credito"]}]},"properties":{"condicionPago":{"not":{"anyOf":[{"required":["plazoCredito"]},{"required":["plazoEstructurado"]}]},"properties":{"tipo":{"const":"CONTADO"}},"required":["monedaPago","montoPago","tipo","tipoPago"]}},"required":["condicionPago"]},{"not":{"anyOf":[{"required":["condicionPago"]},{"required":["credito"]}]},"properties":{"pagos":{"type":"array","minItems":1}},"required":["pagos"]}]}},{"if":{"properties":{"condicionOperacion":{"const":"CREDITO"}},"required":["condicionOperacion"]},"then":{"oneOf":[{"not":{"anyOf":[{"required":["pagos"]},{"required":["credito"]}]},"properties":{"condicionPago":{"allOf":[{"allOf":[{"if":{"properties":{"montoEntregaInicial":{"type":"number","exclusiveMinimum":0}},"required":["montoEntregaInicial"]},"then":{"allOf":[{"if":{"properties":{"tipoPago":{"const":"CHEQUE"}},"required":["tipoPago"]},"then":{"required":["bancoCheque","numeroCheque"]}}],"required":["monedaPago","tipoPago"]}}],"properties":{"montoEntregaInicial":{"type":"number","exclusiveMaximum":1000000000000000,"minimum":0,"multipleOf":0.0001}}}],"oneOf":[{"not":{"anyOf":[{"required":["cuotas"]},{"required":["detalleCuotas"]}]},"oneOf":[{"required":["plazoCredito"]},{"required":["plazoEstructurado"]}],"properties":{"condicionCredito":{"const":"PLAZO"},"plazoCredito":{"type":"string","maxLength":15,"minLength":2},"tipo":{"const":"CREDITO"}},"required":["condicionCredito","tipo"]},{"not":{"anyOf":[{"required":["plazoCredito"]},{"required":["plazoEstructurado"]}]},"properties":{"condicionCredito":{"const":"CUOTA"},"cuotas":{"type":"integer","maximum":999,"minimum":1},"detalleCuotas":{"type":"array","items":{"$ref":"#/components/schemas/CuotaCreditoDTO"},"maxItems":999,"minItems":1},"tipo":{"const":"CREDITO"}},"required":["condicionCredito","cuotas","detalleCuotas","tipo"]}]}},"required":["condicionPago"]},{"not":{"required":["condicionPago"]},"properties":{"credito":{"oneOf":[{"not":{"anyOf":[{"required":["cuotas"]},{"required":["detalleCuotas"]}]},"oneOf":[{"required":["plazoCredito"]},{"required":["plazoEstructurado"]}],"properties":{"condicionCredito":{"const":"PLAZO"},"plazoCredito":{"type":"string","maxLength":15,"minLength":2}},"required":["condicionCredito"]},{"not":{"anyOf":[{"required":["plazoCredito"]},{"required":["plazoEstructurado"]}]},"properties":{"condicionCredito":{"const":"CUOTA"},"cuotas":{"type":"integer","maximum":999,"minimum":1},"detalleCuotas":{"type":"array","items":{"$ref":"#/components/schemas/CuotaCreditoDTO"},"maxItems":999,"minItems":1}},"required":["condicionCredito","cuotas","detalleCuotas"]}]}},"required":["credito"]}]}},{"allOf":[{"if":{"properties":{"monedaOperacion":{"const":"PYG"}}},"then":{"not":{"required":["tipoCambio"]},"properties":{"items":{"type":"array","items":{"not":{"required":["tipoCambio"]}}}}}},{"if":{"properties":{"monedaOperacion":{"not":{"const":"PYG"}}},"required":["monedaOperacion"]},"then":{"oneOf":[{"properties":{"items":{"type":"array","items":{"not":{"required":["tipoCambio"]}}}},"required":["tipoCambio"]},{"not":{"required":["tipoCambio"]},"properties":{"items":{"type":"array","items":{"required":["tipoCambio"]}}}}]}}]},{"properties":{"tipoDocumento":{"const":"FACTURA_ELECTRONICA"}}}],"description":"Factura electrónica — `tipoDocumento = FACTURA_ELECTRONICA`.","required":["condicionOperacion","items","numeroEstablecimiento","puntoExpedicion","receptor","tipoDocumento","tipoEmision"]},"ItemAutofacturaDTO":{"type":"object","additionalProperties":false,"properties":{"codigo":{"type":"string","description":"Código interno del producto o servicio en tu sistema (E701)","example":"PROD-001","maxLength":50,"minLength":0},"descripcion":{"type":"string","description":"Descripción del producto o servicio (E708)","example":"Resma de papel A4 75g","maxLength":2000,"minLength":0},"cantidad":{"type":"number","description":"Cantidad, hasta 10 enteros y 8 decimales (E711)","example":10.12345678,"maximum":10000000000,"minimum":1e-8},"unidadMedida":{"type":"string","description":"Unidad de medida del catálogo SIFEN (E714)","enum":["kWh","AA","BG","_4A","AB","BX","CM","CM2","CM3","BK","CPM","Ci","DET","Di","DOC","DPC","BL","GLL","g","GRO","ha","Hs","SET","E4","kg","kg_m2","Km","KT","LT","U_JGO","ME","ml","m","MT","M2","M3","M5","MCU","MG","ML","MIL","MM","MM2","Mi","PK","PAR","BW","FOT","FTK","PCE","pm","JR","PUL","KLT","racion","RM","RO","Se","DR","TN","UNI","UI","GL","Ya"],"example":"UNI"},"precioUnitario":{"type":"number","description":"Precio unitario de la autofactura (E721)","example":11000,"exclusiveMinimum":0}},"required":["cantidad","codigo","descripcion","precioUnitario","unidadMedida"]},"ItemDTO":{"type":"object","description":"Ítem del documento. Sifende calcula los totales y el IVA a partir de estos campos: no se\nenvía ni el subtotal del ítem ni el total del documento.\n","properties":{"codigo":{"type":"string","description":"Código interno del producto o servicio en tu sistema (E701)","example":"PROD-001","maxLength":50,"minLength":0},"descripcion":{"type":"string","description":"Descripción del producto o servicio (E708)","example":"Resma de papel A4 75g","maxLength":2000,"minLength":0},"cantidad":{"type":"number","description":"Cantidad, hasta 10 enteros y 8 decimales (E711)","example":10.12345678,"maximum":10000000000,"minimum":1e-8},"unidadMedida":{"type":"string","description":"Unidad de medida del catálogo SIFEN (E709)","enum":["kWh","AA","BG","_4A","AB","BX","CM","CM2","CM3","BK","CPM","Ci","DET","Di","DOC","DPC","BL","GLL","g","GRO","ha","Hs","SET","E4","kg","kg_m2","Km","KT","LT","U_JGO","ME","ml","m","MT","M2","M3","M5","MCU","MG","ML","MIL","MM","MM2","Mi","PK","PAR","BW","FOT","FTK","PCE","pm","JR","PUL","KLT","racion","RM","RO","Se","DR","TN","UNI","UI","GL","Ya"],"example":"UNI"},"precioUnitario":{"type":"number","description":"Precio unitario sin descuentos, IVA incluido (E721)","example":11000,"minimum":0},"tipoCambio":{"type":"number","description":"Tipo de cambio del ítem (E725)","example":7135.1256,"exclusiveMaximum":99999.9999,"exclusiveMinimum":0},"afectacionTributaria":{"type":"string","description":"Afectación del ítem al IVA (E731)","enum":["GRAVADO","EXONERADO","EXENTO","GRAVADO_PARCIAL"],"example":"GRAVADO"},"tasaIVA":{"type":"integer","format":"int32","description":"Tasa de IVA en porcentaje: 10, 5 o 0 (E734). Con `afectacionTributaria = GRAVADO` es 10 o 5","example":10},"propIVA":{"type":"number","description":"Proporción gravada en porcentaje (E733). Sólo se informa para `afectacionTributaria = GRAVADO_PARCIAL`; en el resto la deriva Sifende","example":50,"maximum":100,"minimum":0},"porcentajeExento":{"type":"number","description":"Alternativa a `propIVA` con `afectacionTributaria = GRAVADO_PARCIAL`: porcentaje del total del ítem, IVA incluido, que se informa como exento (E737). Sifende deriva `propIVA`","example":85,"exclusiveMaximum":100,"exclusiveMinimum":0},"descuentoParticular":{"type":"number","description":"Descuento en importe sobre el precio unitario del ítem (EA002)","example":500,"minimum":0},"descuentoParticularPorcentaje":{"type":"number","description":"Alternativa a `descuentoParticular`: porcentaje sobre el precio unitario. Sifende deriva el importe (EA002) con la precisión de la moneda","example":12.5,"exclusiveMinimum":0,"maximum":100},"anticipoParticular":{"type":"number","description":"Sólo factura: anticipo facturado aplicado sobre el precio unitario del ítem (EA006), en la moneda de la factura de anticipo","example":1000,"exclusiveMinimum":0},"cdcAnticipo":{"type":"string","description":"Sólo factura: CDC de la factura de anticipo que se aplica en el ítem (E719). Debe figurar en `documentosAsociados`","pattern":"[0-9]{44}"},"paisOrigen":{"type":"string","description":"País de origen del producto (E712); su descripción se deriva","enum":["DZA","EGY","LBY","MAR","SDN","TUN","ESH","IOT","BDI","COM","DJI","ERI","ETH","ATF","KEN","MDG","MWI","MUS","MYT","MOZ","REU","RWA","SYC","SOM","SSD","UGA","TZA","ZMB","ZWE","AGO","CMR","CAF","TCD","COG","COD","GNQ","GAB","STP","BWA","LSO","NAM","ZAF","SWZ","BEN","BFA","CPV","CIV","GMB","GHA","GIN","GNB","LBR","MLI","MRT","NER","NGA","SHN","SEN","SLE","TGO","AIA","ATG","ABW","BHS","BRB","BES","VGB","CYM","CUB","CUW","DMA","DOM","GRD","GLP","HTI","JAM","MTQ","MSR","PRI","BLM","KNA","LCA","MAF","VCT","SXM","TTO","TCA","VIR","BLZ","CRI","SLV","GTM","HND","MEX","NIC","PAN","ARG","BOL","BRA","CHL","COL","ECU","FLK","GUF","GUY","PRY","PER","SGS","SUR","URY","VEN","BMU","CAN","GRL","SPM","USA","ATA","KAZ","KGZ","TJK","TKM","UZB","CHN","HKG","MAC","TWN","PRK","JPN","MNG","KOR","BRN","KHM","IDN","LAO","MYS","MMR","PHL","SGP","THA","TLS","VNM","AFG","BGD","BTN","IND","IRN","MDV","NPL","PAK","LKA","ARM","AZE","BHR","CYP","GEO","IRQ","ISR","JOR","KWT","LBN","OMN","QAT","SAU","PSE","SYR","TUR","ARE","YEM","BLR","BGR","CZE","HUN","POL","MDA","ROU","RUS","SVK","UKR","ALA","GGY","JEY","DNK","EST","FRO","FIN","ISL","IRL","IMN","LVA","LTU","NOR","SJM","SWE","GBR","ALB","AND","BIH","HRV","GIB","GRC","VAT","ITA","MLT","MNE","PRT","SMR","SRB","SVN","ESP","MKD","AUT","BEL","FRA","DEU","LIE","LUX","MCO","NLD","CHE","AUS","CXR","CCK","HMD","NZL","NFK","FJI","NCL","PNG","SLB","VUT","GUM","KIR","MHL","FSM","NRU","MNP","PLW","UMI","ASM","COK","PYF","NIU","PCN","WSM","TKL","TON","TUV","WLF","NN"],"example":"BRA"},"codigoDncpGeneral":{"type":"string","description":"Código DNCP general (E704), string de exactamente 8 dígitos, opcional en cualquier operación","example":"00123456","maxLength":8,"minLength":8,"pattern":"\\d{8}"},"codigoDncpEspecifico":{"type":"string","description":"Código DNCP específico (E705), string de 3 a 4 dígitos, opcional en cualquier operación","example":"0123","maxLength":4,"minLength":3,"pattern":"\\d{3,4}"},"partidaArancelaria":{"type":"string","description":"Partida arancelaria (E702), string de 4 dígitos","example":"8471","pattern":"(?=.*[1-9])[0-9]{4}"},"ncm":{"type":"string","description":"Nomenclatura común del Mercosur (E703), string de 6 a 8 dígitos","example":"84713012","pattern":"(?=.*[1-9])[0-9]{6,8}"},"gtin":{"type":"string","description":"GTIN del producto (E706), string","example":"07891234567895","pattern":"(?=.*[1-9])(?:[0-9]{8}|[0-9]{12,14})"},"gtinPaquete":{"type":"string","description":"GTIN del paquete (E707), string","pattern":"(?=.*[1-9])(?:[0-9]{8}|[0-9]{12,14})"},"observacion":{"type":"string","description":"Información de interés del emisor sobre el ítem (E714)","maxLength":500,"minLength":1},"lote":{"type":"string","description":"Número de lote (E751)","example":"L-2026-04","maxLength":80,"minLength":1},"vencimiento":{"type":"string","format":"date","description":"Fecha de vencimiento de la mercadería (E752)","example":"2027-12-31"},"numeroSerie":{"type":"string","description":"Número de serie (E753)","maxLength":10,"minLength":1},"numeroPedido":{"type":"string","description":"Número de pedido (E754)","maxLength":20,"minLength":1},"numeroSeguimiento":{"type":"string","description":"Número de seguimiento (E755)","maxLength":20,"minLength":1},"numeroRegistroProducto":{"type":"string","description":"Número de registro del producto ante la autoridad competente (E759, NT010)","maxLength":20,"minLength":1},"numeroRegistroEntidadComercial":{"type":"string","description":"Número de registro de la entidad comercial (E760, NT010)","maxLength":20,"minLength":1},"nombreProducto":{"type":"string","description":"Nombre del producto según el registro (E761, NT010)","maxLength":30,"minLength":1},"vehiculoNuevo":{"$ref":"#/components/schemas/VehiculoNuevoDTO","description":"Datos del vehículo nuevo vendido en el ítem (E770)"}},"required":["afectacionTributaria","cantidad","codigo","descripcion","precioUnitario","unidadMedida"]},"ItemDocumento":{"type":"object","properties":{"codigo":{"type":"string"},"descripcion":{"type":"string"},"unidadMedida":{"type":"string","enum":["kWh","AA","BG","_4A","AB","BX","CM","CM2","CM3","BK","CPM","Ci","DET","Di","DOC","DPC","BL","GLL","g","GRO","ha","Hs","SET","E4","kg","kg_m2","Km","KT","LT","U_JGO","ME","ml","m","MT","M2","M3","M5","MCU","MG","ML","MIL","MM","MM2","Mi","PK","PAR","BW","FOT","FTK","PCE","pm","JR","PUL","KLT","racion","RM","RO","Se","DR","TN","UNI","UI","GL","Ya"]},"cantidad":{"type":"number"}}},"ItemRemisionDTO":{"type":"object","additionalProperties":{"type":"null"},"properties":{"codigo":{"type":"string","maxLength":50,"minLength":0},"descripcion":{"type":"string","maxLength":2000,"minLength":0},"cantidad":{"type":"number","maximum":10000000000,"minimum":1e-8},"unidadMedida":{"type":"string","enum":["kWh","AA","BG","_4A","AB","BX","CM","CM2","CM3","BK","CPM","Ci","DET","Di","DOC","DPC","BL","GLL","g","GRO","ha","Hs","SET","E4","kg","kg_m2","Km","KT","LT","U_JGO","ME","ml","m","MT","M2","M3","M5","MCU","MG","ML","MIL","MM","MM2","Mi","PK","PAR","BW","FOT","FTK","PCE","pm","JR","PUL","KLT","racion","RM","RO","Se","DR","TN","UNI","UI","GL","Ya"]},"codigoDncpGeneral":{"type":"string","pattern":"\\d{8}"},"codigoDncpEspecifico":{"type":"string","pattern":"\\d{3,4}"},"partidaArancelaria":{"type":"string","pattern":"(?=.*[1-9])[0-9]{4}"},"ncm":{"type":"string","pattern":"(?=.*[1-9])[0-9]{6,8}"},"gtin":{"type":"string","pattern":"(?=.*[1-9])(?:[0-9]{8}|[0-9]{12,14})"},"gtinPaquete":{"type":"string","pattern":"(?=.*[1-9])(?:[0-9]{8}|[0-9]{12,14})"},"paisOrigen":{"type":"string","enum":["DZA","EGY","LBY","MAR","SDN","TUN","ESH","IOT","BDI","COM","DJI","ERI","ETH","ATF","KEN","MDG","MWI","MUS","MYT","MOZ","REU","RWA","SYC","SOM","SSD","UGA","TZA","ZMB","ZWE","AGO","CMR","CAF","TCD","COG","COD","GNQ","GAB","STP","BWA","LSO","NAM","ZAF","SWZ","BEN","BFA","CPV","CIV","GMB","GHA","GIN","GNB","LBR","MLI","MRT","NER","NGA","SHN","SEN","SLE","TGO","AIA","ATG","ABW","BHS","BRB","BES","VGB","CYM","CUB","CUW","DMA","DOM","GRD","GLP","HTI","JAM","MTQ","MSR","PRI","BLM","KNA","LCA","MAF","VCT","SXM","TTO","TCA","VIR","BLZ","CRI","SLV","GTM","HND","MEX","NIC","PAN","ARG","BOL","BRA","CHL","COL","ECU","FLK","GUF","GUY","PRY","PER","SGS","SUR","URY","VEN","BMU","CAN","GRL","SPM","USA","ATA","KAZ","KGZ","TJK","TKM","UZB","CHN","HKG","MAC","TWN","PRK","JPN","MNG","KOR","BRN","KHM","IDN","LAO","MYS","MMR","PHL","SGP","THA","TLS","VNM","AFG","BGD","BTN","IND","IRN","MDV","NPL","PAK","LKA","ARM","AZE","BHR","CYP","GEO","IRQ","ISR","JOR","KWT","LBN","OMN","QAT","SAU","PSE","SYR","TUR","ARE","YEM","BLR","BGR","CZE","HUN","POL","MDA","ROU","RUS","SVK","UKR","ALA","GGY","JEY","DNK","EST","FRO","FIN","ISL","IRL","IMN","LVA","LTU","NOR","SJM","SWE","GBR","ALB","AND","BIH","HRV","GIB","GRC","VAT","ITA","MLT","MNE","PRT","SMR","SRB","SVN","ESP","MKD","AUT","BEL","FRA","DEU","LIE","LUX","MCO","NLD","CHE","AUS","CXR","CCK","HMD","NZL","NFK","FJI","NCL","PNG","SLB","VUT","GUM","KIR","MHL","FSM","NRU","MNP","PLW","UMI","ASM","COK","PYF","NIU","PCN","WSM","TKL","TON","TUV","WLF","NN"]},"observacion":{"type":"string","maxLength":500,"minLength":1},"tolerancia":{"type":"string","enum":["TOLERANCIA_DE_QUIEBRA","TOLERANCIO_DE_MERMA"]},"toleranciaCantidad":{"type":"number","maximum":9999999999.9999,"minimum":0},"toleranciaPorcentaje":{"type":"number","maximum":100,"minimum":0},"lote":{"type":"string","maxLength":80,"minLength":1},"vencimiento":{"type":"string","format":"date"},"numeroSerie":{"type":"string","maxLength":10,"minLength":1},"numeroPedido":{"type":"string","maxLength":20,"minLength":1},"numeroSeguimiento":{"type":"string","maxLength":20,"minLength":1},"numeroRegistroProducto":{"type":"string","maxLength":20,"minLength":1},"numeroRegistroEntidadComercial":{"type":"string","maxLength":20,"minLength":1},"nombreProducto":{"type":"string","maxLength":30,"minLength":1}},"required":["cantidad","codigo","descripcion","unidadMedida"]},"LocalRemisionDTO":{"type":"object","properties":{"direccion":{"type":"string","maxLength":255,"minLength":0},"numeroCasa":{"type":"integer","format":"int32","maximum":999999,"minimum":0},"complementoDireccion1":{"type":"string","maxLength":255,"minLength":1,"pattern":"(?s).*\\S.*"},"complementoDireccion2":{"type":"string","maxLength":255,"minLength":1,"pattern":"(?s).*\\S.*"},"departamento":{"type":"string","minLength":1},"codigoDistrito":{"type":"integer","format":"int32"},"ciudad":{"type":"string","minLength":1},"telefono":{"type":"string","maxLength":15,"minLength":6,"pattern":"(?s).*\\S.*"}},"required":["ciudad","departamento","direccion","numeroCasa"]},"NotaCreditoElectronicaRequest":{"allOf":[{"$ref":"#/components/schemas/DocumentoElectronicoRequest"},{"type":"object","properties":{"receptor":{"$ref":"#/components/schemas/ReceptorDTO"},"items":{"type":"array","description":"Ítems del documento. Al menos uno","items":{"$ref":"#/components/schemas/ItemDTO"},"minItems":1},"comision":{"type":"number","description":"Comisión de la operación (F025), IVA 10% incluido. Se suma al total general y su IVA al total de IVA","example":55000,"exclusiveMinimum":0},"motivoEmision":{"type":"string","description":"Motivo del ajuste","enum":["DEVOLUCION_Y_AJUSTES_DE_PRECIOS","DEVOLUCION","DESCUENTO","BONIFICACION","CREDITO_INCOBRABLE","RECUPERO_DE_COSTO","RECUPERO_DE_GASTO","AJUSTE_DE_PRECIO"],"example":"DEVOLUCION"},"documentoAsociado":{"$ref":"#/components/schemas/DocumentoAsociadoDTO","description":"Documento que se está modificando"}}},{"allOf":[{"if":{"properties":{"monedaOperacion":{"const":"PYG"}}},"then":{"not":{"required":["tipoCambio"]},"properties":{"items":{"type":"array","items":{"not":{"required":["tipoCambio"]}}}}}},{"if":{"properties":{"monedaOperacion":{"not":{"const":"PYG"}}},"required":["monedaOperacion"]},"then":{"oneOf":[{"properties":{"items":{"type":"array","items":{"not":{"required":["tipoCambio"]}}}},"required":["tipoCambio"]},{"not":{"required":["tipoCambio"]},"properties":{"items":{"type":"array","items":{"required":["tipoCambio"]}}}}]}}]},{"properties":{"tipoDocumento":{"const":"NOTA_DE_CREDITO_ELECTRONICA"}}}],"description":"Nota de crédito electrónica — `tipoDocumento = NOTA_DE_CREDITO_ELECTRONICA`. No lleva `tipoTransaccion` ni `condicionOperacion`.","required":["documentoAsociado","items","motivoEmision","numeroEstablecimiento","puntoExpedicion","receptor","tipoDocumento","tipoEmision"]},"NotaDebitoElectronicaRequest":{"allOf":[{"$ref":"#/components/schemas/DocumentoElectronicoRequest"},{"type":"object","properties":{"receptor":{"$ref":"#/components/schemas/ReceptorDTO"},"items":{"type":"array","description":"Ítems del documento. Al menos uno","items":{"$ref":"#/components/schemas/ItemDTO"},"minItems":1},"comision":{"type":"number","description":"Comisión de la operación (F025), IVA 10% incluido. Se suma al total general y su IVA al total de IVA","example":55000,"exclusiveMinimum":0},"motivoEmision":{"type":"string","description":"Motivo del ajuste","enum":["DEVOLUCION_Y_AJUSTES_DE_PRECIOS","DEVOLUCION","DESCUENTO","BONIFICACION","CREDITO_INCOBRABLE","RECUPERO_DE_COSTO","RECUPERO_DE_GASTO","AJUSTE_DE_PRECIO"],"example":"AJUSTE_DE_PRECIO"},"documentoAsociado":{"$ref":"#/components/schemas/DocumentoAsociadoDTO","description":"Documento que se está modificando"}}},{"allOf":[{"if":{"properties":{"monedaOperacion":{"const":"PYG"}}},"then":{"not":{"required":["tipoCambio"]},"properties":{"items":{"type":"array","items":{"not":{"required":["tipoCambio"]}}}}}},{"if":{"properties":{"monedaOperacion":{"not":{"const":"PYG"}}},"required":["monedaOperacion"]},"then":{"oneOf":[{"properties":{"items":{"type":"array","items":{"not":{"required":["tipoCambio"]}}}},"required":["tipoCambio"]},{"not":{"required":["tipoCambio"]},"properties":{"items":{"type":"array","items":{"required":["tipoCambio"]}}}}]}}]},{"properties":{"tipoDocumento":{"const":"NOTA_DE_DEBITO_ELECTRONICA"}}}],"description":"Nota de débito electrónica — `tipoDocumento = NOTA_DE_DEBITO_ELECTRONICA`. No lleva `tipoTransaccion` ni `condicionOperacion`.","required":["documentoAsociado","items","motivoEmision","numeroEstablecimiento","puntoExpedicion","receptor","tipoDocumento","tipoEmision"]},"NotaRemisionElectronicaRequest":{"allOf":[{"$ref":"#/components/schemas/DocumentoElectronicoRequest"},{"type":"object","properties":{"receptor":{"$ref":"#/components/schemas/ReceptorDTO"},"items":{"type":"array","description":"Ítems del documento. Al menos uno","items":{"$ref":"#/components/schemas/ItemRemisionDTO"},"maxItems":999,"minItems":1},"motivoTraslado":{"type":"string","enum":["TRASLADO_POR_VENTAS","TRASLADO_POR_CONSIGNACION","EXPORTACION","TRASLADO_POR_COMPRA","IMPORTACION","TRASLADO_POR_DEVOLUCION","TRASLADO_ENTRE_LOCALES","TRASLADO_BIENES_TRANSFORMACION","TRASLADO_BIENES_REPARACION","TRASLADO_POR_EMISOR_MOVIL","EXHIBICION_O_DEMOSTRACION","PARTICIPACION_EN_FERIAS","TRASLADO_DE_ENCOMIENDAS","DECOMISO","OTRO"]},"descripcionMotivoTraslado":{"type":"string","maxLength":60,"minLength":5,"pattern":"(?s).*\\S.*"},"responsableEmision":{"type":"string","enum":["EMISOR_FACTURA","POSEEDOR_FACTURA_Y_BIENES","EMPRESA_TRANSPORTISTA","DESPACHANTE_DE_ADUANAS","AGENTE_DE_TRANSPORTE_O_INTERMEDIARIO"]},"kilometrosRecorrido":{"type":"integer","format":"int32","maximum":99999,"minimum":1},"costoFlete":{"type":"number","minimum":0},"fechaFacturaFutura":{"type":"string","format":"date","description":"Obligatoria en venta sin asociaciones; mes/año no posterior a la emisión efectiva"},"informacionFiscal":{"type":"string","maxLength":3000,"minLength":1},"carga":{"$ref":"#/components/schemas/CargaRemisionDTO"},"transporte":{"$ref":"#/components/schemas/TransporteRemisionDTO"},"documentosAsociados":{"type":"array","description":"Sólo facturas asociadas: CDC electrónico con prefijo 01 o tipoDocumentoImpreso FACTURA (H001a/2414)","items":{"$ref":"#/components/schemas/DocumentoAsociadoRemisionDTO"},"maxItems":99,"minItems":0}}},{"not":{"anyOf":[{"required":["tipoCambio"]},{"required":["descuentoGlobalPorcentaje"]}]},"properties":{"monedaOperacion":{"const":"PYG"},"items":{"type":"array","items":{"not":{"anyOf":[{"required":["tipoCambio"]},{"required":["descuentoParticular"]}]}}}}},{"properties":{"tipoDocumento":{"const":"NOTA_DE_REMISION_ELECTRONICA"}}}],"description":"Nota de remisión electrónica — `tipoDocumento = NOTA_DE_REMISION_ELECTRONICA`. La emisión de NRE está disponible. Antes de iniciar el traslado, esperá a que la nota de remisión esté en estado APROBADO o APROBADO_OBSERVACION. La `direccion` del receptor es obligatoria: documenta un traslado físico de mercadería. Ejemplos sintéticos nacional/importación/exportación: sólo tramo paraguayo, no sustituyen documentación ni autorización aduanera. Ajustar fechas e identidad al emisor; el registro no equivale a aprobación SIFEN.","examples":[{"tipoDocumento":"NOTA_DE_REMISION_ELECTRONICA","fechaEmision":"2026-09-09T10:00:00","numeroEstablecimiento":1,"puntoExpedicion":1,"tipoEmision":"NORMAL","receptor":{"tipoContribuyente":"NO_CONTRIBUYENTE","tipoOperacion":"B2F","tipoDocumento":"PASAPORTE","numeroDocumento":"000123","nombreRazonSocial":"Receptor sintético","pais":"ARG","direccion":"Domicilio de prueba","numeroCasa":0},"responsableEmision":"EMISOR_FACTURA","kilometrosRecorrido":1,"transporte":{"transportista":{"naturaleza":"NO_CONTRIBUYENTE","nombreRazonSocial":"Transportista sintético","tipoDocumento":"PASAPORTE","numeroDocumento":"000123","domicilioFiscal":"Domicilio sintético","numeroDocumentoConductor":"000456","nombreConductor":"Conductor sintético","direccionConductor":"Dirección sintética"},"tipoTransporte":"PROPIO","modalidad":"TERRESTRE","responsableFlete":"TRANSPORTE_PROPIO","fechaInicioTraslado":"2026-09-09","fechaFinTraslado":"2026-09-09","salida":{"direccion":"Salida","numeroCasa":0,"departamento":"CENTRAL","ciudad":"SAN LORENZO"},"entregas":[{"direccion":"Entrega","numeroCasa":0,"departamento":"CENTRAL","ciudad":"SAN LORENZO"}],"vehiculos":[{"tipoVehiculo":"CAMION","marca":"MARCA","tipoIdentificacion":1,"numeroIdentificacion":"001"}]},"items":[{"codigo":"001","descripcion":"Mercadería","cantidad":1,"unidadMedida":"UNI"}],"motivoTraslado":"TRASLADO_POR_CONSIGNACION"},{"tipoDocumento":"NOTA_DE_REMISION_ELECTRONICA","fechaEmision":"2026-09-09T10:00:00","numeroEstablecimiento":1,"puntoExpedicion":1,"tipoEmision":"NORMAL","receptor":{"tipoContribuyente":"NO_CONTRIBUYENTE","tipoOperacion":"B2F","tipoDocumento":"PASAPORTE","numeroDocumento":"000123","nombreRazonSocial":"Receptor sintético","pais":"ARG","direccion":"Domicilio de prueba","numeroCasa":0},"responsableEmision":"EMISOR_FACTURA","kilometrosRecorrido":1,"transporte":{"transportista":{"naturaleza":"NO_CONTRIBUYENTE","nombreRazonSocial":"Transportista sintético","tipoDocumento":"PASAPORTE","numeroDocumento":"000123","domicilioFiscal":"Domicilio sintético","numeroDocumentoConductor":"000456","nombreConductor":"Conductor sintético","direccionConductor":"Dirección sintética"},"tipoTransporte":"PROPIO","modalidad":"TERRESTRE","responsableFlete":"TRANSPORTE_PROPIO","fechaInicioTraslado":"2026-09-09","fechaFinTraslado":"2026-09-09","salida":{"direccion":"Salida","numeroCasa":0,"departamento":"CENTRAL","ciudad":"SAN LORENZO"},"entregas":[{"direccion":"Entrega","numeroCasa":0,"departamento":"CENTRAL","ciudad":"SAN LORENZO"}],"vehiculos":[{"tipoVehiculo":"CAMION","marca":"MARCA","tipoIdentificacion":1,"numeroIdentificacion":"001"}],"incoterm":"FOB","paisDestino":"BRA","numeroManifiesto":"000000000000001","numeroDespachoImportacion":"0000000000000001"},"items":[{"codigo":"001","descripcion":"Mercadería","cantidad":1,"unidadMedida":"UNI"}],"motivoTraslado":"IMPORTACION"},{"tipoDocumento":"NOTA_DE_REMISION_ELECTRONICA","fechaEmision":"2026-09-09T10:00:00","numeroEstablecimiento":1,"puntoExpedicion":1,"tipoEmision":"NORMAL","receptor":{"tipoContribuyente":"NO_CONTRIBUYENTE","tipoOperacion":"B2F","tipoDocumento":"PASAPORTE","numeroDocumento":"000123","nombreRazonSocial":"Receptor sintético","pais":"ARG","direccion":"Domicilio de prueba","numeroCasa":0},"responsableEmision":"EMISOR_FACTURA","kilometrosRecorrido":1,"transporte":{"transportista":{"naturaleza":"NO_CONTRIBUYENTE","nombreRazonSocial":"Transportista sintético","tipoDocumento":"PASAPORTE","numeroDocumento":"000123","domicilioFiscal":"Domicilio sintético","numeroDocumentoConductor":"000456","nombreConductor":"Conductor sintético","direccionConductor":"Dirección sintética"},"tipoTransporte":"PROPIO","modalidad":"TERRESTRE","responsableFlete":"TRANSPORTE_PROPIO","fechaInicioTraslado":"2026-09-09","fechaFinTraslado":"2026-09-09","salida":{"direccion":"Salida","numeroCasa":0,"departamento":"CENTRAL","ciudad":"SAN LORENZO"},"entregas":[{"direccion":"Entrega","numeroCasa":0,"departamento":"CENTRAL","ciudad":"SAN LORENZO"}],"vehiculos":[{"tipoVehiculo":"CAMION","marca":"MARCA","tipoIdentificacion":1,"numeroIdentificacion":"001"}],"incoterm":"FOB","paisDestino":"BRA","numeroManifiesto":"000000000000001"},"items":[{"codigo":"001","descripcion":"Mercadería","cantidad":1,"unidadMedida":"UNI"}],"motivoTraslado":"EXPORTACION"}],"required":["items","kilometrosRecorrido","motivoTraslado","numeroEstablecimiento","puntoExpedicion","receptor","responsableEmision","tipoDocumento","tipoEmision","transporte"],"unevaluatedProperties":{"type":"null"}},"PagoFacturaDTO":{"type":"object","description":"Un medio de pago de la factura (E605). En contado cubre el total; en crédito, la entrega inicial","properties":{"tipoPago":{"type":"string","description":"Medio de pago (E606)","enum":["EFECTIVO","CHEQUE","TARJETA_DE_CREDITO","TARJETA_DE_DEBITO","TRANSFERENCIA","GIRO","BILLETERA_ELECTRONICA","TARJETA_EMPRESARIAL","VALE","RETENCION","PAGO_POR_ANTICIPO","VALOR_FISCAL","VALOR_COMERCIAL","COMPENSACION","PERMUTA","PAGO_BANCARIO","PAGO_MOVIL","DONACION","PROMOCION","CONSUMO_INTERNO","PAGO_ELECTRONICO","OTRO"],"example":"TRANSFERENCIA"},"descripcionTipoPago":{"type":"string","description":"Descripción propia del medio (E607). Obligatoria y exclusiva de `tipoPago = OTRO`","maxLength":30,"minLength":4,"pattern":"(?s).*\\S.*"},"montoPago":{"type":"number","description":"Importe aplicado a la factura, en `monedaPago` (E608)","example":60000,"exclusiveMinimum":0},"monedaPago":{"type":"string","description":"Moneda del pago (E609)","enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZM","BAM","BBD","BYN","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYR","BZD","CAD","CDF","CHF","CHE","CHW","CLP","CLF","CNY","COP","COU","CRC","CUP","CUC","CVE","CYP","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GHC","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTL","LVL","LYD","MAD","MZN","MDL","MGF","MKD","MGA","MMK","MNT","MOP","MRO","MTL","MUR","XUA","MVR","MRU","MWK","MXN","MXV","MYR","MZM","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","ROL","RUB","RWF","SAR","RSD","SBD","SCR","SDD","SDG","SRD","SEK","SGD","SHP","SIT","SKK","SLL","SOS","SRG","SSP","STD","SVC","SYP","SZL","THB","TJS","TMM","TND","TRY","TMT","TOP","TRL","TTD","TWD","TZS","UAH","UGX","USD","USN","UYU","UYI","UYW","UZS","VEB","VND","VUV","VES","WST","STN","XAF","XAG","XAU","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XBA","XBB","XBC","XTS","XXX","YER","YUM","ZMW","ZWL","ZAR","ZMK","ZWD"],"example":"PYG"},"tipoCambio":{"type":"number","description":"Tipo de cambio de `monedaPago` (E611). Obligatorio fuera de PYG; prohibido en PYG","exclusiveMaximum":99999.9999,"exclusiveMinimum":0},"tarjeta":{"$ref":"#/components/schemas/TarjetaPagoDTO","description":"Datos de la tarjeta (E620). Obligatorio y exclusivo de tarjeta de crédito o débito"},"cheque":{"$ref":"#/components/schemas/ChequePagoDTO","description":"Datos del cheque (E630). Obligatorio y exclusivo de `tipoPago = CHEQUE`"}},"required":["monedaPago","montoPago","tipoPago"]},"PlazoEstructuradoDTO":{"type":"object","properties":{"cantidad":{"type":"integer","format":"int32","maximum":9999,"minimum":1},"unidad":{"type":"string","enum":["DIAS","MESES"]}},"required":["cantidad","unidad"]},"PolizaSeguroDTO":{"type":"object","description":"Póliza de seguros (EA790)","properties":{"codigo":{"type":"string","description":"Código de la póliza (EA791)","maxLength":20,"minLength":0},"unidadVigencia":{"type":"string","description":"Unidad de tiempo de la vigencia (EA792): hora, día, mes, año","example":"mes","maxLength":15,"minLength":3},"vigencia":{"type":"number","description":"Vigencia en la unidad indicada (EA793)","example":12,"exclusiveMinimum":0},"numero":{"type":"string","description":"Número de la póliza (EA794)","maxLength":25,"minLength":0},"fechaInicioVigencia":{"type":"string","format":"date-time","description":"Inicio de vigencia (EA795), `AAAA-MM-DDThh:mm:ss`","example":"2026-01-01T00:00:00"},"fechaFinVigencia":{"type":"string","format":"date-time","description":"Fin de vigencia (EA796), no anterior al inicio","example":"2026-12-31T23:59:59"},"codigoItem":{"type":"string","description":"Código de un ítem de la factura para asociar la póliza (EA797, NT008)","maxLength":50,"minLength":1}},"required":["codigo","numero","unidadVigencia","vigencia"]},"ReceptorDTO":{"type":"object","allOf":[{"if":{"properties":{"tipoContribuyente":{"const":"CONTRIBUYENTE"}},"required":["tipoContribuyente"]},"then":{"required":["digitoVerificador","tipoContribuyenteReceptor"]}},{"if":{"properties":{"tipoContribuyente":{"const":"NO_CONTRIBUYENTE"}},"required":["tipoContribuyente"]},"then":{"required":["tipoDocumento"]}},{"if":{"properties":{"tipoOperacion":{"const":"B2F"}},"required":["tipoOperacion"]},"then":{"not":{"anyOf":[{"required":["tipoContribuyenteReceptor"]},{"required":["digitoVerificador"]},{"required":["departamento"]},{"required":["codigoDistrito"]},{"required":["ciudad"]}]},"properties":{"tipoDocumento":{"not":{"const":"INNOMINADO"}},"pais":{"not":{"const":"PRY"}},"tipoContribuyente":{"const":"NO_CONTRIBUYENTE"},"direccion":{"type":"string","pattern":"\\S"}},"required":["direccion","nombreRazonSocial","numeroCasa","pais","tipoContribuyente","tipoDocumento"]}},{"if":{"properties":{"tipoOperacion":{"const":"B2G"}},"required":["tipoOperacion"]},"then":{"not":{"required":["tipoDocumento"]},"properties":{"numeroDocumento":{"type":"string","pattern":"\\d{3,8}"},"digitoVerificador":{"type":"string","pattern":"\\d"},"pais":{"const":"PRY"},"tipoContribuyente":{"const":"CONTRIBUYENTE"}},"required":["digitoVerificador","numeroDocumento","pais","tipoContribuyente","tipoContribuyenteReceptor"]}},{"if":{"not":{"properties":{"tipoOperacion":{"const":"B2F"}},"required":["tipoOperacion"]}},"then":{"required":["numeroDocumento"]}}],"description":"Destinatario del documento. Los nombres de los campos no cambian entre operaciones, pero\ncuáles son obligatorios lo decide `tipoContribuyente`, y es el motivo de rechazo más\nfrecuente al integrar:\n\n- `CONTRIBUYENTE` exige `tipoContribuyenteReceptor` y `digitoVerificador`, y no lleva\n  `tipoDocumento`.\n- `NO_CONTRIBUYENTE` exige `tipoDocumento`, y no lleva los otros dos: SIFEN rechaza\n  `tipoContribuyenteReceptor` en un no contribuyente con el código 1303.\n\nLas dos reglas van como `if`/`then` en este schema, así que un validador las detecta antes\nde mandar el request.\n","properties":{"tipoContribuyente":{"type":"string","description":"Naturaleza del receptor (D201). Siempre se envía","enum":["CONTRIBUYENTE","NO_CONTRIBUYENTE"],"example":"CONTRIBUYENTE"},"tipoOperacion":{"type":"string","description":"Tipo de operación: B2B, B2C, B2G (organismo público) o B2F (cliente del exterior)","enum":["B2B","B2C","B2G","B2F"],"example":"B2B"},"tipoContribuyenteReceptor":{"type":"string","description":"Persona física o jurídica (D205). Obligatorio si `tipoContribuyente = CONTRIBUYENTE`; no se envía para un no contribuyente","enum":["PERSONA_FISICA","PERSONA_JURIDICA"],"example":"PERSONA_JURIDICA"},"tipoDocumento":{"type":"string","description":"Tipo de documento de identidad del receptor (D208). Su descripción D209 se deriva del catálogo. Obligatorio si `tipoContribuyente = NO_CONTRIBUYENTE`; no se envía para un contribuyente","enum":["CEDULA_PARAGUAYA","PASAPORTE","CEDULA_EXTRANJERA","CARNET_DE_RESIDENCIA","INNOMINADO","TARJETA_DIPLOMATICA","OTRO"],"example":"CEDULA_PARAGUAYA"},"descripcionTipoDocumento":{"type":"string","description":"Descripción propia del documento de identidad (D209). Obligatoria y exclusiva de `tipoDocumento = OTRO`","example":"Carnet de refugiado","maxLength":41,"minLength":9},"numeroDocumento":{"type":"string","description":"RUC sin el dígito verificador para un contribuyente; número de identidad (D210) para un no contribuyente. Para el receptor innominado, el literal `0`. Opcional sólo en B2F","example":"80012345"},"nombreRazonSocial":{"type":"string","description":"Nombre completo o razón social (D211). Para el receptor innominado, el literal `Sin Nombre`","example":"Comercial San Roque S.A.","maxLength":255,"minLength":4},"digitoVerificador":{"type":"string","description":"Dígito verificador del RUC, un solo dígito. Obligatorio si `tipoContribuyente = CONTRIBUYENTE`","example":"0","pattern":"\\d"},"nombreFantasia":{"type":"string","description":"Nombre de fantasía del receptor (D212)","example":"San Roque","maxLength":255,"minLength":4},"direccion":{"type":"string","description":"Domicilio del receptor (D213). Obligatorio para `tipoOperacion = B2F` y para la nota de remisión, que documenta un traslado físico; opcional en el resto. En una FE nacional exige `departamento` y `ciudad`","example":"Avda. Mariscal López 1234","maxLength":255,"minLength":0},"numeroCasa":{"type":"integer","format":"int32","description":"Número de casa (D218)","example":1234,"maximum":999999,"minimum":0},"departamento":{"type":"string","description":"Departamento del catálogo paraguayo (D219)","example":"CENTRAL"},"codigoDistrito":{"type":"integer","format":"int32","description":"Código de distrito del catálogo paraguayo (D221)","example":1},"ciudad":{"type":"string","description":"Ciudad del catálogo paraguayo (D223)","example":"Asunción"},"telefono":{"type":"string","description":"Teléfono del receptor (D214)","example":"021123456","pattern":"^(\\s*|[\\s\\S]{6,15})$"},"celular":{"type":"string","description":"Teléfono móvil","example":"0981123456","pattern":"^(\\s*|[\\s\\S]{10,20})$"},"email":{"type":"string","format":"email","description":"Si el envío automático está configurado, Sifende manda el KuDE a esta dirección","example":"facturacion@sanroque.com.py","pattern":"^(\\s*|[\\s\\S]{3,80})$"},"codigoCliente":{"type":"string","description":"Código interno con el que el emisor identifica al cliente (D217)","example":"CLI-001","maxLength":15,"minLength":3},"pais":{"type":"string","default":"PRY","description":"País del receptor en código ISO. Sólo se cambia para receptores del exterior","enum":["DZA","EGY","LBY","MAR","SDN","TUN","ESH","IOT","BDI","COM","DJI","ERI","ETH","ATF","KEN","MDG","MWI","MUS","MYT","MOZ","REU","RWA","SYC","SOM","SSD","UGA","TZA","ZMB","ZWE","AGO","CMR","CAF","TCD","COG","COD","GNQ","GAB","STP","BWA","LSO","NAM","ZAF","SWZ","BEN","BFA","CPV","CIV","GMB","GHA","GIN","GNB","LBR","MLI","MRT","NER","NGA","SHN","SEN","SLE","TGO","AIA","ATG","ABW","BHS","BRB","BES","VGB","CYM","CUB","CUW","DMA","DOM","GRD","GLP","HTI","JAM","MTQ","MSR","PRI","BLM","KNA","LCA","MAF","VCT","SXM","TTO","TCA","VIR","BLZ","CRI","SLV","GTM","HND","MEX","NIC","PAN","ARG","BOL","BRA","CHL","COL","ECU","FLK","GUF","GUY","PRY","PER","SGS","SUR","URY","VEN","BMU","CAN","GRL","SPM","USA","ATA","KAZ","KGZ","TJK","TKM","UZB","CHN","HKG","MAC","TWN","PRK","JPN","MNG","KOR","BRN","KHM","IDN","LAO","MYS","MMR","PHL","SGP","THA","TLS","VNM","AFG","BGD","BTN","IND","IRN","MDV","NPL","PAK","LKA","ARM","AZE","BHR","CYP","GEO","IRQ","ISR","JOR","KWT","LBN","OMN","QAT","SAU","PSE","SYR","TUR","ARE","YEM","BLR","BGR","CZE","HUN","POL","MDA","ROU","RUS","SVK","UKR","ALA","GGY","JEY","DNK","EST","FRO","FIN","ISL","IRL","IMN","LVA","LTU","NOR","SJM","SWE","GBR","ALB","AND","BIH","HRV","GIB","GRC","VAT","ITA","MLT","MNE","PRT","SMR","SRB","SVN","ESP","MKD","AUT","BEL","FRA","DEU","LIE","LUX","MCO","NLD","CHE","AUS","CXR","CCK","HMD","NZL","NFK","FJI","NCL","PNG","SLB","VUT","GUM","KIR","MHL","FSM","NRU","MNP","PLW","UMI","ASM","COK","PYF","NIU","PCN","WSM","TKL","TON","TUV","WLF","NN"],"example":"PRY"}},"required":["nombreRazonSocial","tipoContribuyente","tipoOperacion"]},"SeguroDTO":{"type":"object","description":"Sector de seguros (E800)","properties":{"codigoEmpresa":{"type":"string","description":"Código de la empresa de seguros en la Superintendencia de Seguros (E801)","maxLength":20,"minLength":1},"polizas":{"type":"array","description":"Pólizas (EA790), de 1 a 999","items":{"$ref":"#/components/schemas/PolizaSeguroDTO"},"maxItems":999,"minItems":0}},"required":["polizas"]},"SupermercadoDTO":{"type":"object","description":"Sector de supermercados (E810). Describe la caja: el efectivo recibido y el vuelto no son\npagos de la factura, que se informan en `pagos` o `condicionPago`.\n","properties":{"nombreCajero":{"type":"string","description":"Nombre del cajero (E811)","maxLength":20,"minLength":1},"efectivo":{"type":"number","description":"Efectivo recibido (E812)","minimum":0},"vuelto":{"type":"number","description":"Vuelto entregado (E813)","minimum":0},"donacion":{"type":"number","description":"Monto de la donación (E814)","minimum":0},"descripcionDonacion":{"type":"string","description":"Descripción de la donación (E815). Sólo con `donacion`","maxLength":20,"minLength":1}}},"TarjetaPagoDTO":{"type":"object","description":"Pago con tarjeta de crédito o débito (E620). Nunca se informa el número completo","properties":{"tipoTarjeta":{"type":"string","description":"Denominación (E621)","enum":["VISA","MASTERCARD","AMERICAN_EXPRESS","MAESTRO","PANAL","CABAL","OTRO"],"example":"VISA"},"descripcionTipoTarjeta":{"type":"string","description":"Descripción propia (E622). Obligatoria y exclusiva de `tipoTarjeta = OTRO`","maxLength":20,"minLength":4,"pattern":"(?s).*\\S.*"},"razonSocialProcesadora":{"type":"string","description":"Razón social de la procesadora (E623)","maxLength":60,"minLength":4,"pattern":"(?s).*\\S.*"},"rucProcesadora":{"type":"string","description":"RUC de la procesadora sin DV (E624)","example":"80012345","pattern":"[1-9][0-9]{1,6}[0-9A-D]"},"digitoVerificadorProcesadora":{"type":"string","description":"DV del RUC de la procesadora (E625). `0` es un valor","example":"7","pattern":"[0-9]"},"formaProcesamientoPago":{"type":"string","description":"Forma de procesamiento (E626)","enum":["POS","PAGO_ELECTRONICO","OTRO"],"example":"POS"},"codigoAutorizacion":{"type":"string","description":"Código de autorización (E627), como string: de 6 a 10 dígitos, desde 100000","example":"123456","pattern":"[1-9][0-9]{5,9}"},"nombreTitular":{"type":"string","description":"Nombre del titular (E628)","maxLength":30,"minLength":4,"pattern":"(?s).*\\S.*"},"ultimosCuatroDigitos":{"type":"string","description":"Cuatro últimos dígitos (E629), como string","example":"0001","pattern":"(?!0000)[0-9]{4}"}},"required":["formaProcesamientoPago","tipoTarjeta"]},"TransporteFacturaDTO":{"type":"object","description":"Transporte de la mercadería facturada (E900). Opcional en la FE: salida, entregas, vehículos y transportista se informan cuando se conocen","properties":{"tipoTransporte":{"type":"string","enum":["PROPIO","TERCERO"]},"modalidad":{"type":"string","enum":["TERRESTRE","FLUVIAL","AEREO","MULTIMODAL"]},"responsableFlete":{"type":"string","enum":["EMISOR_FACTURA_ELECTRONICA","RECEPTOR_FACTURA_ELECTRONICA","TERCERO","AGENTE_INTERMEDIARIO","TRANSPORTE_PROPIO"]},"incoterm":{"type":"string","enum":["CFR","CIF","CIP","CPT","DAP","DAT","DDP","EXW","FAS","FCA","FOB"]},"numeroManifiesto":{"type":"string","maxLength":15,"minLength":1,"pattern":"(?s).*\\S.*"},"numeroDespachoImportacion":{"type":"string","maxLength":16,"minLength":16,"pattern":"(?s).*\\S.*"},"fechaInicioTraslado":{"type":"string","format":"date"},"fechaFinTraslado":{"type":"string","format":"date"},"paisDestino":{"type":"string","enum":["DZA","EGY","LBY","MAR","SDN","TUN","ESH","IOT","BDI","COM","DJI","ERI","ETH","ATF","KEN","MDG","MWI","MUS","MYT","MOZ","REU","RWA","SYC","SOM","SSD","UGA","TZA","ZMB","ZWE","AGO","CMR","CAF","TCD","COG","COD","GNQ","GAB","STP","BWA","LSO","NAM","ZAF","SWZ","BEN","BFA","CPV","CIV","GMB","GHA","GIN","GNB","LBR","MLI","MRT","NER","NGA","SHN","SEN","SLE","TGO","AIA","ATG","ABW","BHS","BRB","BES","VGB","CYM","CUB","CUW","DMA","DOM","GRD","GLP","HTI","JAM","MTQ","MSR","PRI","BLM","KNA","LCA","MAF","VCT","SXM","TTO","TCA","VIR","BLZ","CRI","SLV","GTM","HND","MEX","NIC","PAN","ARG","BOL","BRA","CHL","COL","ECU","FLK","GUF","GUY","PRY","PER","SGS","SUR","URY","VEN","BMU","CAN","GRL","SPM","USA","ATA","KAZ","KGZ","TJK","TKM","UZB","CHN","HKG","MAC","TWN","PRK","JPN","MNG","KOR","BRN","KHM","IDN","LAO","MYS","MMR","PHL","SGP","THA","TLS","VNM","AFG","BGD","BTN","IND","IRN","MDV","NPL","PAK","LKA","ARM","AZE","BHR","CYP","GEO","IRQ","ISR","JOR","KWT","LBN","OMN","QAT","SAU","PSE","SYR","TUR","ARE","YEM","BLR","BGR","CZE","HUN","POL","MDA","ROU","RUS","SVK","UKR","ALA","GGY","JEY","DNK","EST","FRO","FIN","ISL","IRL","IMN","LVA","LTU","NOR","SJM","SWE","GBR","ALB","AND","BIH","HRV","GIB","GRC","VAT","ITA","MLT","MNE","PRT","SMR","SRB","SVN","ESP","MKD","AUT","BEL","FRA","DEU","LIE","LUX","MCO","NLD","CHE","AUS","CXR","CCK","HMD","NZL","NFK","FJI","NCL","PNG","SLB","VUT","GUM","KIR","MHL","FSM","NRU","MNP","PLW","UMI","ASM","COK","PYF","NIU","PCN","WSM","TKL","TON","TUV","WLF","NN"]},"salida":{"$ref":"#/components/schemas/LocalRemisionDTO"},"entregas":{"type":"array","items":{"$ref":"#/components/schemas/LocalRemisionDTO"},"maxItems":99,"minItems":0},"vehiculos":{"type":"array","items":{"$ref":"#/components/schemas/VehiculoRemisionDTO"},"maxItems":4,"minItems":0},"transportista":{"$ref":"#/components/schemas/TransportistaRemisionDTO"}},"required":["modalidad","responsableFlete"]},"TransporteRemisionDTO":{"type":"object","properties":{"tipoTransporte":{"type":"string","enum":["PROPIO","TERCERO"]},"modalidad":{"type":"string","enum":["TERRESTRE","FLUVIAL","AEREO","MULTIMODAL"]},"responsableFlete":{"type":"string","enum":["EMISOR_FACTURA_ELECTRONICA","RECEPTOR_FACTURA_ELECTRONICA","TERCERO","AGENTE_INTERMEDIARIO","TRANSPORTE_PROPIO"]},"incoterm":{"type":"string","enum":["CFR","CIF","CIP","CPT","DAP","DAT","DDP","EXW","FAS","FCA","FOB"]},"numeroManifiesto":{"type":"string","maxLength":15,"minLength":1,"pattern":"(?s).*\\S.*"},"numeroDespachoImportacion":{"type":"string","maxLength":16,"minLength":16,"pattern":"(?s).*\\S.*"},"fechaInicioTraslado":{"type":"string","format":"date"},"fechaFinTraslado":{"type":"string","format":"date"},"paisDestino":{"type":"string","enum":["DZA","EGY","LBY","MAR","SDN","TUN","ESH","IOT","BDI","COM","DJI","ERI","ETH","ATF","KEN","MDG","MWI","MUS","MYT","MOZ","REU","RWA","SYC","SOM","SSD","UGA","TZA","ZMB","ZWE","AGO","CMR","CAF","TCD","COG","COD","GNQ","GAB","STP","BWA","LSO","NAM","ZAF","SWZ","BEN","BFA","CPV","CIV","GMB","GHA","GIN","GNB","LBR","MLI","MRT","NER","NGA","SHN","SEN","SLE","TGO","AIA","ATG","ABW","BHS","BRB","BES","VGB","CYM","CUB","CUW","DMA","DOM","GRD","GLP","HTI","JAM","MTQ","MSR","PRI","BLM","KNA","LCA","MAF","VCT","SXM","TTO","TCA","VIR","BLZ","CRI","SLV","GTM","HND","MEX","NIC","PAN","ARG","BOL","BRA","CHL","COL","ECU","FLK","GUF","GUY","PRY","PER","SGS","SUR","URY","VEN","BMU","CAN","GRL","SPM","USA","ATA","KAZ","KGZ","TJK","TKM","UZB","CHN","HKG","MAC","TWN","PRK","JPN","MNG","KOR","BRN","KHM","IDN","LAO","MYS","MMR","PHL","SGP","THA","TLS","VNM","AFG","BGD","BTN","IND","IRN","MDV","NPL","PAK","LKA","ARM","AZE","BHR","CYP","GEO","IRQ","ISR","JOR","KWT","LBN","OMN","QAT","SAU","PSE","SYR","TUR","ARE","YEM","BLR","BGR","CZE","HUN","POL","MDA","ROU","RUS","SVK","UKR","ALA","GGY","JEY","DNK","EST","FRO","FIN","ISL","IRL","IMN","LVA","LTU","NOR","SJM","SWE","GBR","ALB","AND","BIH","HRV","GIB","GRC","VAT","ITA","MLT","MNE","PRT","SMR","SRB","SVN","ESP","MKD","AUT","BEL","FRA","DEU","LIE","LUX","MCO","NLD","CHE","AUS","CXR","CCK","HMD","NZL","NFK","FJI","NCL","PNG","SLB","VUT","GUM","KIR","MHL","FSM","NRU","MNP","PLW","UMI","ASM","COK","PYF","NIU","PCN","WSM","TKL","TON","TUV","WLF","NN"]},"salida":{"$ref":"#/components/schemas/LocalRemisionDTO"},"entregas":{"type":"array","items":{"$ref":"#/components/schemas/LocalRemisionDTO"},"maxItems":99,"minItems":1},"vehiculos":{"type":"array","items":{"$ref":"#/components/schemas/VehiculoRemisionDTO"},"maxItems":4,"minItems":1},"transportista":{"$ref":"#/components/schemas/TransportistaRemisionDTO"}},"required":["entregas","fechaFinTraslado","fechaInicioTraslado","modalidad","responsableFlete","salida","tipoTransporte","transportista","vehiculos"]},"TransportistaRemisionDTO":{"type":"object","properties":{"naturaleza":{"type":"string","enum":["CONTRIBUYENTE","NO_CONTRIBUYENTE"]},"nombreRazonSocial":{"type":"string","maxLength":60,"minLength":4},"ruc":{"type":"string","pattern":"\\d{3,8}"},"digitoVerificador":{"type":"string","pattern":"\\d"},"tipoDocumento":{"type":"string","enum":["CEDULA_PARAGUAYA","PASAPORTE","CEDULA_EXTRANJERA","CARNET_DE_RESIDENCIA"]},"numeroDocumento":{"type":"string","maxLength":20,"minLength":1,"pattern":"(?s).*\\S.*"},"nacionalidad":{"type":"string","enum":["DZA","EGY","LBY","MAR","SDN","TUN","ESH","IOT","BDI","COM","DJI","ERI","ETH","ATF","KEN","MDG","MWI","MUS","MYT","MOZ","REU","RWA","SYC","SOM","SSD","UGA","TZA","ZMB","ZWE","AGO","CMR","CAF","TCD","COG","COD","GNQ","GAB","STP","BWA","LSO","NAM","ZAF","SWZ","BEN","BFA","CPV","CIV","GMB","GHA","GIN","GNB","LBR","MLI","MRT","NER","NGA","SHN","SEN","SLE","TGO","AIA","ATG","ABW","BHS","BRB","BES","VGB","CYM","CUB","CUW","DMA","DOM","GRD","GLP","HTI","JAM","MTQ","MSR","PRI","BLM","KNA","LCA","MAF","VCT","SXM","TTO","TCA","VIR","BLZ","CRI","SLV","GTM","HND","MEX","NIC","PAN","ARG","BOL","BRA","CHL","COL","ECU","FLK","GUF","GUY","PRY","PER","SGS","SUR","URY","VEN","BMU","CAN","GRL","SPM","USA","ATA","KAZ","KGZ","TJK","TKM","UZB","CHN","HKG","MAC","TWN","PRK","JPN","MNG","KOR","BRN","KHM","IDN","LAO","MYS","MMR","PHL","SGP","THA","TLS","VNM","AFG","BGD","BTN","IND","IRN","MDV","NPL","PAK","LKA","ARM","AZE","BHR","CYP","GEO","IRQ","ISR","JOR","KWT","LBN","OMN","QAT","SAU","PSE","SYR","TUR","ARE","YEM","BLR","BGR","CZE","HUN","POL","MDA","ROU","RUS","SVK","UKR","ALA","GGY","JEY","DNK","EST","FRO","FIN","ISL","IRL","IMN","LVA","LTU","NOR","SJM","SWE","GBR","ALB","AND","BIH","HRV","GIB","GRC","VAT","ITA","MLT","MNE","PRT","SMR","SRB","SVN","ESP","MKD","AUT","BEL","FRA","DEU","LIE","LUX","MCO","NLD","CHE","AUS","CXR","CCK","HMD","NZL","NFK","FJI","NCL","PNG","SLB","VUT","GUM","KIR","MHL","FSM","NRU","MNP","PLW","UMI","ASM","COK","PYF","NIU","PCN","WSM","TKL","TON","TUV","WLF","NN"]},"domicilioFiscal":{"type":"string","maxLength":150,"minLength":0},"numeroDocumentoConductor":{"type":"string","maxLength":20,"minLength":0},"nombreConductor":{"type":"string","maxLength":60,"minLength":4},"direccionConductor":{"type":"string","maxLength":255,"minLength":0},"nombreAgente":{"type":"string","maxLength":60,"minLength":4,"pattern":"(?s).*\\S.*"},"rucAgente":{"type":"string","pattern":"\\d{3,8}"},"digitoVerificadorAgente":{"type":"string","pattern":"\\d"},"direccionAgente":{"type":"string","maxLength":255,"minLength":1,"pattern":"(?s).*\\S.*"}},"required":["direccionConductor","domicilioFiscal","naturaleza","nombreConductor","nombreRazonSocial","numeroDocumentoConductor"]},"VehiculoNuevoDTO":{"type":"object","description":"Datos del vehículo nuevo vendido en el ítem (E770)","properties":{"tipoOperacion":{"type":"string","description":"Tipo de operación de venta (E771)","enum":["VENTA_A_REPRESENTANTE","VENTA_AL_CONSUMIDOR_FINAL","VENTA_AL_GOBIERNO","VENTA_A_FLOTA_DE_VEHICULOS"],"example":"VENTA_AL_CONSUMIDOR_FINAL"},"chasis":{"type":"string","description":"Chasis (E773)","example":"9BWZZZ377VT004251","pattern":"[0-9A-Za-z]{17}"},"color":{"type":"string","description":"Color (E774)","maxLength":10,"minLength":1},"potencia":{"type":"integer","format":"int32","description":"Potencia del motor en CV (E775)","maximum":9999,"minimum":1},"capacidadMotor":{"type":"integer","format":"int32","description":"Capacidad del motor en cc (E776)","maximum":9999,"minimum":1},"pesoNeto":{"type":"number","description":"Peso neto en toneladas (E777)","exclusiveMinimum":0},"pesoBruto":{"type":"number","description":"Peso bruto en toneladas (E778)","exclusiveMinimum":0},"tipoCombustible":{"type":"string","description":"Tipo de combustible (E779)","enum":["GASOLINA","DIESEL","ETANOL","GNV","FLEX","OTRO"],"example":"DIESEL"},"descripcionCombustible":{"type":"string","description":"Combustible propio (E780). Obligatorio y exclusivo de `tipoCombustible = OTRO`","maxLength":20,"minLength":3},"numeroMotor":{"type":"string","description":"Número de motor (E781)","maxLength":21,"minLength":1},"capacidadTraccion":{"type":"number","description":"Capacidad máxima de tracción en toneladas (E782)","exclusiveMinimum":0},"anioFabricacion":{"type":"integer","format":"int32","description":"Año de fabricación (E783)","example":2026,"maximum":9999,"minimum":1000},"tipoVehiculo":{"type":"string","description":"Tipo de vehículo (E784)","example":"Camioneta","maxLength":10,"minLength":4},"capacidadPasajeros":{"type":"integer","format":"int32","description":"Capacidad máxima de pasajeros sentados (E785)","maximum":999,"minimum":1}}},"VehiculoRemisionDTO":{"type":"object","properties":{"tipoVehiculo":{"type":"string","maxLength":10,"minLength":4},"marca":{"type":"string","maxLength":10,"minLength":0},"tipoIdentificacion":{"type":"integer","format":"int32","maximum":2,"minimum":1},"numeroIdentificacion":{"type":"string","maxLength":20,"minLength":1,"pattern":"(?s).*\\S.*"},"matricula":{"type":"string","maxLength":7,"minLength":6,"pattern":"(?s).*\\S.*"},"datosAdicionales":{"type":"string","maxLength":20,"minLength":1,"pattern":"(?s).*\\S.*"},"numeroVuelo":{"type":"string","maxLength":6,"minLength":6,"pattern":"(?s).*\\S.*"}},"required":["marca","tipoIdentificacion","tipoVehiculo"]},"VendedorAutofacturaDTO":{"type":"object","additionalProperties":false,"description":"Vendedor de la compra documentada por la autofactura (grupo E4)","properties":{"naturaleza":{"type":"string","description":"Naturaleza del vendedor (E301)","enum":["NO_CONTRIBUYENTE","EXTRANJERO"],"example":"NO_CONTRIBUYENTE"},"tipoDocumento":{"type":"string","description":"Tipo de documento de identidad del vendedor (E304)","enum":["CEDULA_PARAGUAYA","PASAPORTE","CEDULA_EXTRANJERA","CARNET_DE_RESIDENCIA"],"example":"CEDULA_PARAGUAYA"},"numeroDocumento":{"type":"string","description":"Número de documento de identidad del vendedor (E306)","example":"1234567","minLength":1,"pattern":"[0-9]{5,12}"},"nombre":{"type":"string","description":"Nombre y apellido del vendedor (E307)","example":"María González","maxLength":60,"minLength":4},"domicilio":{"$ref":"#/components/schemas/DomicilioAutofacturaDTO","description":"Dirección y ubicación del vendedor (E308, E310–E315)"},"numeroCasa":{"type":"integer","format":"int32","description":"Número de casa del vendedor; informar cero cuando no tiene numeración (E309)","example":0,"maximum":999999,"minimum":0}},"required":["domicilio","naturaleza","nombre","numeroCasa","numeroDocumento","tipoDocumento"]},"DocumentoElectronicoEmisionResponseDTO":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Identificador público del documento","example":"550e8400-e29b-41d4-a716-446655440000"},"deId":{"type":"integer","format":"int64","description":"PK numérica del documento","example":4821},"cdc":{"type":"string","description":"Código de Control del Documento Electrónico, 44 dígitos","example":"01800123451001001000000122026042710000000006"},"estado":{"type":"string","description":"Siempre `PENDIENTE` en la emisión. Los estados terminales se consultan con `statusUrl`","example":"PENDIENTE"},"ambiente":{"type":"string","description":"Ambiente inmutable en el que se emitió el documento","example":"PROD"},"tipoDocumento":{"type":"string","description":"Eco del tipo emitido","example":"FACTURA_ELECTRONICA"},"numeroDocumento":{"type":"integer","format":"int64","description":"Correlativo asignado dentro del punto de expedición","example":122},"numeroFormateado":{"type":"string","description":"Número en formato establecimiento-puntoExpedición-correlativo","example":"001-001-0000122"},"fechaCreacion":{"type":"string","format":"date-time","description":"Momento en que Sifende registró el documento","example":"2026-04-27T10:30:00"},"qrUrl":{"type":"string","description":"URL del QR oficial de SIFEN, para embeber en tu UI o en el KuDE"},"statusUrl":{"type":"string","description":"URL absoluta para hacer polling del estado. También viaja en el header `Location`"},"kudeUrl":{"type":"string","description":"URL absoluta del KuDE en PDF, disponible una vez aprobado el documento"},"itiDe":{"type":"integer","format":"int32"}}},"EventoNominacionRequest":{"type":"object","description":"Datos necesarios para nominar el receptor de una factura electrónica innominada","properties":{"receptor":{"$ref":"#/components/schemas/ReceptorNominadoRequest"},"motivo":{"type":"string","maxLength":500,"minLength":5}},"required":["motivo","receptor"]},"ReceptorNominadoRequest":{"type":"object","description":"Receptor que reemplazará al receptor innominado de la factura electrónica","properties":{"naturaleza":{"type":"string","enum":["CONTRIBUYENTE","NO_CONTRIBUYENTE"]},"tipoOperacion":{"type":"string","enum":["B2B","B2C","B2G","B2F"]},"pais":{"type":"string","enum":["DZA","EGY","LBY","MAR","SDN","TUN","ESH","IOT","BDI","COM","DJI","ERI","ETH","ATF","KEN","MDG","MWI","MUS","MYT","MOZ","REU","RWA","SYC","SOM","SSD","UGA","TZA","ZMB","ZWE","AGO","CMR","CAF","TCD","COG","COD","GNQ","GAB","STP","BWA","LSO","NAM","ZAF","SWZ","BEN","BFA","CPV","CIV","GMB","GHA","GIN","GNB","LBR","MLI","MRT","NER","NGA","SHN","SEN","SLE","TGO","AIA","ATG","ABW","BHS","BRB","BES","VGB","CYM","CUB","CUW","DMA","DOM","GRD","GLP","HTI","JAM","MTQ","MSR","PRI","BLM","KNA","LCA","MAF","VCT","SXM","TTO","TCA","VIR","BLZ","CRI","SLV","GTM","HND","MEX","NIC","PAN","ARG","BOL","BRA","CHL","COL","ECU","FLK","GUF","GUY","PRY","PER","SGS","SUR","URY","VEN","BMU","CAN","GRL","SPM","USA","ATA","KAZ","KGZ","TJK","TKM","UZB","CHN","HKG","MAC","TWN","PRK","JPN","MNG","KOR","BRN","KHM","IDN","LAO","MYS","MMR","PHL","SGP","THA","TLS","VNM","AFG","BGD","BTN","IND","IRN","MDV","NPL","PAK","LKA","ARM","AZE","BHR","CYP","GEO","IRQ","ISR","JOR","KWT","LBN","OMN","QAT","SAU","PSE","SYR","TUR","ARE","YEM","BLR","BGR","CZE","HUN","POL","MDA","ROU","RUS","SVK","UKR","ALA","GGY","JEY","DNK","EST","FRO","FIN","ISL","IRL","IMN","LVA","LTU","NOR","SJM","SWE","GBR","ALB","AND","BIH","HRV","GIB","GRC","VAT","ITA","MLT","MNE","PRT","SMR","SRB","SVN","ESP","MKD","AUT","BEL","FRA","DEU","LIE","LUX","MCO","NLD","CHE","AUS","CXR","CCK","HMD","NZL","NFK","FJI","NCL","PNG","SLB","VUT","GUM","KIR","MHL","FSM","NRU","MNP","PLW","UMI","ASM","COK","PYF","NIU","PCN","WSM","TKL","TON","TUV","WLF","NN"]},"tipoContribuyente":{"type":"string","enum":["PERSONA_FISICA","PERSONA_JURIDICA"]},"ruc":{"type":"string","pattern":"\\d{3,8}"},"digitoVerificador":{"type":"string","pattern":"\\d"},"tipoDocumento":{"type":"string","enum":["CEDULA_PARAGUAYA","PASAPORTE","CEDULA_EXTRANJERA","CARNET_DE_RESIDENCIA","INNOMINADO","TARJETA_DIPLOMATICA","OTRO"]},"descripcionTipoDocumento":{"type":"string","maxLength":41,"minLength":9},"numeroDocumento":{"type":"string","pattern":"[0-9A-Za-z-]{1,20}"},"nombreRazonSocial":{"type":"string","maxLength":255,"minLength":4},"nombreFantasia":{"type":"string","maxLength":255,"minLength":4},"direccion":{"type":"string","maxLength":255,"minLength":0},"numeroCasa":{"type":"integer","format":"int32","maximum":999999,"minimum":0},"departamento":{"type":"string","enum":["CAPITAL","CONCEPCION","SAN_PEDRO","CORDILLERA","GUAIRA","CAAGUAZU","CAAZAPA","ITAPUA","MISIONES","PARAGUARI","ALTO_PARANA","CENTRAL","NEEMBUCU","AMAMBAY","PTE_HAYES","BOQUERON","ALTO_PARAGUAY","CANINDEYU","CHACO","NUEVA_ASUNCION"]},"codigoDistrito":{"type":"integer","format":"int32","minimum":1},"codigoCiudad":{"type":"integer","format":"int32","minimum":1},"telefono":{"type":"string","maxLength":15,"minLength":6},"celular":{"type":"string","maxLength":20,"minLength":10},"email":{"type":"string","format":"email"},"codigoCliente":{"type":"string","maxLength":15,"minLength":3}},"required":["naturaleza","nombreRazonSocial","pais","tipoOperacion"]},"EventoSifenDTO":{"type":"object","properties":{"eventoSifenId":{"type":"integer","format":"int64"},"documentoElectronicoId":{"type":"integer","format":"int64"},"contribuyenteId":{"type":"integer","format":"int64"},"ambiente":{"type":"string"},"tipoEvento":{"type":"string"},"estadoEvento":{"type":"string"},"cdc":{"type":"string"},"motivo":{"type":"string"},"protocoloAutorizacion":{"type":"string"},"codigoRespuesta":{"type":"string"},"mensajeRespuesta":{"type":"string"},"fechaCreacion":{"type":"string","format":"date-time"},"fechaProcesamiento":{"type":"string","format":"date-time"},"numeroTimbrado":{"type":"integer","format":"int32"},"establecimiento":{"type":"string"},"puntoExpedicion":{"type":"string"},"numeroInicio":{"type":"string"},"numeroFin":{"type":"string"},"tipoDocumento":{"type":"integer","format":"int32"},"serieNumero":{"type":"string"}}},"CancelacionRequest":{"type":"object","properties":{"motivo":{"type":"string","maxLength":500,"minLength":5}},"required":["motivo"]},"EventoInutilizacionRequest":{"type":"object","properties":{"numeroTimbrado":{"type":"integer","format":"int32"},"establecimiento":{"type":"string","maxLength":3,"minLength":3},"puntoExpedicion":{"type":"string","maxLength":3,"minLength":3},"numeroInicio":{"type":"string","maxLength":7,"minLength":1},"numeroFin":{"type":"string","maxLength":7,"minLength":1},"tipoDocumento":{"type":"integer","format":"int32"},"motivo":{"type":"string","maxLength":500,"minLength":5},"serie":{"type":"string","maxLength":2,"minLength":0}},"required":["establecimiento","motivo","numeroFin","numeroInicio","numeroTimbrado","puntoExpedicion","tipoDocumento"]},"CrearWebhookIntegracionRequest":{"type":"object","example":{"url":"https://erp.ejemplo.com.py/sifende/webhook","eventos":["documento.aprobado","documento.rechazado"]},"properties":{"url":{"type":"string","description":"URL HTTPS pública que recibe los eventos. No se siguen redirects.","example":"https://erp.ejemplo.com.py/sifende/webhook","maxLength":2048,"minLength":0},"eventos":{"type":"array","description":"Eventos a los que se suscribe el webhook.","items":{"type":"string","enum":["documento.aprobado","documento.rechazado","documento.cancelado","lote.procesado"]},"minItems":1}},"required":["eventos","url"]},"EnumValueDTO":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"val":{"type":"integer","format":"int32"},"extra":{"type":"string"}}},"Padron":{"type":"object","description":"Datos de un contribuyente o ciudadano según el padrón de la SET. Los nombres de campo y las enumeraciones son los del receptor de un documento electrónico.","properties":{"numeroDocumento":{"type":"string","description":"RUC base o número de cédula, normalizado: sólo dígitos, sin DV.","example":"80002201"},"tipoContribuyente":{"type":"string","description":"CONTRIBUYENTE si el documento está inscripto como tal; NO_CONTRIBUYENTE si sólo figura como ciudadano.","enum":["CONTRIBUYENTE","NO_CONTRIBUYENTE"],"example":"CONTRIBUYENTE"},"tipoDocumento":{"type":"string","description":"Tipo de documento de identidad; sólo para un no contribuyente.","enum":["CEDULA_PARAGUAYA","PASAPORTE","CEDULA_EXTRANJERA","CARNET_DE_RESIDENCIA","INNOMINADO","TARJETA_DIPLOMATICA","OTRO"],"example":"CEDULA_PARAGUAYA"},"tipoContribuyenteReceptor":{"type":"string","description":"Persona física o jurídica (D207); null para un no contribuyente.","enum":["PERSONA_FISICA","PERSONA_JURIDICA"],"example":"PERSONA_JURIDICA"},"digitoVerificador":{"type":"string","description":"Dígito verificador del RUC.","example":"7"},"nombreRazonSocial":{"type":"string","description":"Razón social o nombre completo.","example":"EMPRESA S.A"},"nombreComercial":{"type":"string"},"email":{"type":"string","description":"Correo electronico"},"estado":{"type":"string","description":"Estado del contribuyente tal como lo informa la SET.","example":"ACTIVO"},"estadoRuc":{"type":"string","description":"Código SET del estado, el mismo que usa el contribuyente en Sifende.","enum":["ACT","SUS","SAD","BLQ","CAN","CDE"],"example":"ACT"},"tipoSociedad":{"$ref":"#/components/schemas/TipoSociedad"},"esPersonaJuridica":{"type":"boolean"},"esEntidadPublica":{"type":"boolean"},"exportador":{"type":"boolean"},"domicilio":{"$ref":"#/components/schemas/Domicilio","description":"Domicilio fiscal con los códigos geográficos de SIFEN, si el padrón lo tiene."},"consultadoEn":{"type":"string","format":"date-time"}}},"TipoSociedad":{"type":"object","properties":{"codigo":{"type":"string","example":"SOCIEDAD_ANONIMA"},"descripcion":{"type":"string","example":"SOCIEDAD ANONIMA"}}},"ApiResponsePadron":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Padron"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"ApiResponseListPlanIntegradorPortalDTO":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlanIntegradorPortalDTO"}},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"PlanIntegradorPortalDTO":{"type":"object","properties":{"planId":{"type":"integer","format":"int64"},"versionId":{"type":"integer","format":"int64"},"codigo":{"type":"string"},"nombre":{"type":"string"},"documentosIncluidos":{"type":"integer","format":"int32"},"precioMensualPyg":{"type":"integer","format":"int64"},"permiteAdicionales":{"type":"boolean"},"precioDocumentoAdicionalPyg":{"type":"integer","format":"int64"}}},"ApiResponsePageDTOClientePortalDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PageDTOClientePortalDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"PageDTOClientePortalDTO":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/ClientePortalDTO"}},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"}}},"ApiResponseClientePortalDetalleDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ClientePortalDetalleDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"ClientePortalDetalleDTO":{"type":"object","properties":{"contribuyenteId":{"type":"integer","format":"int64"},"ruc":{"type":"string"},"dv":{"type":"string"},"razonSocial":{"type":"string"},"nombreFantasia":{"type":"string"},"nivel":{"type":"string","enum":["DIRECTO","RED"]},"estudio":{"$ref":"#/components/schemas/Estudio"},"origen":{"type":"string","enum":["HEREDADA","PORTAL","BACKOFFICE","MIGRACION"]},"fechaAlta":{"type":"string","format":"date-time"},"vigenteDesde":{"type":"string","format":"date-time"},"estadoAlta":{"type":"string","enum":["PENDIENTE_TITULAR","ACTIVO"]},"plan":{"$ref":"#/components/schemas/Plan"},"estadoPago":{"type":"string","enum":["AL_DIA","PENDIENTE","SIN_COBROS"]},"pagos":{"type":"array","items":{"$ref":"#/components/schemas/PagoPeriodo"}},"enlaceSifende":{"type":"string"},"funciones":{"type":"array","items":{"type":"string"}}}},"ApiResponseListWebhookEndpointDTO":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpointDTO"}},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"ApiResponsePageDTOWebhookDeliveryDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PageDTOWebhookDeliveryDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"PageDTOWebhookDeliveryDTO":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDeliveryDTO"}},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"}}},"WebhookDeliveryDTO":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"eventId":{"type":"string","format":"uuid"},"tipoEvento":{"type":"string","example":"documento.aprobado"},"endpointId":{"type":"integer","format":"int64"},"endpointUrl":{"type":"string"},"estado":{"type":"string","enum":["PENDIENTE","ENCOLADA","ENVIANDO","REINTENTANDO","ENTREGADA","FALLIDA","CANCELADA"]},"cantidadIntentos":{"type":"integer","format":"int32"},"ultimoHttpStatus":{"type":["integer","null"],"format":"int32"},"ultimoErrorCodigo":{"type":["string","null"]},"ultimoErrorMensaje":{"type":["string","null"]},"fechaCreacion":{"type":"string","format":"date-time"},"fechaUltimoIntento":{"type":["string","null"],"format":"date-time"},"fechaEntrega":{"type":["string","null"],"format":"date-time"},"fechaFallo":{"type":["string","null"],"format":"date-time"}},"required":["cantidadIntentos","endpointId","endpointUrl","estado","eventId","fechaCreacion","fechaEntrega","fechaFallo","fechaUltimoIntento","id","tipoEvento","ultimoErrorCodigo","ultimoErrorMensaje","ultimoHttpStatus"]},"ApiResponseListWebhookAttemptDTO":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookAttemptDTO"}},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"WebhookAttemptDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"generation":{"type":"integer","format":"int32"},"numeroIntento":{"type":"integer","format":"int32"},"estado":{"type":"string"},"fechaInicio":{"type":"string","format":"date-time"},"fechaFin":{"type":"string","format":"date-time"},"duracionMs":{"type":"integer","format":"int64"},"httpStatus":{"type":"integer","format":"int32"},"errorCodigo":{"type":"string"},"errorMensaje":{"type":"string"},"respuestaFragmento":{"type":"string"}}},"ApiResponseTramiteCertificadoDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TramiteCertificadoDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"CatalogoCertificadoDTO":{"type":"object","properties":{"prestadores":{"type":"array","items":{"$ref":"#/components/schemas/PrestadorDTO"}},"requisitos":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/RequisitoCatalogoDTO"}}}},"marangatuDisponible":{"type":"boolean"}}},"RequisitoCatalogoDTO":{"type":"object","properties":{"tipo":{"type":"string"},"nombre":{"type":"string"},"ayuda":{"type":"string"},"obligatorio":{"type":"boolean"},"disponibleEnMarangatu":{"type":"boolean"}}},"TramiteCertificadoDTO":{"type":"object","properties":{"solicitud":{"$ref":"#/components/schemas/SolicitudCertificadoDTO"},"catalogo":{"$ref":"#/components/schemas/CatalogoCertificadoDTO"},"tipoSugerido":{"type":"string","enum":["UNIPERSONAL","SA","SRL","EAS","ASOCIACION","COOPERATIVA","COMISION_VECINAL"]}}},"ApiResponseListEstablecimientoDTO":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EstablecimientoDTO"}},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"ApiResponseConfiguracionFiscalDTO":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ConfiguracionFiscalDTO"},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"ConfiguracionFiscalDTO":{"type":"object","properties":{"contribuyenteId":{"type":"integer","format":"int64"},"ambiente":{"type":"string"},"certificado":{"$ref":"#/components/schemas/CertificadoInfoDTO"},"timbradoProduccion":{"$ref":"#/components/schemas/TimbradoDTO"},"cscProduccion":{"$ref":"#/components/schemas/CscDTO"},"preflight":{"$ref":"#/components/schemas/PreflightProduccionDTO"}}},"PreflightProduccionDTO":{"type":"object","properties":{"ambienteActual":{"type":"string"},"elegible":{"type":"boolean"},"checks":{"type":"array","items":{"$ref":"#/components/schemas/PreflightCheckDTO"}}}},"ApiKeyDTO":{"type":"object","properties":{"apiKeyId":{"type":"integer","format":"int64"},"nombre":{"type":"string"},"keyPrefix":{"type":"string"},"ambiente":{"type":"string","enum":["DEV","PROD","SANDBOX"]},"prefijoLegacy":{"type":"boolean"},"contribuyenteId":{"type":"integer","format":"int64"},"estaActivo":{"type":"boolean"},"ultimoUso":{"type":"string","format":"date-time"},"expiraEn":{"type":"string","format":"date-time"},"fechaCreacion":{"type":"string","format":"date-time"}}},"ApiResponseListApiKeyDTO":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeyDTO"}},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"ApiResponseListCiudadDTO":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CiudadDTO"}},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"CiudadDTO":{"type":"object","properties":{"ciudadId":{"type":"integer","format":"int32"},"distritoId":{"type":"integer","format":"int32"},"codigo":{"type":"integer","format":"int32"},"nombre":{"type":"string"}}},"ApiResponseListDepartamentoDTO":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DepartamentoDTO"}},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"DepartamentoDTO":{"type":"object","properties":{"departamentoId":{"type":"integer","format":"int32"},"codigo":{"type":"integer","format":"int32"},"nombre":{"type":"string"}}},"ApiResponseListDistritoDTO":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DistritoDTO"}},"timestamp":{"type":"string","format":"date-time"},"errors":{"type":"array","items":{"type":"string"}}}},"DistritoDTO":{"type":"object","properties":{"distritoId":{"type":"integer","format":"int32"},"departamentoId":{"type":"integer","format":"int32"},"codigo":{"type":"integer","format":"int32"},"nombre":{"type":"string"}}},"DocumentoElectronicoStatusDTO":{"type":"object","properties":{"cdc":{"type":"string"},"estado":{"type":"string"},"ambiente":{"type":"string"},"numeroDocumento":{"type":"integer","format":"int64"},"fechaCreacion":{"type":"string","format":"date-time"},"protocoloAutorizacion":{"type":"string"},"mensajeRechazo":{"type":"string"},"itiDe":{"type":"integer","format":"int32"}}},"PlanConsumoDTO":{"type":"object","properties":{"codigoPlan":{"type":"string"},"nombrePlan":{"type":"string"},"inicioPeriodo":{"type":"string","format":"date-time"},"finPeriodo":{"type":"string","format":"date-time"},"documentosIncluidos":{"type":"integer","format":"int64"},"consumoConfirmado":{"type":"integer","format":"int64"},"reservasActivas":{"type":"integer","format":"int64"},"documentosDisponibles":{"type":"integer","format":"int64"},"permiteAdicionales":{"type":"boolean"},"precioDocumentoAdicionalPyg":{"type":["integer","null"],"format":"int64"},"adicionalesFacturables":{"type":"integer","format":"int64"},"costoEstimadoPyg":{"type":"integer","format":"int64"}},"required":["adicionalesFacturables","codigoPlan","consumoConfirmado","costoEstimadoPyg","documentosDisponibles","documentosIncluidos","finPeriodo","inicioPeriodo","nombrePlan","permiteAdicionales","precioDocumentoAdicionalPyg","reservasActivas"]},"PageDTOEventoSifenDTO":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/EventoSifenDTO"}},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"}}},"ActividadEconomica":{"type":"object","properties":{"codigo":{"type":"string"},"descripcion":{"type":"string"}},"required":["codigo","descripcion"]},"ContribuyenteIntegracionDTO":{"type":"object","properties":{"ruc":{"type":"string"},"digitoVerificador":{"type":"string"},"razonSocial":{"type":"string"},"nombreFantasia":{"type":["string","null"]},"tipoContribuyente":{"type":"string","enum":["PERSONA_FISICA","PERSONA_JURIDICA"]},"ambiente":{"type":"string","enum":["DEV","PROD","SANDBOX"]},"actividadesEconomicas":{"type":"array","items":{"$ref":"#/components/schemas/ActividadEconomica"}},"direccion":{"type":["string","null"]},"numeroCasa":{"type":["integer","null"],"format":"int32"},"departamento":{"anyOf":[{"$ref":"#/components/schemas/Ubicacion"},{"type":"null"}]},"distrito":{"anyOf":[{"$ref":"#/components/schemas/Ubicacion"},{"type":"null"}]},"ciudad":{"anyOf":[{"$ref":"#/components/schemas/Ubicacion"},{"type":"null"}]},"telefono":{"type":"string"},"email":{"type":"string"},"timbrado":{"anyOf":[{"$ref":"#/components/schemas/Timbrado"},{"type":"null"}]},"establecimientos":{"type":"array","items":{"$ref":"#/components/schemas/Establecimiento"}},"logoUrl":{"type":["string","null"]},"estadoConfiguracion":{"$ref":"#/components/schemas/EstadoConfiguracion"}},"required":["actividadesEconomicas","ambiente","ciudad","departamento","digitoVerificador","direccion","distrito","email","establecimientos","estadoConfiguracion","logoUrl","nombreFantasia","numeroCasa","razonSocial","ruc","telefono","timbrado","tipoContribuyente"]},"Establecimiento":{"type":"object","properties":{"numeroEstablecimiento":{"type":"integer","format":"int32"},"nombreSucursal":{"type":["string","null"]},"activo":{"type":"boolean"},"puntosExpedicion":{"type":"array","items":{"$ref":"#/components/schemas/PuntoExpedicion"}}},"required":["activo","nombreSucursal","numeroEstablecimiento","puntosExpedicion"]},"EstadoConfiguracion":{"type":"object","properties":{"certificadoConfigurado":{"type":"boolean"},"certificadoVence":{"type":["string","null"],"format":"date"},"certificadoVigente":{"type":"boolean"},"cscConfigurado":{"type":"boolean"},"timbradoVigente":{"type":"boolean"},"direccionConfigurada":{"type":"boolean"},"actividadEconomicaConfigurada":{"type":"boolean"},"listoParaEmitir":{"type":"boolean"}},"required":["actividadEconomicaConfigurada","certificadoConfigurado","certificadoVence","certificadoVigente","cscConfigurado","direccionConfigurada","listoParaEmitir","timbradoVigente"]},"PuntoExpedicion":{"type":"object","properties":{"puntoExpedicion":{"type":"integer","format":"int32"},"activo":{"type":"boolean"}},"required":["activo","puntoExpedicion"]},"Ubicacion":{"type":"object","properties":{"codigo":{"type":"integer","format":"int32"},"descripcion":{"type":"string"}},"required":["codigo","descripcion"]},"WebhookEntregaPaginaDTO":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDeliveryDTO"}},"page":{"type":"integer","format":"int32","description":"Página actual, base 0"},"size":{"type":"integer","format":"int32"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"}},"required":["content","page","size","totalElements","totalPages"]},"ProblemDetail":{"type":"object","description":"Error en formato RFC 9457. Se sirve como `application/problem+json`.","properties":{"type":{"type":"string","description":"URI del tipo de error. Apunta a la página de la documentación que lo explica","example":"https://sifende.com.py/docs/solucion-problemas/validation-error"},"title":{"type":"string","description":"Resumen legible del tipo de error","example":"Error de validación"},"status":{"type":"integer","description":"Código HTTP","example":400},"detail":{"type":"string","description":"Descripción del caso concreto","example":"La solicitud contiene 1 error(es) de validación"},"instance":{"type":"string","description":"Ruta que produjo el error","example":"/api/v1/documento-electronico"},"traceId":{"type":"string","description":"Identificador de la petición. Es el dato que hay que pasarle a soporte","example":"8f1c2b3a4d5e6f70"},"errores":{"type":"object","additionalProperties":{"type":"string"},"description":"Sólo en errores de validación: un mensaje por campo, indexado por el nombre del campo tal como se envió"},"campo":{"type":"string","description":"Campo del request que causó el rechazo, incluido un header cuando corresponda","example":"receptor.tipoContribuyenteReceptor"},"valorRecibido":{"type":"string","description":"Valor que llegó en el request","example":"RUC"},"codigo":{"type":"string","description":"Motivo estable del rechazo, en los errores que lo distinguen del `type`","example":"SOCIO_INACTIVO"},"valoresAceptados":{"type":"array","description":"Sólo en errores de enumeración: los valores válidos, con su descripción"}}}},"responses":{"BadRequest":{"description":"El request no pasó la validación. `errores` trae un mensaje por campo","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"receptorIncompleto":{"summary":"Receptor contribuyente sin los campos que exige un contribuyente","value":{"type":"https://sifende.com.py/docs/solucion-problemas/validation-error","title":"Error de validación","status":400,"detail":"La solicitud contiene 2 error(es) de validación","errores":{"receptor.tipoContribuyenteReceptor":"Tipo de contribuyente receptor es obligatorio para un contribuyente","receptor.digitoVerificador":"Dígito verificador es obligatorio y debe contener un dígito"},"traceId":"8f1c2b3a4d5e6f70"}},"enumInvalido":{"summary":"Valor que no existe en la enumeración. `valoresAceptados` lista los válidos","value":{"type":"https://sifende.com.py/docs/solucion-problemas/invalid-enum-value","title":"Valor de enumeración inválido","status":400,"detail":"El campo 'receptor.tipoDocumento' recibió 'RUC', que no es un valor permitido. Valores aceptados: [CEDULA_PARAGUAYA, PASAPORTE, CEDULA_EXTRANJERA, CARNET_DE_RESIDENCIA, INNOMINADO, TARJETA_DIPLOMATICA, OTRO]","campo":"receptor.tipoDocumento","valorRecibido":"RUC","valoresAceptados":[{"codigo":"CEDULA_PARAGUAYA","descripcion":"Cédula paraguaya"},{"codigo":"PASAPORTE","descripcion":"Pasaporte"}],"traceId":"8f1c2b3a4d5e6f70"}},"formatoInvalido":{"summary":"Tipo de dato equivocado en un campo","value":{"type":"https://sifende.com.py/docs/solucion-problemas/invalid-format","title":"Formato de campo inválido","status":400,"detail":"El campo 'items[0].cantidad' recibió un valor de tipo incorrecto: se esperaba un número decimal","campo":"items[0].cantidad","tipoEsperado":"número decimal","traceId":"8f1c2b3a4d5e6f70"}}}}}},"Unauthorized":{"description":"Falta la API key, está revocada o no corresponde al ambiente. El filtro conserva su error JSON.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"Invalid or expired API key"}},"required":["error"]},"examples":{"apiKeyInvalida":{"value":{"error":"Invalid or expired API key"}}}}}},"NotFound":{"description":"El recurso no existe, o le falta al contribuyente una precondición de emisión","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"timbrado":{"summary":"El contribuyente no tiene timbrado vigente cargado","value":{"type":"https://sifende.com.py/docs/solucion-problemas/timbrado-not-found","title":"Timbrado no encontrado","status":404,"detail":"No hay un timbrado configurado para el contribuyente","traceId":"8f1c2b3a4d5e6f70"}},"documento":{"summary":"El CDC no corresponde a un documento del contribuyente","value":{"type":"https://sifende.com.py/docs/solucion-problemas/documento-electronico-not-found","title":"Documento electrónico no encontrado","status":404,"detail":"No se encontró el documento con CDC 01800123451001001000000122026042710000000006","traceId":"8f1c2b3a4d5e6f70"}},"webhook":{"summary":"El webhook no existe en el ambiente de la API key","value":{"type":"https://sifende.com.py/docs/solucion-problemas/webhook-not-found","title":"Webhook no encontrado","status":404,"detail":"Webhook no encontrado","traceId":"8f1c2b3a4d5e6f70"}}}}}},"UnprocessableEntity":{"description":"El request es válido pero el documento no cumple una regla de SIFEN","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"generacion":{"value":{"type":"https://sifende.com.py/docs/solucion-problemas/documento-electronico-generation-error","title":"Error al generar el documento electrónico","status":422,"detail":"El total del documento no coincide con la suma de los ítems","traceId":"8f1c2b3a4d5e6f70"}}}}}},"EmissionUnprocessableEntity":{"description":"El documento incumple una regla de SIFEN, el timbrado o el número no se pueden usar, o la clave corresponde a otro tipo de operación","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"generacion":{"value":{"type":"https://sifende.com.py/docs/solucion-problemas/documento-electronico-generation-error","title":"Error al generar el documento electrónico","status":422,"detail":"El total del documento no coincide con la suma de los ítems","traceId":"8f1c2b3a4d5e6f70"}},"claveReutilizada":{"summary":"La misma clave fue usada para otro tipo de operación","value":{"type":"https://sifende.com.py/docs/solucion-problemas/idempotency-key-reused","title":"Clave de idempotencia reutilizada","status":422,"detail":"La clave de idempotencia ya fue usada para otro tipo de operación"}},"receptorPublico":{"summary":"TuRUC confirmó que el receptor requiere una operación B2G","value":{"type":"https://sifende.com.py/docs/solucion-problemas/public-recipient-requires-b2g","title":"El receptor público requiere una operación B2G","status":422,"detail":"TuRUC confirmó que el receptor es un organismo o entidad del Estado","errores":{"receptor.tipoOperacion":"Seleccione B2G para un receptor público"},"traceId":"8f1c2b3a4d5e6f70"}},"contratacionPublica":{"summary":"El código de contratación no es anterior a la fecha efectiva","value":{"type":"https://sifende.com.py/docs/solucion-problemas/public-procurement-data-invalid","title":"Datos de contratación pública inválidos","status":422,"detail":"Los datos de contratación pública contradicen la fecha de emisión","errores":{"comprasPublicas.fechaEmisionCodigo":"Fecha de emisión del código debe ser anterior a la fecha efectiva del documento"},"traceId":"8f1c2b3a4d5e6f70"}},"timbradoDistinto":{"summary":"El timbrado informado no es el que Sifende tiene cargado","value":{"type":"https://sifende.com.py/docs/solucion-problemas/timbrado-mismatch","title":"Unprocessable Entity","status":422,"detail":"El timbrado 12345678 no coincide con el timbrado cargado en Sifende para este ambiente (87654321). Revisá el timbrado configurado en tu sistema","traceId":"8f1c2b3a4d5e6f70"}},"numeroRechazado":{"summary":"El número pertenece a un documento rechazado; hay que inutilizarlo","value":{"type":"https://sifende.com.py/docs/solucion-problemas/document-number-requires-voiding","title":"Unprocessable Entity","status":422,"detail":"El número de documento 1234 tiene un documento rechazado (01800123451001001000123422026042710000000006). Inutilizá el número y emití con uno nuevo","cdc":"01800123451001001000123422026042710000000006","traceId":"8f1c2b3a4d5e6f70"}}}}}},"DocumentQuotaExceeded":{"description":"El plan no admite más documentos en el período actual; la solicitud no se ejecutó","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ProblemDetail"},{"type":"object","properties":{"type":{"const":"https://sifende.com.py/docs/solucion-problemas/document-quota-exceeded"},"title":{"const":"Cupo mensual de documentos agotado"},"status":{"const":403},"detail":{"type":"string","description":"Descripción del cupo agotado para el plan efectivo"},"codigoPlan":{"type":"string","description":"Código público del plan efectivo","example":"GRATIS"},"nombrePlan":{"type":"string","description":"Nombre legible del plan efectivo","example":"Gratis"},"documentosIncluidos":{"type":"integer","description":"Documentos incluidos en el período","example":100},"consumoConfirmado":{"type":"integer","description":"Documentos confirmados del período","example":95},"reservasActivas":{"type":"integer","description":"Documentos en proceso que ocupan capacidad","example":5},"documentosDisponibles":{"type":"integer","description":"Capacidad incluida disponible","example":0},"inicioPeriodo":{"type":"string","format":"date-time","description":"Inicio inclusivo del período","example":"2026-08-10T04:00:00Z"},"finPeriodo":{"type":"string","format":"date-time","description":"Fin exclusivo del período","example":"2026-09-10T04:00:00Z"},"accion":{"type":"string","description":"Acción recomendada antes de volver a emitir"},"traceId":{"type":"string","description":"Identificador de la petición. Es el dato que hay que pasarle a soporte"}},"required":["accion","codigoPlan","consumoConfirmado","detail","documentosDisponibles","documentosIncluidos","finPeriodo","inicioPeriodo","nombrePlan","reservasActivas","status","title","traceId","type"]}]},"examples":{"cupoAgotado":{"summary":"Cupo mensual agotado para un plan sin adicionales","value":{"type":"https://sifende.com.py/docs/solucion-problemas/document-quota-exceeded","title":"Cupo mensual de documentos agotado","status":403,"detail":"El plan Gratis tiene ocupados los 100 documentos incluidos del período actual.","codigoPlan":"GRATIS","nombrePlan":"Gratis","documentosIncluidos":100,"consumoConfirmado":95,"reservasActivas":5,"documentosDisponibles":0,"inicioPeriodo":"2026-08-10T04:00:00Z","finPeriodo":"2026-09-10T04:00:00Z","accion":"Esperá a que se libere capacidad o cambiá a un plan que permita documentos adicionales antes de volver a emitir.","traceId":"8f1c2b3a4d5e6f70"}}}}}},"DocumentArchived":{"description":"El documento está conservado, pero fuera del período de acceso del plan actual","content":{"application/problem+json":{"schema":{"type":"object","additionalProperties":false,"properties":{"type":{"const":"https://api.sifende.com.py/problems/document-archived"},"title":{"const":"Documento archivado"},"status":{"const":403},"detail":{"const":"El período de acceso incluido en el plan actual ha finalizado."}},"required":["detail","status","title","type"]},"examples":{"documentoArchivado":{"summary":"El período de acceso del plan actual finalizó","value":{"type":"https://api.sifende.com.py/problems/document-archived","title":"Documento archivado","status":403,"detail":"El período de acceso incluido en el plan actual ha finalizado."}}}}}},"DocumentXmlUnavailable":{"description":"El documento existe pero todavía no tiene XML firmado","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"xmlNoDisponible":{"value":{"type":"https://sifende.com.py/docs/solucion-problemas/documento-xml-not-available","title":"XML no disponible","status":409,"detail":"El documento 01800123451001001000000122026042710000000006 todavía no tiene XML firmado","traceId":"8f1c2b3a4d5e6f70"}}}}}},"InternalError":{"description":"Error inesperado. En métodos que modifican estado el resultado queda indeterminado: consultá el estado antes de reintentar, porque un reintento a ciegas puede duplicar el documento","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"indeterminado":{"value":{"type":"https://sifende.com.py/docs/solucion-problemas/internal-error","title":"Error interno del servidor","status":500,"detail":"Ocurrió un error inesperado y el resultado de la operación es indeterminado: puede haberse aplicado o no. No reintentes el envío sin antes consultar el estado, porque un reintento a ciegas puede duplicar el documento.","resultadoIndeterminado":true,"accion":"Consultá el estado del recurso antes de reenviar. Si no podés determinarlo, contactá a soporte con el traceId.","traceId":"8f1c2b3a4d5e6f70"}}}}}},"KuDePending":{"description":"Preparación pendiente; esta respuesta no es un PDF. Seguir Location, que sólo consulta. Si sigue pendiente después de 2 minutos, repetir una vez la descarga sin soloConsulta.","headers":{"Location":{"description":"Misma ruta con soloConsulta=true","required":true,"schema":{"type":"string","example":"/api/v1/documento-electronico/{cdc}/kude?soloConsulta=true"}},"Retry-After":{"required":true,"schema":{"const":"5"}},"Cache-Control":{"required":true,"schema":{"const":"no-store"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"null"},"estado":{"const":"PENDIENTE"}},"required":["estado","url"]}}}},"KuDeGenerationError":{"description":"No se pudo obtener el KuDE por un error interno. La extensión estado=FALLIDO sólo aparece cuando existe cierre terminal; no depende del HTTP.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"kude-generation-error":{"value":{"type":"https://sifende.com.py/docs/solucion-problemas/kude-generation-error","status":500,"detail":"No se pudo obtener el KuDE por un error interno."}}}}}},"KuDeUnavailable":{"description":"El KuDE no está disponible temporalmente. La extensión estado=FALLIDO sólo aparece cuando existe cierre terminal; no depende del HTTP.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"kude-unavailable":{"value":{"type":"https://sifende.com.py/docs/solucion-problemas/kude-unavailable","status":503,"detail":"El KuDE no está disponible temporalmente."}}}}}},"KuDeNotSupported":{"description":"KuDE no implementado para este tipo de documento.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"kude-not-supported":{"value":{"type":"https://sifende.com.py/docs/solucion-problemas/kude-not-supported","status":501,"detail":"KuDE no implementado para este tipo de documento."}}}}}},"IdempotencyBadRequest":{"description":"El request o Idempotency-Key no pasó la validación","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"receptorIncompleto":{"summary":"Receptor contribuyente sin los campos que exige un contribuyente","value":{"type":"https://sifende.com.py/docs/solucion-problemas/validation-error","title":"Error de validación","status":400,"detail":"La solicitud contiene 2 error(es) de validación","errores":{"receptor.tipoContribuyenteReceptor":"Tipo de contribuyente receptor es obligatorio para un contribuyente","receptor.digitoVerificador":"Dígito verificador es obligatorio y debe contener un dígito"},"traceId":"8f1c2b3a4d5e6f70"}},"enumInvalido":{"summary":"Valor que no existe en la enumeración. `valoresAceptados` lista los válidos","value":{"type":"https://sifende.com.py/docs/solucion-problemas/invalid-enum-value","title":"Valor de enumeración inválido","status":400,"detail":"El campo 'receptor.tipoDocumento' recibió 'RUC', que no es un valor permitido. Valores aceptados: [CEDULA_PARAGUAYA, PASAPORTE, CEDULA_EXTRANJERA, CARNET_DE_RESIDENCIA, INNOMINADO, TARJETA_DIPLOMATICA, OTRO]","campo":"receptor.tipoDocumento","valorRecibido":"RUC","valoresAceptados":[{"codigo":"CEDULA_PARAGUAYA","descripcion":"Cédula paraguaya"},{"codigo":"PASAPORTE","descripcion":"Pasaporte"}],"traceId":"8f1c2b3a4d5e6f70"}},"formatoInvalido":{"summary":"Tipo de dato equivocado en un campo","value":{"type":"https://sifende.com.py/docs/solucion-problemas/invalid-format","title":"Formato de campo inválido","status":400,"detail":"El campo 'items[0].cantidad' recibió un valor de tipo incorrecto: se esperaba un número decimal","campo":"items[0].cantidad","tipoEsperado":"número decimal","traceId":"8f1c2b3a4d5e6f70"}},"claveInvalida":{"summary":"Clave vacía, repetida o fuera del formato permitido","value":{"type":"https://sifende.com.py/docs/solucion-problemas/validation-error","title":"Clave de idempotencia inválida","status":400,"detail":"Idempotency-Key debe enviarse una sola vez","campo":"Idempotency-Key"}}}}}},"IdempotencyConflict":{"description":"La operación sigue en curso, su resultado es indeterminado o el replay expiró","headers":{"Retry-After":{"description":"Segundos antes del próximo intento; sólo se envía para idempotency-in-progress","schema":{"type":"integer","description":"Segundos de espera","example":2}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"enProceso":{"summary":"La operación sigue en curso; sólo este caso incluye Retry-After","value":{"type":"https://sifende.com.py/docs/solucion-problemas/idempotency-in-progress","title":"Solicitud idempotente en proceso","status":409,"detail":"Ya existe una solicitud con esta clave en proceso; reintentá después del intervalo indicado"}},"outcomeDesconocido":{"summary":"El efecto externo no pudo determinarse y no debe reenviarse","value":{"type":"https://sifende.com.py/docs/solucion-problemas/idempotency-outcome-unknown","title":"Resultado idempotente indeterminado","status":409,"detail":"El resultado de la operación es indeterminado; no vuelvas a enviar la operación"}},"claveExpirada":{"summary":"El replay ya no está disponible y la clave permanece reservada","value":{"type":"https://sifende.com.py/docs/solucion-problemas/idempotency-key-expired","title":"Clave de idempotencia expirada","status":409,"detail":"El resultado asociado a la clave de idempotencia expiró y ya no puede reproducirse; la clave no puede reutilizarse"}}}}}},"EmissionConflict":{"description":"El número de documento no está disponible, o la operación sigue en curso, su resultado es indeterminado o el replay expiró","headers":{"Retry-After":{"description":"Segundos antes del próximo intento; sólo se envía para idempotency-in-progress","schema":{"type":"integer","description":"Segundos de espera","example":2}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"numeroEnUso":{"summary":"El número ya pertenece a otro documento","value":{"type":"https://sifende.com.py/docs/solucion-problemas/document-number-in-use","title":"Conflict","status":409,"detail":"El número de documento 1234 ya está en uso por el documento 01800123451001001000123422026042710000000006. Estado del documento: APROBADO.","cdc":"01800123451001001000123422026042710000000006","traceId":"8f1c2b3a4d5e6f70"}},"numeroInutilizado":{"summary":"El número fue inutilizado ante SIFEN","value":{"type":"https://sifende.com.py/docs/solucion-problemas/document-number-voided","title":"Conflict","status":409,"detail":"El número de documento 1234 fue inutilizado ante SIFEN y no puede volver a usarse. Asigná un número nuevo","traceId":"8f1c2b3a4d5e6f70"}},"enProceso":{"summary":"La operación sigue en curso; sólo este caso incluye Retry-After","value":{"type":"https://sifende.com.py/docs/solucion-problemas/idempotency-in-progress","title":"Solicitud idempotente en proceso","status":409,"detail":"Ya existe una solicitud con esta clave en proceso; reintentá después del intervalo indicado"}},"outcomeDesconocido":{"summary":"El efecto externo no pudo determinarse y no debe reenviarse","value":{"type":"https://sifende.com.py/docs/solucion-problemas/idempotency-outcome-unknown","title":"Resultado idempotente indeterminado","status":409,"detail":"El resultado de la operación es indeterminado; no vuelvas a enviar la operación"}},"claveExpirada":{"summary":"El replay ya no está disponible y la clave permanece reservada","value":{"type":"https://sifende.com.py/docs/solucion-problemas/idempotency-key-expired","title":"Clave de idempotencia expirada","status":409,"detail":"El resultado asociado a la clave de idempotencia expiró y ya no puede reproducirse; la clave no puede reutilizarse"}}}}}},"IdempotencyKeyReused":{"description":"La misma clave fue usada para otro tipo de operación","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"claveReutilizada":{"value":{"type":"https://sifende.com.py/docs/solucion-problemas/idempotency-key-reused","title":"Clave de idempotencia reutilizada","status":422,"detail":"La clave de idempotencia ya fue usada para otro tipo de operación"}}}}}},"IdempotencyUnavailable":{"description":"SIFEN no confirmó el resultado","headers":{"Retry-After":{"description":"Segundos antes del próximo intento; sólo se envía para idempotency-upstream-unknown","schema":{"type":"integer","description":"Segundos de espera","example":2}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"upstreamDesconocido":{"summary":"SIFEN no confirmó el resultado; se debe reintentar con la misma clave","value":{"type":"https://sifende.com.py/docs/solucion-problemas/idempotency-upstream-unknown","title":"Resultado SIFEN no confirmado","status":503,"detail":"No se pudo confirmar el resultado en SIFEN; reintentá con la misma Idempotency-Key después del intervalo indicado"}}}}}},"IntegradorUnauthorized":{"description":"Falta la key integradora `ik_`, no existe o está revocada.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"const":"API key integradora inválida o revocada"}},"required":["error"]},"examples":{"keyIntegradoraInvalida":{"value":{"error":"API key integradora inválida o revocada"}}}}}},"IntegradorForbidden":{"description":"El socio dueño de la key no es integrador","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"soloIntegrador":{"value":{"type":"https://sifende.com.py/docs/solucion-problemas/solo-integrador","title":"Sólo disponible para un integrador","status":403,"detail":"La API integradora es sólo para integradores","codigo":"SOLO_INTEGRADOR","traceId":"8f1c2b3a4d5e6f70"}}}}}},"IntegradorNotFound":{"description":"El cliente no existe o no está atribuido al integrador de la key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"clienteNoEncontrado":{"value":{"type":"https://sifende.com.py/docs/solucion-problemas/resource-not-found","title":"Contribuyente no encontrado","status":404,"detail":"No existe el contribuyente 1234","codigo":"CONTRIBUYENTE_NO_ENCONTRADO","traceId":"8f1c2b3a4d5e6f70"}}}}}},"IntegradorConflict":{"description":"El estado del integrador o del cliente no permite la operación. Ver `codigo`","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"},"examples":{"socioInactivo":{"summary":"El integrador está inactivo: toda ruta responde así","value":{"type":"https://sifende.com.py/docs/solucion-problemas/socio-inactivo","title":"El socio está inactivo","status":409,"detail":"El integrador está inactivo","codigo":"SOCIO_INACTIVO","traceId":"8f1c2b3a4d5e6f70"}},"titularYaAsignado":{"summary":"El cliente ya tiene titular","value":{"type":"https://sifende.com.py/docs/solucion-problemas/titular-ya-asignado","title":"La empresa ya tiene titular","status":409,"detail":"La empresa ya tiene un titular","codigo":"TITULAR_YA_ASIGNADO","traceId":"8f1c2b3a4d5e6f70"}}}}}}},"securitySchemes":{"apiKey":{"type":"http","description":"API key de Sifende en el header `Authorization: Bearer {api-key}`.\nAdemás de autenticar, fija el contribuyente emisor y un ambiente inmutable DEV, PROD o\nSANDBOX: por eso ninguno de los dos se envía en el body.\nEn PROD, la clave requiere un plan que incluya la API de integración; si no, toda ruta\nresponde 403 `plan-operation-not-allowed`, salvo las bajas: revocar la propia clave\n(`DELETE /api/v1/contribuyente/api-key`) y eliminar un webhook.\n","scheme":"bearer"},"integradorKey":{"type":"http","description":"Key integradora en el header `Authorization: Bearer ik_…`. La crea un ADMIN del integrador\nen el portal de socios. No tiene ambiente ni contribuyente: alcanza a todos los clientes\natribuidos al integrador, y los recursos con ambiente lo reciben en el body.\nNo abre la API de emisión, y una API key de contribuyente no abre estas rutas.\n","scheme":"bearer"}}}}