# Factio ## Docs - [Change Password](https://docs.factioapp.com/api-reference/authentication/change-password.md): Change password for a user with local credentials. - [Complete Onboarding Company](https://docs.factioapp.com/api-reference/authentication/complete-onboarding-company.md): Bootstrap tenant + issuer for a user who finished auth but has no tenant yet. - [Create Api Key](https://docs.factioapp.com/api-reference/authentication/create-api-key.md): Create a new API key for the tenant. - [Finalize Onboarding](https://docs.factioapp.com/api-reference/authentication/finalize-onboarding.md): Materialize tenant setup from onboarding drafts and issue the operational JWT. - [Get Current User Profile](https://docs.factioapp.com/api-reference/authentication/get-current-user-profile.md): Return authenticated user profile metadata for UI display. - [Get Google Auth Config](https://docs.factioapp.com/api-reference/authentication/get-google-auth-config.md): Return public Google OAuth config needed by the web app. - [Get Onboarding Draft](https://docs.factioapp.com/api-reference/authentication/get-onboarding-draft.md): Get current onboarding draft for the authenticated pre-tenant user. - [Google Oauth Callback](https://docs.factioapp.com/api-reference/authentication/google-oauth-callback.md): Handle Google OAuth 2.0 callback. - [Link Google Account](https://docs.factioapp.com/api-reference/authentication/link-google-account.md): Link a Google account to the currently authenticated user. - [List Api Keys](https://docs.factioapp.com/api-reference/authentication/list-api-keys.md): List all API keys for the tenant. - [Login Local User](https://docs.factioapp.com/api-reference/authentication/login-local-user.md): Authenticate a local user and issue a JWT. - [Refresh Token](https://docs.factioapp.com/api-reference/authentication/refresh-token.md): Re-issue a JWT for the currently authenticated user, extending expiry. - [Register Local User](https://docs.factioapp.com/api-reference/authentication/register-local-user.md): Register a local user with optional tenant bootstrap. - [Revoke Api Key](https://docs.factioapp.com/api-reference/authentication/revoke-api-key.md): Revoke an API key. - [Save Onboarding Certificate Draft](https://docs.factioapp.com/api-reference/authentication/save-onboarding-certificate-draft.md): Persist certificate step onboarding draft and current wizard step. - [Save Onboarding Company Draft](https://docs.factioapp.com/api-reference/authentication/save-onboarding-company-draft.md): Persist company step onboarding draft and current wizard step. - [Save Onboarding Establishment Draft](https://docs.factioapp.com/api-reference/authentication/save-onboarding-establishment-draft.md): Persist establishment step onboarding draft and current wizard step. - [Select Tenant After Login](https://docs.factioapp.com/api-reference/authentication/select-tenant-after-login.md): Complete tenant selection after credentials were already validated. - [Update Api Key](https://docs.factioapp.com/api-reference/authentication/update-api-key.md): Update an API key's name or scopes. - [Upload Onboarding Certificate](https://docs.factioapp.com/api-reference/authentication/upload-onboarding-certificate.md): Upload and validate the onboarding certificate draft binary. - [Validate Ruc](https://docs.factioapp.com/api-reference/authentication/validate-ruc.md): Validate an issuer RUC against SRI catastro and return contributor data. - [Archive Buyer](https://docs.factioapp.com/api-reference/buyers/archive-buyer.md): Archive a buyer profile (soft delete). - [Create a buyer profile](https://docs.factioapp.com/api-reference/buyers/create-a-buyer-profile.md): Create a new buyer profile for the current tenant. - [Deactivate a buyer profile](https://docs.factioapp.com/api-reference/buyers/deactivate-a-buyer-profile.md): Soft-delete a buyer profile (marks it inactive). - [Get a buyer profile by ID](https://docs.factioapp.com/api-reference/buyers/get-a-buyer-profile-by-id.md): Retrieve a single buyer profile by its UUID. - [List buyer profiles](https://docs.factioapp.com/api-reference/buyers/list-buyer-profiles.md): Return a paginated list of buyer profiles for the current tenant. - [Look up a buyer by RUC or cédula](https://docs.factioapp.com/api-reference/buyers/look-up-a-buyer-by-ruc-or-cédula.md): Three-step buyer resolution: tenant profile → SRI cache → live SRI lookup. - [Restore Buyer](https://docs.factioapp.com/api-reference/buyers/restore-buyer.md): Restore an archived buyer profile. - [Update a buyer profile](https://docs.factioapp.com/api-reference/buyers/update-a-buyer-profile.md): Apply partial updates to a buyer profile. - [Get Certificate](https://docs.factioapp.com/api-reference/certificates/get-certificate.md): Get a single Certificate by ID. - [List Certificates](https://docs.factioapp.com/api-reference/certificates/list-certificates.md): List certificates for an Issuer. - [Revoke Certificate](https://docs.factioapp.com/api-reference/certificates/revoke-certificate.md): Revoke a certificate. - [Upload Certificate](https://docs.factioapp.com/api-reference/certificates/upload-certificate.md): Upload a new .p12 certificate for an Issuer. - [Validate Certificate](https://docs.factioapp.com/api-reference/certificates/validate-certificate.md): Validate a .p12 certificate without persisting it. - [Get Operational Readiness](https://docs.factioapp.com/api-reference/dashboard/get-operational-readiness.md): Get operational readiness status for the current tenant. - [Authorize Document](https://docs.factioapp.com/api-reference/documents/authorize-document.md): Synchronously query SRI for authorization status and update the document. - [Cancel Document](https://docs.factioapp.com/api-reference/documents/cancel-document.md): Request online cancellation of an authorized document. - [Create Credit Note](https://docs.factioapp.com/api-reference/documents/create-credit-note.md): Create a DRAFT credit note from an authorized invoice. - [Create Document Draft](https://docs.factioapp.com/api-reference/documents/create-document-draft.md): Create a document in DRAFT state without reserving a sequential. - [Delete Document Draft](https://docs.factioapp.com/api-reference/documents/delete-document-draft.md): Delete a document in DRAFT status permanently. - [Download Authorized Xml](https://docs.factioapp.com/api-reference/documents/download-authorized-xml.md) - [Download Ride Pdf](https://docs.factioapp.com/api-reference/documents/download-ride-pdf.md) - [Emitir una factura](https://docs.factioapp.com/api-reference/documents/emitir-una-factura.md): Inicia el proceso de emisión de una factura electrónica. La emisión es asíncrona: el endpoint retorna `202 Accepted` inmediatamente con un `tracking_id`. El estado final se consulta por polling o webhook. - [Get Document](https://docs.factioapp.com/api-reference/documents/get-document.md): Retrieve the current state of a Document with full detail. - [Get Document Status History](https://docs.factioapp.com/api-reference/documents/get-document-status-history.md): Retrieve the complete status history of a Document. - [Get Documents Summary](https://docs.factioapp.com/api-reference/documents/get-documents-summary.md): Return aggregated metrics for the document list header. - [List Documents](https://docs.factioapp.com/api-reference/documents/list-documents.md): List documents for the current tenant with optional filtering and pagination. - [Mark Document Failed](https://docs.factioapp.com/api-reference/documents/mark-document-failed.md): Permanently fail a document that cannot be recovered. - [Patch Document Draft Endpoint](https://docs.factioapp.com/api-reference/documents/patch-document-draft-endpoint.md): Replace lines/taxes and recalculate totals on a DRAFT document. - [Reconcile Document](https://docs.factioapp.com/api-reference/documents/reconcile-document.md): Query SRI to resolve a document stuck in an ambiguous state. - [Redispatch Document](https://docs.factioapp.com/api-reference/documents/redispatch-document.md): Manually re-dispatch an eligible document through outbox → queue → worker. - [Resend Document Email](https://docs.factioapp.com/api-reference/documents/resend-document-email.md): Resend the authorized document email to the customer or override address. - [Retry Document](https://docs.factioapp.com/api-reference/documents/retry-document.md): Manually retry a document stuck in an error state. - [Submit Document](https://docs.factioapp.com/api-reference/documents/submit-document.md): Submit a DRAFT document or re-submit a DEVUELTA document to SRI. - [Archive Establishment](https://docs.factioapp.com/api-reference/establishments/archive-establishment.md): Archive an establishment (soft delete). - [Create Emission Point](https://docs.factioapp.com/api-reference/establishments/create-emission-point.md): Create a new EmissionPoint for an Establishment. - [Create Establishment](https://docs.factioapp.com/api-reference/establishments/create-establishment.md): Create a new Establishment for an Issuer. - [Get Emission Point](https://docs.factioapp.com/api-reference/establishments/get-emission-point.md): Get a single EmissionPoint by ID. - [Get Establishment](https://docs.factioapp.com/api-reference/establishments/get-establishment.md): Get a single Establishment by ID. - [List Emission Points](https://docs.factioapp.com/api-reference/establishments/list-emission-points.md): List EmissionPoints for an Establishment. - [List Establishments](https://docs.factioapp.com/api-reference/establishments/list-establishments.md): List Establishments for an Issuer. - [Restore Establishment](https://docs.factioapp.com/api-reference/establishments/restore-establishment.md): Restore an archived establishment. - [Update Emission Point](https://docs.factioapp.com/api-reference/establishments/update-emission-point.md): Update or deactivate an EmissionPoint. - [Update Establishment](https://docs.factioapp.com/api-reference/establishments/update-establishment.md): Update or deactivate an Establishment. - [Archive Issuer](https://docs.factioapp.com/api-reference/issuers/archive-issuer.md): Archive an issuer (soft delete). - [Create Issuer](https://docs.factioapp.com/api-reference/issuers/create-issuer.md): Create a new Issuer. - [Get Issuer](https://docs.factioapp.com/api-reference/issuers/get-issuer.md): Get a single Issuer by ID. - [List Issuers](https://docs.factioapp.com/api-reference/issuers/list-issuers.md): List Issuers for the active tenant. - [Lookup Issuer Taxpayer](https://docs.factioapp.com/api-reference/issuers/lookup-issuer-taxpayer.md) - [Restore Issuer](https://docs.factioapp.com/api-reference/issuers/restore-issuer.md): Restore an archived issuer. - [Update Issuer](https://docs.factioapp.com/api-reference/issuers/update-issuer.md): Update or deactivate an Issuer. - [Archive a product/service catalog record](https://docs.factioapp.com/api-reference/products/archive-a-productservice-catalog-record.md) - [Create a product/service catalog record](https://docs.factioapp.com/api-reference/products/create-a-productservice-catalog-record.md) - [Get a product/service catalog record](https://docs.factioapp.com/api-reference/products/get-a-productservice-catalog-record.md) - [List and search product/service catalog records](https://docs.factioapp.com/api-reference/products/list-and-search-productservice-catalog-records.md) - [Update a product/service catalog record](https://docs.factioapp.com/api-reference/products/update-a-productservice-catalog-record.md) - [Health Check](https://docs.factioapp.com/api-reference/system/health-check.md): Health check endpoint. - [Root](https://docs.factioapp.com/api-reference/system/root.md): Root endpoint with API information. - [Delete Member](https://docs.factioapp.com/api-reference/tenant/delete-member.md) - [Get Tenant](https://docs.factioapp.com/api-reference/tenant/get-tenant.md) - [Get Tenant Members](https://docs.factioapp.com/api-reference/tenant/get-tenant-members.md) - [Invite Member](https://docs.factioapp.com/api-reference/tenant/invite-member.md) - [Update Member](https://docs.factioapp.com/api-reference/tenant/update-member.md) - [Update Tenant](https://docs.factioapp.com/api-reference/tenant/update-tenant.md) - [Autenticación](https://docs.factioapp.com/authentication.md): Cómo autenticar tus requests a la API de Factio - [Entornos](https://docs.factioapp.com/environments.md): Sandbox y Producción — cuándo usar cada uno - [Manejo de errores](https://docs.factioapp.com/errors.md): Catálogo de errores de la API de Factio y cómo manejarlos - [Consultar Estado](https://docs.factioapp.com/guides/check-status.md): Guía: cómo consultar el estado de autorización - [Emitir Nota de Crédito](https://docs.factioapp.com/guides/emit-credit-note.md): Guía paso a paso para emitir nota de crédito - [Emitir Factura](https://docs.factioapp.com/guides/emit-invoice.md): Guía paso a paso para emitir factura - [Manejar Rechazos](https://docs.factioapp.com/guides/handle-rejections.md): Guía: qué hacer si el SRI rechaza un documento - [Subir Certificado](https://docs.factioapp.com/guides/upload-certificate.md): Guía: subir certificado .p12 - [Idempotencia](https://docs.factioapp.com/idempotency.md): Cómo usar idempotency_key para evitar duplicados - [Bienvenido a Factio](https://docs.factioapp.com/introduction.md): API headless de facturación electrónica SRI Ecuador - [Quickstart](https://docs.factioapp.com/quickstart.md): 5 minutos para emitir tu primera factura - [Ciclo de vida de un comprobante](https://docs.factioapp.com/sri-lifecycle.md): Cómo el SRI procesa los documentos electrónicos y qué significa cada estado - [Webhooks](https://docs.factioapp.com/webhooks.md): Setup de webhooks para eventos de autorización SRI ## OpenAPI Specs - [openapi](https://docs.factioapp.com/openapi.json)