La respuesta de POST /documents ya trae el resultado del SRI. Consulta el
estado después cuando el comprobante quedó pendiente, o cuando necesites
recuperar sus datos.
Las notificaciones por webhook todavía no están disponibles. Por ahora, usa la
respuesta de POST /documents y, si hace falta, consulta el documento.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Factio","colors":{"primary":"#0F6FFF","light":"#3B8EFF","dark":"#0047CC"},"logo":{"light":"https://mintcdn.com/me-94224791/5bVkgcL-lfIQwY19/logo/factio-light.svg?fit=max\u0026auto=format\u0026n=5bVkgcL-lfIQwY19\u0026q=85\u0026s=9425e17ca9555aa016ad9333f09072b1","dark":"https://mintcdn.com/me-94224791/5bVkgcL-lfIQwY19/logo/factio-dark.svg?fit=max\u0026auto=format\u0026n=5bVkgcL-lfIQwY19\u0026q=85\u0026s=c8a58d6e201fc17ea18bbb93f40fc6c4","href":"https://factioapp.com"},"favicon":"https://mintcdn.com/me-94224791/5bVkgcL-lfIQwY19/favicon.png?fit=max\u0026auto=format\u0026n=5bVkgcL-lfIQwY19\u0026q=85\u0026s=dc2a0f2d4bdcdd41c0a99318ba4a6413","api":{"playground":{"display":"interactive"}},"variables":{"API_PRODUCTION_URL":"https://api.factioapp.com","API_STAGING_URL":"https://api.staging.factioapp.com","APP_DOMAIN":"https://factioapp.com","WEB_DOMAIN":"https://factioapp.com","DOCS_DOMAIN":"https://docs.factioapp.com"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"me-94224791","hasAudioNarration":false,"actualSubdomain":"me-94224791","customDomains":["docs.factioapp.com"],"gitSource":{"type":"github","owner":"rommel96","repo":"factio-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adadc96fa05280e66cb96eb","collectionId":"3a57dcf4-8616-4b38-a4ba-be618591770d","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adadc96fa05280e66cb96eb"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6adadc96fa05280e66cb96eb","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"default","tag":"Referencia API","count":88},{"language":"default","tag":"Authentication","count":21},{"language":"default","tag":"documents","count":21},{"language":"default","tag":"Guías","count":17},{"language":"default","tag":"establishments","count":11},{"language":"default","tag":"Buyers","count":8},{"language":"default","tag":"issuers","count":8},{"language":"default","tag":"tenant","count":6},{"language":"default","tag":"certificates","count":5},{"language":"default","tag":"Products","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"guides/check-status","slug":"/guides/check-status","pageMetadata":{"title":"Consultar Estado","description":"Guía: cómo consultar el estado de autorización","href":"/guides/check-status"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Guía: cómo consultar el estado de autorización\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`La respuesta de `,_jsx(_components.code,{children:`POST /documents`}),` ya trae el resultado del SRI. Consulta el\nestado después cuando el comprobante quedó pendiente, o cuando necesites\nrecuperar sus datos.`]}),`\n`,_jsx(Heading,{level:`2`,id:`consultar-un-documento`,children:`Consultar un documento`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.factioapp.com/documents/TU_DOCUMENT_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-Key: fac_TU_API_KEY\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Campos principales de la respuesta:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`21`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0f6c1d52-8a3e-4b7a-9c21-5d4e7b8a1f90\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"document_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sequential\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"000000001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"access_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2010202601179214673900110010010000000011234567811\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AUTHORIZED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"authorization_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2010202601179214673900110010010000000011234567811\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"authorization_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-20T15:30:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sri_environment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TEST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"115.00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sri_response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"authorization_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2010202601179214673900110010010000000011234567811\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"authorization_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-20T15:30:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"messages\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"artifacts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"xml_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/documents/0f6c1d52-8a3e-4b7a-9c21-5d4e7b8a1f90/xml\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pdf_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/documents/0f6c1d52-8a3e-4b7a-9c21-5d4e7b8a1f90/ride\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ride_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/documents/0f6c1d52-8a3e-4b7a-9c21-5d4e7b8a1f90/ride\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Los mensajes del SRI están en `,_jsx(_components.code,{children:`sri_response.messages`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`estados`,children:`Estados`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.th,{children:`Significado`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DRAFT`})}),_jsx(_components.td,{children:`Borrador. No se envió al SRI.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`SUBMITTED_TO_SRI`})}),_jsx(_components.td,{children:`En proceso de envío al SRI.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PENDING_AUTHORIZATION`})}),_jsx(_components.td,{children:`El SRI todavía no confirmó la autorización.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AUTHORIZED`})}),_jsxs(_components.td,{children:[`Autorizado. `,_jsx(_components.strong,{children:`Estado final exitoso.`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DEVUELTA`})}),_jsx(_components.td,{children:`El SRI lo devolvió en la recepción.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`REJECTED`})}),_jsx(_components.td,{children:`El SRI no lo autorizó.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CANCELLED`})}),_jsx(_components.td,{children:`Anulado.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VOIDED_BY_NC`})}),_jsx(_components.td,{children:`Anulado por una nota de crédito.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`descargar-el-xml-y-el-ride`,children:`Descargar el XML y el RIDE`}),`\n`,_jsxs(_components.p,{children:[`Las rutas de `,_jsx(_components.code,{children:`artifacts`}),` son relativas a la API y redirigen a una URL de\ndescarga temporal. Usa `,_jsx(_components.code,{children:`-L`}),` para seguir la redirección:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -L`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.factioapp.com/documents/TU_DOCUMENT_ID/xml`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-Key: fac_TU_API_KEY\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -o`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` comprobante.xml`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -L`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.factioapp.com/documents/TU_DOCUMENT_ID/ride`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-API-Key: fac_TU_API_KEY\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -o`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` comprobante.pdf`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Si un archivo todavía no existe, su campo en `,_jsx(_components.code,{children:`artifacts`}),` es `,_jsx(_components.code,{children:`null`}),`.`]}),`\n`,_jsxs(Heading,{level:`2`,id:`si-queda-en-pending_authorization`,children:[`Si queda en `,_jsx(_components.code,{children:`PENDING_AUTHORIZATION`})]}),`\n`,_jsx(_components.p,{children:`Factio no vuelve a consultar al SRI automáticamente. Para resolverlo:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Desde el panel:`}),` abre el comprobante y usa `,_jsx(_components.strong,{children:`Consultar SRI`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Si integras solo por API:`}),` la consulta al SRI todavía no está disponible\ncon API Key. Escríbenos a `,_jsx(_components.a,{href:`mailto:[email protected]`,children:`[email protected]`}),` con el `,_jsx(_components.code,{children:`id`}),` del documento.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`No emitas un comprobante nuevo para “reintentar” uno pendiente: el SRI pudo\nhaberlo autorizado. Consulta primero su estado.`})}),`\n`,_jsx(Heading,{level:`2`,id:`webhooks`,children:`Webhooks`}),`\n`,_jsxs(_components.p,{children:[`Las notificaciones por webhook todavía no están disponibles. Por ahora, usa la\nrespuesta de `,_jsx(_components.code,{children:`POST /documents`}),` y, si hace falta, consulta el documento.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Consultar Estado","description":"Guía: cómo consultar el estado de autorización","href":"/guides/check-status"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Consultar un documento","slug":"consultar-un-documento","depth":2,"children":[]},{"title":"Estados","slug":"estados","depth":2,"children":[]},{"title":"Descargar el XML y el RIDE","slug":"descargar-el-xml-y-el-ride","depth":2,"children":[]},{"title":"Si queda en PENDING_AUTHORIZATION","slug":"si-queda-en-pending_authorization","depth":2,"children":[]},{"title":"Webhooks","slug":"webhooks","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"me-94224791","siteName":"Factio","title":"Consultar Estado - Factio","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-23T04:03:41.389Z","originalFileLocation":"guides/check-status.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Guía: cómo consultar el estado de autorización\">\u003cmeta data-mint-head name=\"application-name\" content=\"Factio\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintcdn.com/me-94224791/5bVkgcL-lfIQwY19/favicon.png?fit=max\u0026amp;auto=format\u0026amp;n=5bVkgcL-lfIQwY19\u0026amp;q=85\u0026amp;s=dc2a0f2d4bdcdd41c0a99318ba4a6413\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintcdn.com/me-94224791/5bVkgcL-lfIQwY19/favicon.png?fit=max\u0026amp;auto=format\u0026amp;n=5bVkgcL-lfIQwY19\u0026amp;q=85\u0026amp;s=dc2a0f2d4bdcdd41c0a99318ba4a6413\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintcdn.com/me-94224791/5bVkgcL-lfIQwY19/favicon.png?fit=max\u0026amp;auto=format\u0026amp;n=5bVkgcL-lfIQwY19\u0026amp;q=85\u0026amp;s=dc2a0f2d4bdcdd41c0a99318ba4a6413\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://mintcdn.com/me-94224791/5bVkgcL-lfIQwY19/favicon.png?fit=max\u0026amp;auto=format\u0026amp;n=5bVkgcL-lfIQwY19\u0026amp;q=85\u0026amp;s=dc2a0f2d4bdcdd41c0a99318ba4a6413\">\u003cmeta data-mint-head property=\"og:title\" content=\"Consultar Estado - Factio\">\u003cmeta data-mint-head property=\"og:description\" content=\"Guía: cómo consultar el estado de autorización\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Factio\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.factioapp.com/guides/check-status\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://me-94224791.mintlify.app/_mintlify/api/og/v2?division=Gu%C3%ADas\u0026amp;title=Consultar+Estado\u0026amp;description=Gu%C3%ADa%3A+c%C3%B3mo+consultar+el+estado+de+autorizaci%C3%B3n\u0026amp;theme=e04c22958a665de58c7f2931\u0026amp;signature=a82f79ede76c97f6412a5aa1e344e6e75edca864459efc48947452c56ca87827\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Consultar Estado - Factio\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Guía: cómo consultar el estado de autorización\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://me-94224791.mintlify.app/_mintlify/api/og/v2?division=Gu%C3%ADas\u0026amp;title=Consultar+Estado\u0026amp;description=Gu%C3%ADa%3A+c%C3%B3mo+consultar+el+estado+de+autorizaci%C3%B3n\u0026amp;theme=e04c22958a665de58c7f2931\u0026amp;signature=a82f79ede76c97f6412a5aa1e344e6e75edca864459efc48947452c56ca87827\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/me-94224791/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Factio\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F6FFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.factioapp.com/guides/check-status\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/check-status.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.factioapp.com/#organization\",\"name\":\"Factio\",\"url\":\"https://docs.factioapp.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/me-94224791/5bVkgcL-lfIQwY19/logo/factio-light.svg?fit=max\u0026auto=format\u0026n=5bVkgcL-lfIQwY19\u0026q=85\u0026s=9425e17ca9555aa016ad9333f09072b1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.factioapp.com#website\",\"name\":\"Factio\",\"url\":\"https://docs.factioapp.com\",\"publisher\":{\"@id\":\"https://docs.factioapp.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.factioapp.com/guides/check-status#webpage\",\"url\":\"https://docs.factioapp.com/guides/check-status\",\"name\":\"Consultar Estado\",\"description\":\"Guía: cómo consultar el estado de autorización\",\"dateModified\":\"2026-10-23T04:03:41.389Z\",\"isPartOf\":{\"@id\":\"https://docs.factioapp.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.factioapp.com/guides/check-status#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.factioapp.com/guides/check-status#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guías\",\"item\":\"https://docs.factioapp.com/guides/emit-invoice\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Consultar Estado\",\"item\":\"https://docs.factioapp.com/guides/check-status\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.factioapp.com/guides/check-status#article\",\"headline\":\"Consultar Estado\",\"name\":\"Consultar Estado\",\"description\":\"Guía: cómo consultar el estado de autorización\",\"url\":\"https://docs.factioapp.com/guides/check-status\",\"mainEntityOfPage\":{\"@id\":\"https://docs.factioapp.com/guides/check-status#webpage\"},\"dateModified\":\"2026-10-23T04:03:41.389Z\",\"publisher\":{\"@id\":\"https://docs.factioapp.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.factioapp.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Factio\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Factio","nav":{"global":null,"tabs":[{"tab":"Guías","groups":[{"group":"Introducción","pages":[{"title":"Bienvenido a Factio","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Autenticación","href":"/authentication"},{"title":"Entornos","href":"/environments"}]},{"group":"Conceptos clave","pages":[{"title":"Ciclo de vida de un comprobante","href":"/sri-lifecycle"},{"title":"Idempotencia","href":"/idempotency"},{"title":"Manejo de errores","href":"/errors"}]},{"group":"Guías","pages":[{"title":"Emitir Factura","href":"/guides/emit-invoice"},{"title":"Emitir Nota de Crédito","description":"Cómo emitir una nota de crédito (código 04 del SRI)","href":"/guides/emit-credit-note"},{"title":"Consultar Estado","href":"/guides/check-status"},{"title":"Subir Certificado","description":"Guía: subir certificado .p12","href":"/guides/upload-certificate"},{"title":"Manejar Rechazos","href":"/guides/handle-rejections"}]}]},{"tab":"Referencia API","pages":[{"title":"Referencia API","href":"/api-reference/authentication/google-oauth-callback"}]}]},"basePath":"","title":"Consultar Estado - Factio","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":[],"chunks":[]}