Every endpoint, generated from the Cufea OpenAPI contract, with a playground.
The pages of this section are generated from the OpenAPI contract the API serves at
https://api.cufea.com/openapi.json, so they always match it. The descriptions of the
contract are in English. Its version history is in the changelog.
Base URL
https://api.cufea.com
Authentication
Every endpoint except GET /v1/health takes Authorization: Bearer <key>. The /v1/partner
routes take a partner key (cufea_partner_) and nothing else does. See
Authentication.
Try it with a sandbox key
Use a cufea_sandbox_ key in the playground. It talks to Cufea’s simulated DIAN, so
nothing you send there has legal effect. A cufea_test_ key reaches the DIAN test
environment, and a cufea_prod_ key issues real invoices: the API does not know a request
came from these docs.
Open an endpoint, such as GET /v1/tenant, and choose Try it.
Paste the key in the authorization field and send.
The playground sends the request through the docs platform’s proxy, so your browser does not
call api.cufea.com directly. Your key travels in that request: keep production keys out of
it.
Conventions
Amounts and quantities are decimal strings, such as "119000.00", never JSON numbers.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cufea","description":"Colombian DIAN electronic invoicing over a REST API.","colors":{"primary":"#121211","light":"#F2F1ED","dark":"#121211"},"logo":{"light":"https://mintcdn.com/cufea/TQMXUpl4W5MDYEjW/logo/light.svg?fit=max\u0026auto=format\u0026n=TQMXUpl4W5MDYEjW\u0026q=85\u0026s=3fb3cb984171272f2790de13971ec643","dark":"https://mintcdn.com/cufea/TQMXUpl4W5MDYEjW/logo/dark.svg?fit=max\u0026auto=format\u0026n=TQMXUpl4W5MDYEjW\u0026q=85\u0026s=6adb6699d9f4470ae9db5449af33cb09","href":"https://cufea.com"},"favicon":"https://mintcdn.com/cufea/TQMXUpl4W5MDYEjW/favicon.svg?fit=max\u0026auto=format\u0026n=TQMXUpl4W5MDYEjW\u0026q=85\u0026s=ed675e6c3e46b89eb52c37d55c016228","api":{"playground":{"display":"interactive","proxy":true},"examples":{"defaults":"required","languages":["bash","javascript","python"]}},"footer":{"links":[{"header":"Cufea","items":[{"label":"cufea.com","href":"https://cufea.com"},{"label":"Console","href":"https://app.cufea.com"}]}]},"seo":{"metatags":{"canonical":"https://docs.cufea.com"}},"fonts":{"family":"Geist"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","latex":false},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"app.cufea.com","icon":"key-round","href":"https://app.cufea.com/signup"}]},"languages":[{"language":"es","navbar":{"links":[{"href":"https://cufea.com","label":"cufea.com"}],"primary":{"type":"button","label":"Obtener clave de sandbox","href":"https://app.cufea.com/signup"}},"href":""},{"language":"en","navbar":{"links":[{"href":"https://cufea.com","label":"cufea.com"}],"primary":{"type":"button","label":"Get a sandbox key","href":"https://app.cufea.com/signup"}},"href":"en"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cufea","hasAudioNarration":false,"actualSubdomain":"cufea","customDomains":["docs.cufea.com"],"gitSource":{"type":"github","owner":"cailash-labs","repo":"cufea","deployBranch":"main","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":"","_id":"6b0f51ccbca01e694bcc0d8e"},"entitlements":{},"buildId":"6b0f6471a5e2b0c26a8b7b6a","clientVersion":"0.0.4402","searchFilterCounts":[{"language":"es","tag":"Docs API","count":81},{"language":"en","tag":"API docs","count":81},{"language":"es","tag":"Endpoints","count":59},{"language":"en","tag":"Endpoints","count":59},{"language":"es","tag":"tenant","count":16},{"language":"en","tag":"tenant","count":16},{"language":"es","tag":"webhooks","count":12},{"language":"en","tag":"webhooks","count":12},{"language":"es","tag":"Guías","count":9},{"language":"es","tag":"invoices","count":9},{"language":"en","tag":"Guides","count":9},{"language":"en","tag":"invoices","count":9},{"language":"es","tag":"Documentación","count":8},{"language":"en","tag":"Documentation","count":8},{"language":"es","tag":"notes","count":7},{"language":"en","tag":"notes","count":7},{"language":"es","tag":"partner","count":6},{"language":"en","tag":"partner","count":6},{"language":"es","tag":"events","count":5},{"language":"en","tag":"events","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":"rbac-expansion","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":"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":"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":"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":"turbopuffer-dual-write","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":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"en/api-reference/introduction","slug":"/en/api-reference/introduction","pageMetadata":{"title":"API reference","description":"Every endpoint, generated from the Cufea OpenAPI contract, with a playground.","href":"/en/api-reference/introduction"},"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: \"Every endpoint, generated from the Cufea OpenAPI contract, with a playground.\"\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`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The pages of this section are generated from the OpenAPI contract the API serves at\n`,_jsx(_components.code,{children:`https://api.cufea.com/openapi.json`}),`, so they always match it. The descriptions of the\ncontract are in English. Its version history is in the `,_jsx(_components.a,{href:`/en/changelog`,children:`changelog`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`base-url`,children:`Base URL`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.cufea.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`Every endpoint except `,_jsx(_components.code,{children:`GET /v1/health`}),` takes `,_jsx(_components.code,{children:`Authorization: Bearer \u003ckey>`}),`. The `,_jsx(_components.code,{children:`/v1/partner`}),`\nroutes take a partner key (`,_jsx(_components.code,{children:`cufea_partner_`}),`) and nothing else does. See\n`,_jsx(_components.a,{href:`/en/authentication`,children:`Authentication`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`try-it-with-a-sandbox-key`,children:`Try it with a sandbox key`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Use a `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`cufea_sandbox_`})}),` key in the playground. It talks to Cufea’s simulated DIAN, so\nnothing you send there has legal effect. A `,_jsx(_components.code,{children:`cufea_test_`}),` key reaches the DIAN test\nenvironment, and a `,_jsx(_components.code,{children:`cufea_prod_`}),` key `,_jsx(_components.strong,{children:`issues real invoices`}),`: the API does not know a request\ncame from these docs.`]})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Get a sandbox key on the `,_jsx(_components.a,{href:`https://app.cufea.com/signup`,children:`developer console`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Open an endpoint, such as `,_jsx(_components.code,{children:`GET /v1/tenant`}),`, and choose `,_jsx(_components.strong,{children:`Try it`}),`.`]}),`\n`,_jsx(_components.li,{children:`Paste the key in the authorization field and send.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The playground sends the request through the docs platform’s proxy, so your browser does not\ncall `,_jsx(_components.code,{children:`api.cufea.com`}),` directly. Your key travels in that request: keep production keys out of\nit.`]}),`\n`,_jsx(Heading,{level:`2`,id:`conventions`,children:`Conventions`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Amounts and quantities are decimal strings, such as `,_jsx(_components.code,{children:`\"119000.00\"`}),`, never JSON numbers.`]}),`\n`,_jsxs(_components.li,{children:[`Errors are `,_jsx(_components.code,{children:`application/problem+json`}),`; see `,_jsx(_components.a,{href:`/en/errors`,children:`Errors`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Creates and sends take an `,_jsx(_components.code,{children:`Idempotency-Key`}),` header; see `,_jsx(_components.a,{href:`/en/idempotency`,children:`Idempotency`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Every keyed response carries `,_jsx(_components.code,{children:`X-RateLimit-*`}),` headers; see `,_jsx(_components.a,{href:`/en/rate-limits`,children:`Rate limits`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Lists use cursor pagination; see `,_jsx(_components.a,{href:`/en/pagination`,children:`Pagination`}),`.`]}),`\n`]})]})}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":"API reference","description":"Every endpoint, generated from the Cufea OpenAPI contract, with a playground.","href":"/en/api-reference/introduction"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Base URL","slug":"base-url","depth":2,"children":[]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Try it with a sandbox key","slug":"try-it-with-a-sandbox-key","depth":2,"children":[]},{"title":"Conventions","slug":"conventions","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"cufea","siteName":"Cufea","title":"API reference - Cufea","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"es":{"href":"/api-reference/introduction","matchLevel":1},"en":{"href":"/en/api-reference/introduction","matchLevel":0}}},"lastModified":"2026-12-02T00:21:15.343Z","originalFileLocation":"en/api-reference/introduction.mdx","locale":"en"},"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=\"Every endpoint, generated from the Cufea OpenAPI contract, with a playground.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cufea\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cufea/lyC3DbbRdAr51oOK/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cufea/lyC3DbbRdAr51oOK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cufea/lyC3DbbRdAr51oOK/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cufea/lyC3DbbRdAr51oOK/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cufea/lyC3DbbRdAr51oOK/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cufea/lyC3DbbRdAr51oOK/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cufea/lyC3DbbRdAr51oOK/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cufea/lyC3DbbRdAr51oOK/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cufea/lyC3DbbRdAr51oOK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API reference - Cufea\">\u003cmeta data-mint-head property=\"og:description\" content=\"Every endpoint, generated from the Cufea OpenAPI contract, with a playground.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cufea\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cufea.com/en/api-reference/introduction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cufea.mintlify.site/_mintlify/api/og/v2?division=API+reference\u0026amp;title=API+reference\u0026amp;description=Every+endpoint%2C+generated+from+the+Cufea+OpenAPI+contract%2C+with+a+playground.\u0026amp;theme=749a62f2b8a3fccfdbd11508\u0026amp;signature=e1c601a785386c1b14401dfad24860c25da1c59c23f7d1be3d3d8ad53238b679\">\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=\"API reference - Cufea\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Every endpoint, generated from the Cufea OpenAPI contract, with a playground.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cufea.mintlify.site/_mintlify/api/og/v2?division=API+reference\u0026amp;title=API+reference\u0026amp;description=Every+endpoint%2C+generated+from+the+Cufea+OpenAPI+contract%2C+with+a+playground.\u0026amp;theme=749a62f2b8a3fccfdbd11508\u0026amp;signature=e1c601a785386c1b14401dfad24860c25da1c59c23f7d1be3d3d8ad53238b679\">\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=\"/mintlify-assets/_mintlify/favicons/cufea/lyC3DbbRdAr51oOK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cufea\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#121211\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cufea.com/en/api-reference/introduction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/introduction.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.cufea.com/en/api-reference/introduction\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.cufea.com/api-reference/introduction\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.cufea.com/api-reference/introduction\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cufea.com/#organization\",\"name\":\"Cufea\",\"url\":\"https://docs.cufea.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cufea/TQMXUpl4W5MDYEjW/logo/light.svg?fit=max\u0026auto=format\u0026n=TQMXUpl4W5MDYEjW\u0026q=85\u0026s=3fb3cb984171272f2790de13971ec643\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cufea.com#website\",\"name\":\"Cufea\",\"url\":\"https://docs.cufea.com\",\"publisher\":{\"@id\":\"https://docs.cufea.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cufea.com/en/api-reference/introduction#webpage\",\"url\":\"https://docs.cufea.com/en/api-reference/introduction\",\"name\":\"API reference\",\"description\":\"Every endpoint, generated from the Cufea OpenAPI contract, with a playground.\",\"dateModified\":\"2026-12-02T00:21:15.343Z\",\"isPartOf\":{\"@id\":\"https://docs.cufea.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cufea.com/en/api-reference/introduction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cufea.com/en/api-reference/introduction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cufea\",\"item\":\"https://docs.cufea.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API reference\",\"item\":\"https://docs.cufea.com/en/api-reference/introduction\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.cufea.com/en/api-reference/introduction#article\",\"headline\":\"API reference\",\"name\":\"API reference\",\"description\":\"Every endpoint, generated from the Cufea OpenAPI contract, with a playground.\",\"url\":\"https://docs.cufea.com/en/api-reference/introduction\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cufea.com/en/api-reference/introduction#webpage\"},\"dateModified\":\"2026-12-02T00:21:15.343Z\",\"publisher\":{\"@id\":\"https://docs.cufea.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cufea.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cufea\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cufea\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api-reference/introduction.md","siteName":"Cufea","nav":{"global":{"anchors":[{"anchor":"app.cufea.com","icon":"key-round","href":"https://app.cufea.com/signup"}]},"languages":[{"language":"es","navbar":{"links":[{"href":"https://cufea.com","label":"cufea.com"}],"primary":{"type":"button","label":"Obtener clave de sandbox","href":"https://app.cufea.com/signup"}},"pages":[{"title":"es","href":"/api-reference/introduction"}]},{"language":"en","navbar":{"links":[{"href":"https://cufea.com","label":"cufea.com"}],"primary":{"type":"button","label":"Get a sandbox key","href":"https://app.cufea.com/signup"}},"tabs":[{"tab":"API docs","groups":[{"group":"Documentation","pages":[{"title":"Introduction","href":"/en"},{"title":"Quickstart","href":"/en/quickstart"},{"title":"Authentication","href":"/en/authentication"},{"title":"Errors","href":"/en/errors"},{"title":"Pagination","href":"/en/pagination"},{"title":"Idempotency","href":"/en/idempotency"},{"title":"Rate limits","href":"/en/rate-limits"},{"title":"Webhooks","href":"/en/webhooks"}]},{"group":"Guides","pages":[{"title":"Customers","href":"/en/guides/customers"},{"title":"Numbering","href":"/en/guides/numbering"},{"title":"Payments","href":"/en/guides/payments"},{"title":"Totals and rounding","href":"/en/guides/totals"},{"title":"Discounts","href":"/en/guides/discounts"},{"title":"Legends and observations","href":"/en/guides/legends"},{"title":"Credit and debit notes","href":"/en/guides/notes"},{"title":"Delivery to the buyer","href":"/en/guides/delivery"},{"title":"Closed documents","href":"/en/guides/closed-documents"}]},{"group":"From test to production","pages":[{"title":"From test to production","href":"/en/production"}]},{"group":"Partners","pages":[{"title":"Partners","href":"/en/partners"}]},{"group":"SDK and MCP","pages":[{"title":"TypeScript SDK","href":"/en/sdk"},{"title":"MCP server","description":"Let AI agents issue sandbox invoices through Cufea with the remote MCP server.","href":"/en/mcp"}]},{"group":"API reference","pages":[{"title":"API reference","href":"/en/api-reference/introduction"}]},{"group":"Endpoints","pages":[{"group":"documents","pages":[{"title":"Find a document by your reference","description":"Lists the document of `kind` that was created with `reference` in the tenant and stage of this API key: one item, exactly as `GET /v1/invoices/{document_id}` or `GET /v1/notes/{kind}/{document_id}` returns it, or none.\n\nAn empty `items` is definitive, never a 404: Cufea has no document with that reference, so it was never created and the create can be sent again. Use it after a create whose answer was lost, or to resolve a 409 `reference_conflict`.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/documents","href":"/en/api-reference/documents/find-a-document-by-your-reference"},{"title":"List invoices","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices","href":"/en/api-reference/documents/list-invoices"},{"title":"List credit and debit notes","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/notes","href":"/en/api-reference/documents/list-credit-and-debit-notes"}]},{"group":"system","pages":[{"title":"Liveness check","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/health","href":"/en/api-reference/system/liveness-check"}]},{"group":"invoices","pages":[{"title":"Create a signed invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices","href":"/en/api-reference/invoices/create-a-signed-invoice"},{"title":"Get a stored invoice","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{document_id}","href":"/en/api-reference/invoices/get-a-stored-invoice"},{"title":"Get the AttachedDocument of an accepted invoice","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{document_id}/attached-document","href":"/en/api-reference/invoices/get-the-attacheddocument-of-an-accepted-invoice"},{"title":"Get the buyer email of an accepted invoice, to send it yourself","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{document_id}/email-content","href":"/en/api-reference/invoices/get-the-buyer-email-of-an-accepted-invoice-to-send-it-yourself"},{"title":"Get the PDF (representación gráfica) of an accepted invoice","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{document_id}/pdf","href":"/en/api-reference/invoices/get-the-pdf-representación-gráfica-of-an-accepted-invoice"},{"title":"Ask the DIAN for the current status of an invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{document_id}/refresh","href":"/en/api-reference/invoices/ask-the-dian-for-the-current-status-of-an-invoice"},{"title":"Send an invoice to the DIAN","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{document_id}/send","href":"/en/api-reference/invoices/send-an-invoice-to-the-dian"},{"title":"Send (or resend) the buyer email of an accepted invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{document_id}/send-email","href":"/en/api-reference/invoices/send-or-resend-the-buyer-email-of-an-accepted-invoice"},{"title":"Get the signed XML of an invoice","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{document_id}/xml","href":"/en/api-reference/invoices/get-the-signed-xml-of-an-invoice"}]},{"group":"events","pages":[{"title":"Get the RADIAN event chain of an invoice","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{invoice_id}/events","href":"/en/api-reference/events/get-the-radian-event-chain-of-an-invoice"},{"title":"Schedule a RADIAN event on an accepted invoice","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{invoice_id}/events","href":"/en/api-reference/events/schedule-a-radian-event-on-an-accepted-invoice"},{"title":"Ask the DIAN which events of an invoice are registered","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{invoice_id}/events/refresh","href":"/en/api-reference/events/ask-the-dian-which-events-of-an-invoice-are-registered"},{"title":"Get one saved RADIAN event","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/invoices/{invoice_id}/events/{event_id}","href":"/en/api-reference/events/get-one-saved-radian-event"},{"title":"Queue the sending of a saved RADIAN event","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/invoices/{invoice_id}/events/{event_id}/send","href":"/en/api-reference/events/queue-the-sending-of-a-saved-radian-event"}]},{"group":"notes","pages":[{"title":"Create a signed credit or debit note","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/notes","href":"/en/api-reference/notes/create-a-signed-credit-or-debit-note"},{"title":"Get a stored credit or debit note","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/notes/{kind}/{document_id}","href":"/en/api-reference/notes/get-a-stored-credit-or-debit-note"},{"title":"Get the buyer email of an accepted note, to send it yourself","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/notes/{kind}/{document_id}/email-content","href":"/en/api-reference/notes/get-the-buyer-email-of-an-accepted-note-to-send-it-yourself"},{"title":"Get the PDF (representación gráfica) of an accepted note","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/notes/{kind}/{document_id}/pdf","href":"/en/api-reference/notes/get-the-pdf-representación-gráfica-of-an-accepted-note"},{"title":"Send a credit or debit note to the DIAN","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/notes/{kind}/{document_id}/send","href":"/en/api-reference/notes/send-a-credit-or-debit-note-to-the-dian"},{"title":"Send (or resend) the buyer email of an accepted note","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/notes/{kind}/{document_id}/send-email","href":"/en/api-reference/notes/send-or-resend-the-buyer-email-of-an-accepted-note"},{"title":"Get the signed XML of a credit or debit note","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/notes/{kind}/{document_id}/xml","href":"/en/api-reference/notes/get-the-signed-xml-of-a-credit-or-debit-note"}]},{"group":"partner","pages":[{"title":"List the partner's tenants","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/partner/tenants","href":"/en/api-reference/partner/list-the-partners-tenants"},{"title":"Provision a client company as a tenant","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/partner/tenants","href":"/en/api-reference/partner/provision-a-client-company-as-a-tenant"},{"title":"Get one of the partner's tenants","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/partner/tenants/{tenant_id}","href":"/en/api-reference/partner/get-one-of-the-partners-tenants"},{"title":"List the tenant's API keys","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/partner/tenants/{tenant_id}/api-keys","href":"/en/api-reference/partner/list-the-tenants-api-keys"},{"title":"Issue an API key of the tenant","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/partner/tenants/{tenant_id}/api-keys","href":"/en/api-reference/partner/issue-an-api-key-of-the-tenant"},{"title":"Revoke an API key of the tenant","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/partner/tenants/{tenant_id}/api-keys/{key_id}","href":"/en/api-reference/partner/revoke-an-api-key-of-the-tenant"}]},{"group":"tenant","pages":[{"title":"Identify the authenticated tenant","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant","href":"/en/api-reference/tenant/identify-the-authenticated-tenant"},{"title":"List the tenant's API keys","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/api-keys","href":"/en/api-reference/tenant/list-the-tenants-api-keys"},{"title":"Issue an API key","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/tenant/api-keys","href":"/en/api-reference/tenant/issue-an-api-key"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/tenant/api-keys/{key_id}","href":"/en/api-reference/tenant/revoke-an-api-key"},{"title":"Get the stored signing certificate","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/certificate/{stage}","href":"/en/api-reference/tenant/get-the-stored-signing-certificate"},{"title":"Upload the signing certificate (.p12)","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/tenant/certificate/{stage}","href":"/en/api-reference/tenant/upload-the-signing-certificate-p12"},{"title":"Report what the tenant has configured","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/configuration","href":"/en/api-reference/tenant/report-what-the-tenant-has-configured"},{"title":"Get the issuer","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/issuer","href":"/en/api-reference/tenant/get-the-issuer"},{"title":"Set the issuer","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/tenant/issuer","href":"/en/api-reference/tenant/set-the-issuer"},{"title":"Get the default numbering range","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/numbering-range","href":"/en/api-reference/tenant/get-the-default-numbering-range"},{"title":"Add or update one numbering range","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/tenant/numbering-range","href":"/en/api-reference/tenant/add-or-update-one-numbering-range"},{"title":"List the numbering ranges","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/numbering-ranges","href":"/en/api-reference/tenant/list-the-numbering-ranges"},{"title":"Promote the tenant to the DIAN production stage","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/tenant/promote","href":"/en/api-reference/tenant/promote-the-tenant-to-the-dian-production-stage"},{"title":"Check what the promotion still needs","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/promotion","href":"/en/api-reference/tenant/check-what-the-promotion-still-needs"},{"title":"Store a secret (write-only)","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/tenant/secrets/{kind}","href":"/en/api-reference/tenant/store-a-secret-write-only"},{"title":"Report the DIAN test set status","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/test-set","href":"/en/api-reference/tenant/report-the-dian-test-set-status"}]},{"group":"webhooks","pages":[{"title":"List the tenant's webhook endpoints","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/tenant/webhooks","href":"/en/api-reference/webhooks/list-the-tenants-webhook-endpoints"},{"title":"Add a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/tenant/webhooks","href":"/en/api-reference/webhooks/add-a-webhook-endpoint"},{"title":"Delete a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/tenant/webhooks/{endpoint_id}","href":"/en/api-reference/webhooks/delete-a-webhook-endpoint"},{"title":"`eventregistered` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook event.registered","href":"/en/api-reference/webhooks/`eventregistered`-delivered-to-your-endpoint"},{"title":"`invoiceaccepted` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook invoice.accepted","href":"/en/api-reference/webhooks/`invoiceaccepted`-delivered-to-your-endpoint"},{"title":"`invoicedelivered` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook invoice.delivered","href":"/en/api-reference/webhooks/`invoicedelivered`-delivered-to-your-endpoint"},{"title":"`invoicedelivery failed` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook invoice.delivery_failed","href":"/en/api-reference/webhooks/`invoicedelivery_failed`-delivered-to-your-endpoint"},{"title":"`invoicerejected` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook invoice.rejected","href":"/en/api-reference/webhooks/`invoicerejected`-delivered-to-your-endpoint"},{"title":"`noteaccepted` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook note.accepted","href":"/en/api-reference/webhooks/`noteaccepted`-delivered-to-your-endpoint"},{"title":"`notedelivered` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook note.delivered","href":"/en/api-reference/webhooks/`notedelivered`-delivered-to-your-endpoint"},{"title":"`notedelivery failed` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook note.delivery_failed","href":"/en/api-reference/webhooks/`notedelivery_failed`-delivered-to-your-endpoint"},{"title":"`noterejected` delivered to your endpoint","version":null,"deprecated":null,"openapi":"/openapi.json webhook note.rejected","href":"/en/api-reference/webhooks/`noterejected`-delivered-to-your-endpoint"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/en/changelog"}]}]}]},"basePath":"","title":"API reference - Cufea","deploymentId":"dpl_CwahHhD5zhwmkLtcenbR5oYrGaSo","buildId":"dpl_CwahHhD5zhwmkLtcenbR5oYrGaSo","dynamics":[],"chunks":[]}