{
"code": "validation_error",
"detail": "The request is not valid; see `errors` for the offending fields.",
"errors": [
{
"loc": [
"body",
"customer"
],
"msg": "Field required"
},
{
"loc": [
"body",
"lines"
],
"msg": "List should have at least 1 item after validation, not 0"
}
],
"request_id": "88272d6eb903438690d3193e3113270a",
"status": 422,
"title": "Request validation failed",
"type": "urn:cufea:problem:validation_error"
}
{
"code": "rate_limited",
"detail": "This API key made more than 120 requests in the current window. Retry after 17 seconds.",
"request_id": "5d1c0b6f2e8a4f0c9a7b3e2d1c0f9a8b",
"status": 429,
"title": "Too Many Requests",
"type": "urn:cufea:problem:rate_limited"
}
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.
An 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.
{
"code": "validation_error",
"detail": "The request is not valid; see `errors` for the offending fields.",
"errors": [
{
"loc": [
"body",
"customer"
],
"msg": "Field required"
},
{
"loc": [
"body",
"lines"
],
"msg": "List should have at least 1 item after validation, not 0"
}
],
"request_id": "88272d6eb903438690d3193e3113270a",
"status": 422,
"title": "Request validation failed",
"type": "urn:cufea:problem:validation_error"
}
{
"code": "rate_limited",
"detail": "This API key made more than 120 requests in the current window. Retry after 17 seconds.",
"request_id": "5d1c0b6f2e8a4f0c9a7b3e2d1c0f9a8b",
"status": 429,
"title": "Too Many Requests",
"type": "urn:cufea:problem:rate_limited"
}
Send your Cufea API key as Authorization: Bearer <key>.
Query Parameters
reference
string
required
The reference given on create.
Required string length: 1 - 100
Pattern: ^[A-Za-z0-9._:-]{1,100}$
kind
enum<string>
required
Document kind: invoice, credit_note or debit_note.
Available options:
invoice,
credit_note,
debit_note
Response
Successful Response
The documents carrying a reference: none or one.
items
(InvoiceRecord · object | NoteRecord · object)[]
required
The document with that reference and kind, exactly as GET /v1/invoices/{document_id} or GET /v1/notes/{kind}/{document_id} returns it; empty when Cufea has no such document (it was never created).
Maximum array length: 1
The stored invoice, without its XML.
InvoiceRecord
NoteRecord
Show child attributes
{"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/documents/find-a-document-by-your-reference","slug":"/en/api-reference/documents/find-a-document-by-your-reference","pageMetadata":{"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","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Lists the document of \", _jsx(_components.code, {\n children: \"kind\"\n }), \" that was created with \", _jsx(_components.code, {\n children: \"reference\"\n }), \" in the tenant and stage of this API key: one item, exactly as \", _jsx(_components.code, {\n children: \"GET /v1/invoices/{document_id}\"\n }), \" or \", _jsx(_components.code, {\n children: \"GET /v1/notes/{kind}/{document_id}\"\n }), \" returns it, or none.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"An empty \", _jsx(_components.code, {\n children: \"items\"\n }), \" 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 \", _jsx(_components.code, {\n children: \"reference_conflict\"\n }), \".\"]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"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","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"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`.","operationId":"find_document_v1_documents_get","parameters":["572b0ded-a11a-47ac-99f8-d8a0c27d1e68","fbe2d6aa-eace-4b5e-bd48-354014c0479d"],"responses":{"200":"95cf3b3c-38c3-40f3-8d03-126c7533818c","401":"9be64c5c-fa63-47c7-af0e-57c9b40cd918","403":"9a992c00-78da-4cf8-9b3e-0d8cdf0e667f","422":"bfc4aee9-5778-4bba-ab95-63b46b392489","429":"3deacf40-50ad-4492-b79a-c510f03eee5c","500":"7dd04e4d-98c7-4195-8ca1-96ae08279a17","503":"c01e7929-10be-4f5b-b311-21ba828a7a69"},"security":["d719657c-2a4d-4866-9126-20e73a0220ae"],"summary":"Find a document by your reference","tags":["documents"],"method":"get","type":"path","servers":["ae8063d8-96db-456d-8a36-870da52300bb"],"path":"/v1/documents","baseUrlOptions":["https://api.cufea.com"],"title":"Find a document by your reference","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"572b0ded-a11a-47ac-99f8-d8a0c27d1e68":{"description":"The `reference` given on create.","in":"query","name":"reference","required":true,"schema":{"description":"The `reference` given on create.","maxLength":100,"minLength":1,"pattern":"^[A-Za-z0-9._:-]{1,100}$","title":"Reference","type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"fbe2d6aa-eace-4b5e-bd48-354014c0479d":{"description":"Document kind: `invoice`, `credit_note` or `debit_note`.","in":"query","name":"kind","required":true,"schema":{"description":"Document kind: `invoice`, `credit_note` or `debit_note`.","enum":["invoice","credit_note","debit_note"],"title":"Kind","type":"string","isRequired":true,"uniqueKey":"","typeLabel":"enum\u003cstring>"}}},"responses":{"95cf3b3c-38c3-40f3-8d03-126c7533818c":{"content":{"application/json":{"schema":{"description":"The documents carrying a reference: none or one.","properties":{"items":{"description":"The document with that reference and kind, exactly as `GET /v1/invoices/{document_id}` or `GET /v1/notes/{kind}/{document_id}` returns it; empty when Cufea has no such document (it was never created).","items":{"oneOf":[{"type":"object","title":"InvoiceRecord","description":"The stored invoice, without its XML.","required":["document_id","number","prefix","cufe","issue_datetime","customer","state","totals","taxes","withholdings","lines","qr","delivery"],"properties":{"cufe":{"description":"CUFE: 96 hexadecimal characters (SHA-384).","title":"Cufe","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.cufe","typeLabel":"string"},"customer":{"description":"The buyer. Read from the signed XML, so it is exactly what the DIAN received. Amounts are decimal strings with 2 decimals.","properties":{"id_number":{"description":"`cbc:CompanyID`, without check digit. A consumidor final carries what was signed (`222222222222`).","title":"Id Number","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.customer.id_number","typeLabel":"string"},"id_type":{"description":"`cbc:CompanyID/@schemeName`, e.g. `31` NIT, `13` cédula.","title":"Id Type","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.customer.id_type","typeLabel":"string"},"name":{"description":"`cbc:RegistrationName`.","title":"Name","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.customer.name","typeLabel":"string"}},"required":["id_type","id_number","name"],"title":"CustomerOut","type":"object","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.customer","typeLabel":"CustomerOut · object"},"delivery":{"description":"The email of the invoice to its buyer.","properties":{"status":{"description":"`pending` (waiting for the DIAN's acceptance or a retry), `sent`, `failed` or `skipped`.","enum":["pending","sent","failed","skipped"],"title":"Status","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.delivery.status","typeLabel":"enum\u003cstring>"},"attempts":{"default":0,"description":"Attempts of this delivery so far.","title":"Attempts","type":"integer","uniqueKey":"\\items.items.[INDEX].oneOf.0.delivery.attempts","typeLabel":"integer"},"manual":{"default":false,"description":"`true` when it was sent with `POST .../send-email`.","title":"Manual","type":"boolean","uniqueKey":"\\items.items.[INDEX].oneOf.0.delivery.manual","typeLabel":"boolean"},"reason":{"oneOf":[{"type":"string","title":"Reason","description":"Why it is not `sent`: `awaiting_acceptance`, `email_unavailable` (a retry is scheduled while `pending`), `send_email_disabled`, `stage_not_production`, `no_recipient`, `document_not_accepted`, `email_rejected`, `email_not_configured`, `attached_document_unavailable` or `package_too_large`.","uniqueKey":"\\items.items.[INDEX].oneOf.0.delivery.reason.oneOf.0","typeLabel":"string"},{"type":"null","title":"Reason","description":"Why it is not `sent`: `awaiting_acceptance`, `email_unavailable` (a retry is scheduled while `pending`), `send_email_disabled`, `stage_not_production`, `no_recipient`, `document_not_accepted`, `email_rejected`, `email_not_configured`, `attached_document_unavailable` or `package_too_large`.","uniqueKey":"\\items.items.[INDEX].oneOf.0.delivery.reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.delivery.reason","typeLabel":"string | null"},"recipient":{"oneOf":[{"type":"string","title":"Recipient","description":"The address it went to.","uniqueKey":"\\items.items.[INDEX].oneOf.0.delivery.recipient.oneOf.0","typeLabel":"string"},{"type":"null","title":"Recipient","description":"The address it went to.","uniqueKey":"\\items.items.[INDEX].oneOf.0.delivery.recipient.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.delivery.recipient","typeLabel":"string | null"},"updated_at":{"oneOf":[{"type":"string","title":"Updated At","description":"When it last changed.","format":"date-time","uniqueKey":"\\items.items.[INDEX].oneOf.0.delivery.updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Updated At","description":"When it last changed.","uniqueKey":"\\items.items.[INDEX].oneOf.0.delivery.updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.delivery.updated_at","typeLabel":"string\u003cdate-time> | null"}},"required":["status"],"title":"Delivery","type":"object","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.delivery","typeLabel":"Delivery · object"},"document_id":{"description":"Prefix and number, e.g. `SETP990000001`.","title":"Document Id","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.document_id","typeLabel":"string"},"issue_datetime":{"format":"date-time","title":"Issue Datetime","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.issue_datetime","typeLabel":"string\u003cdate-time>"},"lines":{"description":"The lines in order. Read from the signed XML, so it is exactly what the DIAN received. Amounts are decimal strings with 2 decimals.","items":{"description":"A line as signed: gross value, discount, net value and taxes.","properties":{"description":{"title":"Description","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].description","typeLabel":"string"},"discount_amount":{"description":"Line discount; `0.00` without one.","title":"Discount Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].discount_amount","typeLabel":"string"},"discount_rate":{"description":"Discount percent of the gross amount; `0.00`.","title":"Discount Rate","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].discount_rate","typeLabel":"string"},"gross_amount":{"description":"Quantity x unit price, before the line discount.","title":"Gross Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].gross_amount","typeLabel":"string"},"is_excluded":{"description":"The line carries no IVA: excluded from IVA, or sent without IVA.","title":"Is Excluded","type":"boolean","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].is_excluded","typeLabel":"boolean"},"item_code":{"oneOf":[{"type":"string","title":"Item Code","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].item_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Item Code","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].item_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].item_code","typeLabel":"string | null"},"line_id":{"description":"`cbc:ID` of the line, from 1 in request order.","title":"Line Id","type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].line_id","typeLabel":"integer"},"net_amount":{"description":"`LineExtensionAmount`: gross minus the discount, the base of its taxes.","title":"Net Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].net_amount","typeLabel":"string"},"quantity":{"title":"Quantity","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].quantity","typeLabel":"string"},"taxes":{"items":{"description":"A tax at one percent with its base and amount (a `TaxSubtotal` of the XML).","properties":{"name":{"description":"The DIAN name of the tax, e.g. `IVA`.","title":"Name","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].taxes.items.[INDEX].name","typeLabel":"string"},"percent":{"oneOf":[{"type":"string","title":"Percent","description":"Rate in percent, e.g. `19.00`; `0.00` is exempt (exento). Null only on the IVA-excluded entry.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].taxes.items.[INDEX].percent.oneOf.0","typeLabel":"string"},{"type":"null","title":"Percent","description":"Rate in percent, e.g. `19.00`; `0.00` is exempt (exento). Null only on the IVA-excluded entry.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].taxes.items.[INDEX].percent.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].taxes.items.[INDEX].percent","typeLabel":"string | null"},"scheme":{"description":"Tax code: `01` IVA, `02` IC, `03` ICA, `04` INC; withholdings `05`-`08`.","enum":["01","02","03","04","05","06","07","08","ZZ"],"title":"TaxScheme","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].taxes.items.[INDEX].scheme","typeLabel":"enum\u003cstring>"},"tax_amount":{"description":"`TaxAmount`.","title":"Tax Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].taxes.items.[INDEX].tax_amount","typeLabel":"string"},"taxable_amount":{"description":"`TaxableAmount`: the base.","title":"Taxable Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].taxes.items.[INDEX].taxable_amount","typeLabel":"string"},"is_excluded":{"default":false,"description":"Only in `taxes`: the entry that sums the lines without IVA (excluded from IVA, or sent without IVA). The XML informs no IVA for them, so it has no percent and a zero amount.","title":"Is Excluded","type":"boolean","uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].taxes.items.[INDEX].is_excluded","typeLabel":"boolean"}},"required":["scheme","name","percent","taxable_amount","tax_amount"],"title":"TaxAmountOut","type":"object","uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].taxes.items.[INDEX]","typeLabel":"TaxAmountOut · object"},"title":"Taxes","type":"array","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].taxes","typeLabel":"TaxAmountOut · object[]"},"unit_code":{"title":"Unit Code","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].unit_code","typeLabel":"string"},"unit_price":{"title":"Unit Price","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX].unit_price","typeLabel":"string"}},"required":["line_id","description","item_code","quantity","unit_code","unit_price","gross_amount","discount_rate","discount_amount","net_amount","taxes","is_excluded"],"title":"LineSummaryOut","type":"object","uniqueKey":"\\items.items.[INDEX].oneOf.0.lines.items.[INDEX]","typeLabel":"LineSummaryOut · object"},"title":"Lines","type":"array","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.lines","typeLabel":"LineSummaryOut · object[]"},"number":{"title":"Number","type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.number","typeLabel":"integer"},"prefix":{"title":"Prefix","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.prefix","typeLabel":"string"},"qr":{"properties":{"content":{"description":"`sts:QRCode` exactly as signed: the DIAN document lookup URL with the CUFE or CUDE. Encode it in the QR of the printed document.","title":"Content","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.qr.content","typeLabel":"string"},"url":{"oneOf":[{"type":"string","title":"Url","description":"The same URL once the DIAN accepted the document (`state` `accepted`); null before, because the DIAN catalog shows nothing yet.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.qr.url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Url","description":"The same URL once the DIAN accepted the document (`state` `accepted`); null before, because the DIAN catalog shows nothing yet.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.qr.url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.qr.url","typeLabel":"string | null"}},"required":["content","url"],"title":"QrOut","type":"object","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.qr","typeLabel":"QrOut · object"},"state":{"description":"`prepared` until the document is sent; then the latest DIAN outcome (`accepted`, `rejected`, `not_found`...) or, before any answer, the last event (`sent`, `send_failed`...).","title":"State","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.state","typeLabel":"string"},"taxes":{"description":"Taxes per code and percent, ordered by code and percent, then the IVA-excluded entry when a line has no IVA. Read from the signed XML, so it is exactly what the DIAN received. Amounts are decimal strings with 2 decimals.","items":{"description":"A tax at one percent with its base and amount (a `TaxSubtotal` of the XML).","properties":{"name":{"description":"The DIAN name of the tax, e.g. `IVA`.","title":"Name","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.taxes.items.[INDEX].name","typeLabel":"string"},"percent":{"oneOf":[{"type":"string","title":"Percent","description":"Rate in percent, e.g. `19.00`; `0.00` is exempt (exento). Null only on the IVA-excluded entry.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.taxes.items.[INDEX].percent.oneOf.0","typeLabel":"string"},{"type":"null","title":"Percent","description":"Rate in percent, e.g. `19.00`; `0.00` is exempt (exento). Null only on the IVA-excluded entry.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.taxes.items.[INDEX].percent.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.taxes.items.[INDEX].percent","typeLabel":"string | null"},"scheme":{"description":"Tax code: `01` IVA, `02` IC, `03` ICA, `04` INC; withholdings `05`-`08`.","enum":["01","02","03","04","05","06","07","08","ZZ"],"title":"TaxScheme","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.taxes.items.[INDEX].scheme","typeLabel":"enum\u003cstring>"},"tax_amount":{"description":"`TaxAmount`.","title":"Tax Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.taxes.items.[INDEX].tax_amount","typeLabel":"string"},"taxable_amount":{"description":"`TaxableAmount`: the base.","title":"Taxable Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.taxes.items.[INDEX].taxable_amount","typeLabel":"string"},"is_excluded":{"default":false,"description":"Only in `taxes`: the entry that sums the lines without IVA (excluded from IVA, or sent without IVA). The XML informs no IVA for them, so it has no percent and a zero amount.","title":"Is Excluded","type":"boolean","uniqueKey":"\\items.items.[INDEX].oneOf.0.taxes.items.[INDEX].is_excluded","typeLabel":"boolean"}},"required":["scheme","name","percent","taxable_amount","tax_amount"],"title":"TaxAmountOut","type":"object","uniqueKey":"\\items.items.[INDEX].oneOf.0.taxes.items.[INDEX]","typeLabel":"TaxAmountOut · object"},"title":"Taxes","type":"array","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.taxes","typeLabel":"TaxAmountOut · object[]"},"totals":{"description":"Monetary totals. Read from the signed XML, so it is exactly what the DIAN received. Amounts are decimal strings with 2 decimals.","properties":{"allowance_total":{"description":"`AllowanceTotalAmount`: document-level discounts (line discounts are already in each line).","title":"Allowance Total","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.totals.allowance_total","typeLabel":"string"},"charge_total":{"description":"`ChargeTotalAmount`: document-level charges.","title":"Charge Total","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.totals.charge_total","typeLabel":"string"},"line_extension":{"description":"`LineExtensionAmount`: sum of the line net amounts, after line discounts.","title":"Line Extension","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.totals.line_extension","typeLabel":"string"},"payable":{"description":"`PayableAmount`: the amount to pay.","title":"Payable","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.totals.payable","typeLabel":"string"},"rounding":{"description":"`PayableRoundingAmount`; `0.00` when the document carries none.","title":"Rounding","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.totals.rounding","typeLabel":"string"},"tax_exclusive":{"description":"`TaxExclusiveAmount`: sum of the net amounts of the lines that carry a tax.","title":"Tax Exclusive","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.totals.tax_exclusive","typeLabel":"string"},"tax_inclusive":{"description":"`TaxInclusiveAmount`: `line_extension` plus taxes.","title":"Tax Inclusive","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.totals.tax_inclusive","typeLabel":"string"}},"required":["line_extension","tax_exclusive","tax_inclusive","allowance_total","charge_total","payable","rounding"],"title":"DocumentTotals","type":"object","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.totals","typeLabel":"DocumentTotals · object"},"withholdings":{"description":"Withholdings per code and percent; empty on notes. Read from the signed XML, so it is exactly what the DIAN received. Amounts are decimal strings with 2 decimals.","items":{"description":"A tax at one percent with its base and amount (a `TaxSubtotal` of the XML).","properties":{"name":{"description":"The DIAN name of the tax, e.g. `IVA`.","title":"Name","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.withholdings.items.[INDEX].name","typeLabel":"string"},"percent":{"oneOf":[{"type":"string","title":"Percent","description":"Rate in percent, e.g. `19.00`; `0.00` is exempt (exento). Null only on the IVA-excluded entry.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.withholdings.items.[INDEX].percent.oneOf.0","typeLabel":"string"},{"type":"null","title":"Percent","description":"Rate in percent, e.g. `19.00`; `0.00` is exempt (exento). Null only on the IVA-excluded entry.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.withholdings.items.[INDEX].percent.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.withholdings.items.[INDEX].percent","typeLabel":"string | null"},"scheme":{"description":"Tax code: `01` IVA, `02` IC, `03` ICA, `04` INC; withholdings `05`-`08`.","enum":["01","02","03","04","05","06","07","08","ZZ"],"title":"TaxScheme","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.withholdings.items.[INDEX].scheme","typeLabel":"enum\u003cstring>"},"tax_amount":{"description":"`TaxAmount`.","title":"Tax Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.withholdings.items.[INDEX].tax_amount","typeLabel":"string"},"taxable_amount":{"description":"`TaxableAmount`: the base.","title":"Taxable Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.withholdings.items.[INDEX].taxable_amount","typeLabel":"string"},"is_excluded":{"default":false,"description":"Only in `taxes`: the entry that sums the lines without IVA (excluded from IVA, or sent without IVA). The XML informs no IVA for them, so it has no percent and a zero amount.","title":"Is Excluded","type":"boolean","uniqueKey":"\\items.items.[INDEX].oneOf.0.withholdings.items.[INDEX].is_excluded","typeLabel":"boolean"}},"required":["scheme","name","percent","taxable_amount","tax_amount"],"title":"TaxAmountOut","type":"object","uniqueKey":"\\items.items.[INDEX].oneOf.0.withholdings.items.[INDEX]","typeLabel":"TaxAmountOut · object"},"title":"Withholdings","type":"array","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.withholdings","typeLabel":"TaxAmountOut · object[]"},"dian_errors":{"description":"Rule messages of the latest DIAN answer.","items":{"description":"A validation rule message of the DIAN answer, relayed as the DIAN wrote it.","properties":{"rule":{"description":"DIAN validation rule code, for example `FAD06`.","title":"Rule","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.dian_errors.items.[INDEX].rule","typeLabel":"string"},"severity":{"description":"`rejection`, `notification` or `unknown`.","title":"Severity","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.dian_errors.items.[INDEX].severity","typeLabel":"string"},"text":{"title":"Text","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.dian_errors.items.[INDEX].text","typeLabel":"string"}},"required":["rule","severity","text"],"title":"DianMessage","type":"object","uniqueKey":"\\items.items.[INDEX].oneOf.0.dian_errors.items.[INDEX]","typeLabel":"DianMessage · object"},"title":"Dian Errors","type":"array","uniqueKey":"\\items.items.[INDEX].oneOf.0.dian_errors","typeLabel":"DianMessage · object[]"},"dian_status_code":{"oneOf":[{"type":"string","title":"Dian Status Code","description":"StatusCode of the latest DIAN answer, e.g. `00`; none yet.","uniqueKey":"\\items.items.[INDEX].oneOf.0.dian_status_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Dian Status Code","description":"StatusCode of the latest DIAN answer, e.g. `00`; none yet.","uniqueKey":"\\items.items.[INDEX].oneOf.0.dian_status_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.dian_status_code","typeLabel":"string | null"},"dian_status_description":{"oneOf":[{"type":"string","title":"Dian Status Description","description":"StatusDescription of the latest DIAN answer.","uniqueKey":"\\items.items.[INDEX].oneOf.0.dian_status_description.oneOf.0","typeLabel":"string"},{"type":"null","title":"Dian Status Description","description":"StatusDescription of the latest DIAN answer.","uniqueKey":"\\items.items.[INDEX].oneOf.0.dian_status_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.dian_status_description","typeLabel":"string | null"},"kind":{"const":"invoice","default":"invoice","description":"Always `invoice`.","title":"Kind","type":"string","uniqueKey":"\\items.items.[INDEX].oneOf.0.kind","typeLabel":"string"},"notes":{"description":"The document's `cbc:Note` legends as signed, in order (`notes`, or the `observation`, given on create); empty when none.","items":{"type":"string","uniqueKey":"\\items.items.[INDEX].oneOf.0.notes.items.[INDEX]","typeLabel":"string"},"title":"Notes","type":"array","uniqueKey":"\\items.items.[INDEX].oneOf.0.notes","typeLabel":"string[]"},"payments":{"description":"The means of payment as signed (`cac:PaymentMeans`), in order, with the amounts given on create. A single `payment` on create is one entry.","items":{"description":"A means of payment of the invoice: one `cac:PaymentMeans`, in order.","properties":{"amount":{"oneOf":[{"type":"string","title":"Amount","description":"The amount given on create for this means; null when none was given. Stored by Cufea, not part of the signed XML.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.payments.items.[INDEX].amount.oneOf.0","typeLabel":"string"},{"type":"null","title":"Amount","description":"The amount given on create for this means; null when none was given. Stored by Cufea, not part of the signed XML.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.payments.items.[INDEX].amount.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.payments.items.[INDEX].amount","typeLabel":"string | null"},"due_date":{"oneOf":[{"type":"string","title":"Due Date","description":"`cbc:PaymentDueDate`; null when not informed.","format":"date","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.payments.items.[INDEX].due_date.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","title":"Due Date","description":"`cbc:PaymentDueDate`; null when not informed.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.payments.items.[INDEX].due_date.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.payments.items.[INDEX].due_date","typeLabel":"string\u003cdate> | null"},"form":{"description":"`cbc:ID`: `1` cash, `2` credit.","title":"Form","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.payments.items.[INDEX].form","typeLabel":"string"},"method_code":{"description":"`cbc:PaymentMeansCode`, e.g. `10` cash.","title":"Method Code","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.0.payments.items.[INDEX].method_code","typeLabel":"string"}},"required":["form","method_code","due_date","amount"],"title":"PaymentOut","type":"object","uniqueKey":"\\items.items.[INDEX].oneOf.0.payments.items.[INDEX]","typeLabel":"PaymentOut · object"},"title":"Payments","type":"array","uniqueKey":"\\items.items.[INDEX].oneOf.0.payments","typeLabel":"PaymentOut · object[]"},"reference":{"oneOf":[{"type":"string","title":"Reference","description":"The reference given on create; null when none was given.","uniqueKey":"\\items.items.[INDEX].oneOf.0.reference.oneOf.0","typeLabel":"string"},{"type":"null","title":"Reference","description":"The reference given on create; null when none was given.","uniqueKey":"\\items.items.[INDEX].oneOf.0.reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.reference","typeLabel":"string | null"},"sent_at":{"oneOf":[{"type":"string","title":"Sent At","description":"When the DIAN last received the document; none if never.","format":"date-time","uniqueKey":"\\items.items.[INDEX].oneOf.0.sent_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Sent At","description":"When the DIAN last received the document; none if never.","uniqueKey":"\\items.items.[INDEX].oneOf.0.sent_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.0.sent_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"\\items.items.[INDEX].oneOf.0","typeLabel":"InvoiceRecord · object"},{"type":"object","title":"NoteRecord","description":"The stored credit or debit note, without its XML.","required":["kind","document_id","number","prefix","cude","issue_datetime","customer","state","totals","taxes","withholdings","lines","qr","delivery"],"properties":{"cude":{"description":"CUDE: 96 hexadecimal characters (SHA-384).","title":"Cude","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.cude","typeLabel":"string"},"customer":{"description":"The buyer. Read from the signed XML, so it is exactly what the DIAN received. Amounts are decimal strings with 2 decimals.","properties":{"id_number":{"description":"`cbc:CompanyID`, without check digit. A consumidor final carries what was signed (`222222222222`).","title":"Id Number","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.customer.id_number","typeLabel":"string"},"id_type":{"description":"`cbc:CompanyID/@schemeName`, e.g. `31` NIT, `13` cédula.","title":"Id Type","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.customer.id_type","typeLabel":"string"},"name":{"description":"`cbc:RegistrationName`.","title":"Name","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.customer.name","typeLabel":"string"}},"required":["id_type","id_number","name"],"title":"CustomerOut","type":"object","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.customer","typeLabel":"CustomerOut · object"},"delivery":{"description":"The email of the note to its buyer.","properties":{"status":{"description":"`pending` (waiting for the DIAN's acceptance or a retry), `sent`, `failed` or `skipped`.","enum":["pending","sent","failed","skipped"],"title":"Status","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.delivery.status","typeLabel":"enum\u003cstring>"},"attempts":{"default":0,"description":"Attempts of this delivery so far.","title":"Attempts","type":"integer","uniqueKey":"\\items.items.[INDEX].oneOf.1.delivery.attempts","typeLabel":"integer"},"manual":{"default":false,"description":"`true` when it was sent with `POST .../send-email`.","title":"Manual","type":"boolean","uniqueKey":"\\items.items.[INDEX].oneOf.1.delivery.manual","typeLabel":"boolean"},"reason":{"oneOf":[{"type":"string","title":"Reason","description":"Why it is not `sent`: `awaiting_acceptance`, `email_unavailable` (a retry is scheduled while `pending`), `send_email_disabled`, `stage_not_production`, `no_recipient`, `document_not_accepted`, `email_rejected`, `email_not_configured`, `attached_document_unavailable` or `package_too_large`.","uniqueKey":"\\items.items.[INDEX].oneOf.1.delivery.reason.oneOf.0","typeLabel":"string"},{"type":"null","title":"Reason","description":"Why it is not `sent`: `awaiting_acceptance`, `email_unavailable` (a retry is scheduled while `pending`), `send_email_disabled`, `stage_not_production`, `no_recipient`, `document_not_accepted`, `email_rejected`, `email_not_configured`, `attached_document_unavailable` or `package_too_large`.","uniqueKey":"\\items.items.[INDEX].oneOf.1.delivery.reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.1.delivery.reason","typeLabel":"string | null"},"recipient":{"oneOf":[{"type":"string","title":"Recipient","description":"The address it went to.","uniqueKey":"\\items.items.[INDEX].oneOf.1.delivery.recipient.oneOf.0","typeLabel":"string"},{"type":"null","title":"Recipient","description":"The address it went to.","uniqueKey":"\\items.items.[INDEX].oneOf.1.delivery.recipient.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.1.delivery.recipient","typeLabel":"string | null"},"updated_at":{"oneOf":[{"type":"string","title":"Updated At","description":"When it last changed.","format":"date-time","uniqueKey":"\\items.items.[INDEX].oneOf.1.delivery.updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Updated At","description":"When it last changed.","uniqueKey":"\\items.items.[INDEX].oneOf.1.delivery.updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.1.delivery.updated_at","typeLabel":"string\u003cdate-time> | null"}},"required":["status"],"title":"Delivery","type":"object","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.delivery","typeLabel":"Delivery · object"},"document_id":{"description":"Prefix and number, e.g. `NC1`.","title":"Document Id","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.document_id","typeLabel":"string"},"issue_datetime":{"format":"date-time","title":"Issue Datetime","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.issue_datetime","typeLabel":"string\u003cdate-time>"},"kind":{"description":"`credit_note` (DIAN 91) or `debit_note` (DIAN 92).","enum":["credit_note","debit_note"],"title":"Kind","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.kind","typeLabel":"enum\u003cstring>"},"lines":{"description":"The lines in order. Read from the signed XML, so it is exactly what the DIAN received. Amounts are decimal strings with 2 decimals.","items":{"description":"A line as signed: gross value, discount, net value and taxes.","properties":{"description":{"title":"Description","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].description","typeLabel":"string"},"discount_amount":{"description":"Line discount; `0.00` without one.","title":"Discount Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].discount_amount","typeLabel":"string"},"discount_rate":{"description":"Discount percent of the gross amount; `0.00`.","title":"Discount Rate","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].discount_rate","typeLabel":"string"},"gross_amount":{"description":"Quantity x unit price, before the line discount.","title":"Gross Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].gross_amount","typeLabel":"string"},"is_excluded":{"description":"The line carries no IVA: excluded from IVA, or sent without IVA.","title":"Is Excluded","type":"boolean","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].is_excluded","typeLabel":"boolean"},"item_code":{"oneOf":[{"type":"string","title":"Item Code","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].item_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Item Code","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].item_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].item_code","typeLabel":"string | null"},"line_id":{"description":"`cbc:ID` of the line, from 1 in request order.","title":"Line Id","type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].line_id","typeLabel":"integer"},"net_amount":{"description":"`LineExtensionAmount`: gross minus the discount, the base of its taxes.","title":"Net Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].net_amount","typeLabel":"string"},"quantity":{"title":"Quantity","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].quantity","typeLabel":"string"},"taxes":{"items":{"description":"A tax at one percent with its base and amount (a `TaxSubtotal` of the XML).","properties":{"name":{"description":"The DIAN name of the tax, e.g. `IVA`.","title":"Name","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].taxes.items.[INDEX].name","typeLabel":"string"},"percent":{"oneOf":[{"type":"string","title":"Percent","description":"Rate in percent, e.g. `19.00`; `0.00` is exempt (exento). Null only on the IVA-excluded entry.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].taxes.items.[INDEX].percent.oneOf.0","typeLabel":"string"},{"type":"null","title":"Percent","description":"Rate in percent, e.g. `19.00`; `0.00` is exempt (exento). Null only on the IVA-excluded entry.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].taxes.items.[INDEX].percent.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].taxes.items.[INDEX].percent","typeLabel":"string | null"},"scheme":{"description":"Tax code: `01` IVA, `02` IC, `03` ICA, `04` INC; withholdings `05`-`08`.","enum":["01","02","03","04","05","06","07","08","ZZ"],"title":"TaxScheme","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].taxes.items.[INDEX].scheme","typeLabel":"enum\u003cstring>"},"tax_amount":{"description":"`TaxAmount`.","title":"Tax Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].taxes.items.[INDEX].tax_amount","typeLabel":"string"},"taxable_amount":{"description":"`TaxableAmount`: the base.","title":"Taxable Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].taxes.items.[INDEX].taxable_amount","typeLabel":"string"},"is_excluded":{"default":false,"description":"Only in `taxes`: the entry that sums the lines without IVA (excluded from IVA, or sent without IVA). The XML informs no IVA for them, so it has no percent and a zero amount.","title":"Is Excluded","type":"boolean","uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].taxes.items.[INDEX].is_excluded","typeLabel":"boolean"}},"required":["scheme","name","percent","taxable_amount","tax_amount"],"title":"TaxAmountOut","type":"object","uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].taxes.items.[INDEX]","typeLabel":"TaxAmountOut · object"},"title":"Taxes","type":"array","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].taxes","typeLabel":"TaxAmountOut · object[]"},"unit_code":{"title":"Unit Code","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].unit_code","typeLabel":"string"},"unit_price":{"title":"Unit Price","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX].unit_price","typeLabel":"string"}},"required":["line_id","description","item_code","quantity","unit_code","unit_price","gross_amount","discount_rate","discount_amount","net_amount","taxes","is_excluded"],"title":"LineSummaryOut","type":"object","uniqueKey":"\\items.items.[INDEX].oneOf.1.lines.items.[INDEX]","typeLabel":"LineSummaryOut · object"},"title":"Lines","type":"array","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.lines","typeLabel":"LineSummaryOut · object[]"},"number":{"title":"Number","type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.number","typeLabel":"integer"},"prefix":{"title":"Prefix","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.prefix","typeLabel":"string"},"qr":{"properties":{"content":{"description":"`sts:QRCode` exactly as signed: the DIAN document lookup URL with the CUFE or CUDE. Encode it in the QR of the printed document.","title":"Content","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.qr.content","typeLabel":"string"},"url":{"oneOf":[{"type":"string","title":"Url","description":"The same URL once the DIAN accepted the document (`state` `accepted`); null before, because the DIAN catalog shows nothing yet.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.qr.url.oneOf.0","typeLabel":"string"},{"type":"null","title":"Url","description":"The same URL once the DIAN accepted the document (`state` `accepted`); null before, because the DIAN catalog shows nothing yet.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.qr.url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.qr.url","typeLabel":"string | null"}},"required":["content","url"],"title":"QrOut","type":"object","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.qr","typeLabel":"QrOut · object"},"state":{"description":"`prepared` until the document is sent; then the latest DIAN outcome (`accepted`, `rejected`, `closed`...).","title":"State","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.state","typeLabel":"string"},"taxes":{"description":"Taxes per code and percent, ordered by code and percent, then the IVA-excluded entry when a line has no IVA. Read from the signed XML, so it is exactly what the DIAN received. Amounts are decimal strings with 2 decimals.","items":{"description":"A tax at one percent with its base and amount (a `TaxSubtotal` of the XML).","properties":{"name":{"description":"The DIAN name of the tax, e.g. `IVA`.","title":"Name","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.taxes.items.[INDEX].name","typeLabel":"string"},"percent":{"oneOf":[{"type":"string","title":"Percent","description":"Rate in percent, e.g. `19.00`; `0.00` is exempt (exento). Null only on the IVA-excluded entry.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.taxes.items.[INDEX].percent.oneOf.0","typeLabel":"string"},{"type":"null","title":"Percent","description":"Rate in percent, e.g. `19.00`; `0.00` is exempt (exento). Null only on the IVA-excluded entry.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.taxes.items.[INDEX].percent.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.taxes.items.[INDEX].percent","typeLabel":"string | null"},"scheme":{"description":"Tax code: `01` IVA, `02` IC, `03` ICA, `04` INC; withholdings `05`-`08`.","enum":["01","02","03","04","05","06","07","08","ZZ"],"title":"TaxScheme","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.taxes.items.[INDEX].scheme","typeLabel":"enum\u003cstring>"},"tax_amount":{"description":"`TaxAmount`.","title":"Tax Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.taxes.items.[INDEX].tax_amount","typeLabel":"string"},"taxable_amount":{"description":"`TaxableAmount`: the base.","title":"Taxable Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.taxes.items.[INDEX].taxable_amount","typeLabel":"string"},"is_excluded":{"default":false,"description":"Only in `taxes`: the entry that sums the lines without IVA (excluded from IVA, or sent without IVA). The XML informs no IVA for them, so it has no percent and a zero amount.","title":"Is Excluded","type":"boolean","uniqueKey":"\\items.items.[INDEX].oneOf.1.taxes.items.[INDEX].is_excluded","typeLabel":"boolean"}},"required":["scheme","name","percent","taxable_amount","tax_amount"],"title":"TaxAmountOut","type":"object","uniqueKey":"\\items.items.[INDEX].oneOf.1.taxes.items.[INDEX]","typeLabel":"TaxAmountOut · object"},"title":"Taxes","type":"array","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.taxes","typeLabel":"TaxAmountOut · object[]"},"totals":{"description":"Monetary totals. Read from the signed XML, so it is exactly what the DIAN received. Amounts are decimal strings with 2 decimals.","properties":{"allowance_total":{"description":"`AllowanceTotalAmount`: document-level discounts (line discounts are already in each line).","title":"Allowance Total","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.totals.allowance_total","typeLabel":"string"},"charge_total":{"description":"`ChargeTotalAmount`: document-level charges.","title":"Charge Total","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.totals.charge_total","typeLabel":"string"},"line_extension":{"description":"`LineExtensionAmount`: sum of the line net amounts, after line discounts.","title":"Line Extension","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.totals.line_extension","typeLabel":"string"},"payable":{"description":"`PayableAmount`: the amount to pay.","title":"Payable","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.totals.payable","typeLabel":"string"},"rounding":{"description":"`PayableRoundingAmount`; `0.00` when the document carries none.","title":"Rounding","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.totals.rounding","typeLabel":"string"},"tax_exclusive":{"description":"`TaxExclusiveAmount`: sum of the net amounts of the lines that carry a tax.","title":"Tax Exclusive","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.totals.tax_exclusive","typeLabel":"string"},"tax_inclusive":{"description":"`TaxInclusiveAmount`: `line_extension` plus taxes.","title":"Tax Inclusive","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.totals.tax_inclusive","typeLabel":"string"}},"required":["line_extension","tax_exclusive","tax_inclusive","allowance_total","charge_total","payable","rounding"],"title":"DocumentTotals","type":"object","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.totals","typeLabel":"DocumentTotals · object"},"withholdings":{"description":"Withholdings per code and percent; empty on notes. Read from the signed XML, so it is exactly what the DIAN received. Amounts are decimal strings with 2 decimals.","items":{"description":"A tax at one percent with its base and amount (a `TaxSubtotal` of the XML).","properties":{"name":{"description":"The DIAN name of the tax, e.g. `IVA`.","title":"Name","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.withholdings.items.[INDEX].name","typeLabel":"string"},"percent":{"oneOf":[{"type":"string","title":"Percent","description":"Rate in percent, e.g. `19.00`; `0.00` is exempt (exento). Null only on the IVA-excluded entry.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.withholdings.items.[INDEX].percent.oneOf.0","typeLabel":"string"},{"type":"null","title":"Percent","description":"Rate in percent, e.g. `19.00`; `0.00` is exempt (exento). Null only on the IVA-excluded entry.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.withholdings.items.[INDEX].percent.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.withholdings.items.[INDEX].percent","typeLabel":"string | null"},"scheme":{"description":"Tax code: `01` IVA, `02` IC, `03` ICA, `04` INC; withholdings `05`-`08`.","enum":["01","02","03","04","05","06","07","08","ZZ"],"title":"TaxScheme","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.withholdings.items.[INDEX].scheme","typeLabel":"enum\u003cstring>"},"tax_amount":{"description":"`TaxAmount`.","title":"Tax Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.withholdings.items.[INDEX].tax_amount","typeLabel":"string"},"taxable_amount":{"description":"`TaxableAmount`: the base.","title":"Taxable Amount","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.withholdings.items.[INDEX].taxable_amount","typeLabel":"string"},"is_excluded":{"default":false,"description":"Only in `taxes`: the entry that sums the lines without IVA (excluded from IVA, or sent without IVA). The XML informs no IVA for them, so it has no percent and a zero amount.","title":"Is Excluded","type":"boolean","uniqueKey":"\\items.items.[INDEX].oneOf.1.withholdings.items.[INDEX].is_excluded","typeLabel":"boolean"}},"required":["scheme","name","percent","taxable_amount","tax_amount"],"title":"TaxAmountOut","type":"object","uniqueKey":"\\items.items.[INDEX].oneOf.1.withholdings.items.[INDEX]","typeLabel":"TaxAmountOut · object"},"title":"Withholdings","type":"array","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.withholdings","typeLabel":"TaxAmountOut · object[]"},"dian_errors":{"description":"Rule messages of the latest DIAN answer.","items":{"description":"A validation rule message of the DIAN answer, relayed as the DIAN wrote it.","properties":{"rule":{"description":"DIAN validation rule code, for example `FAD06`.","title":"Rule","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.dian_errors.items.[INDEX].rule","typeLabel":"string"},"severity":{"description":"`rejection`, `notification` or `unknown`.","title":"Severity","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.dian_errors.items.[INDEX].severity","typeLabel":"string"},"text":{"title":"Text","type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].oneOf.1.dian_errors.items.[INDEX].text","typeLabel":"string"}},"required":["rule","severity","text"],"title":"DianMessage","type":"object","uniqueKey":"\\items.items.[INDEX].oneOf.1.dian_errors.items.[INDEX]","typeLabel":"DianMessage · object"},"title":"Dian Errors","type":"array","uniqueKey":"\\items.items.[INDEX].oneOf.1.dian_errors","typeLabel":"DianMessage · object[]"},"dian_status_code":{"oneOf":[{"type":"string","title":"Dian Status Code","description":"StatusCode of the latest DIAN answer, e.g. `00`; none yet.","uniqueKey":"\\items.items.[INDEX].oneOf.1.dian_status_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Dian Status Code","description":"StatusCode of the latest DIAN answer, e.g. `00`; none yet.","uniqueKey":"\\items.items.[INDEX].oneOf.1.dian_status_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.1.dian_status_code","typeLabel":"string | null"},"dian_status_description":{"oneOf":[{"type":"string","title":"Dian Status Description","description":"StatusDescription of the latest DIAN answer.","uniqueKey":"\\items.items.[INDEX].oneOf.1.dian_status_description.oneOf.0","typeLabel":"string"},{"type":"null","title":"Dian Status Description","description":"StatusDescription of the latest DIAN answer.","uniqueKey":"\\items.items.[INDEX].oneOf.1.dian_status_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.1.dian_status_description","typeLabel":"string | null"},"notes":{"description":"The note's `cbc:Note` legends as signed, in order (`notes`, or the `observation`, given on create); empty when none.","items":{"type":"string","uniqueKey":"\\items.items.[INDEX].oneOf.1.notes.items.[INDEX]","typeLabel":"string"},"title":"Notes","type":"array","uniqueKey":"\\items.items.[INDEX].oneOf.1.notes","typeLabel":"string[]"},"reference":{"oneOf":[{"type":"string","title":"Reference","description":"The reference given on create; null when none was given.","uniqueKey":"\\items.items.[INDEX].oneOf.1.reference.oneOf.0","typeLabel":"string"},{"type":"null","title":"Reference","description":"The reference given on create; null when none was given.","uniqueKey":"\\items.items.[INDEX].oneOf.1.reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.1.reference","typeLabel":"string | null"},"sent_at":{"oneOf":[{"type":"string","title":"Sent At","description":"When the DIAN last received the note; none if never.","format":"date-time","uniqueKey":"\\items.items.[INDEX].oneOf.1.sent_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Sent At","description":"When the DIAN last received the note; none if never.","uniqueKey":"\\items.items.[INDEX].oneOf.1.sent_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].oneOf.1.sent_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"\\items.items.[INDEX].oneOf.1","typeLabel":"NoteRecord · object"}],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"InvoiceRecord · object | NoteRecord · object"},"maxItems":1,"title":"Items","type":"array","isRequired":true,"uniqueKey":"\\items","typeLabel":"(InvoiceRecord · object | NoteRecord · object)[]"}},"required":["items"],"title":"DocumentLookup","type":"object","uniqueKey":"","typeLabel":"DocumentLookup · object"},"examples":{"Example":{"title":"Example","value":{"items":[{"cufe":"\u003cstring>","customer":{"id_number":"\u003cstring>","id_type":"\u003cstring>","name":"\u003cstring>"},"delivery":{"status":"pending","attempts":0,"manual":false,"reason":"\u003cstring>","recipient":"\u003cstring>","updated_at":"2023-11-07T05:31:56Z"},"document_id":"\u003cstring>","issue_datetime":"2023-11-07T05:31:56Z","lines":[{"description":"\u003cstring>","discount_amount":"\u003cstring>","discount_rate":"\u003cstring>","gross_amount":"\u003cstring>","is_excluded":true,"item_code":"\u003cstring>","line_id":123,"net_amount":"\u003cstring>","quantity":"\u003cstring>","taxes":[{"name":"\u003cstring>","percent":"\u003cstring>","scheme":"01","tax_amount":"\u003cstring>","taxable_amount":"\u003cstring>","is_excluded":false}],"unit_code":"\u003cstring>","unit_price":"\u003cstring>"}],"number":123,"prefix":"\u003cstring>","qr":{"content":"\u003cstring>","url":"\u003cstring>"},"state":"\u003cstring>","taxes":[{"name":"\u003cstring>","percent":"\u003cstring>","scheme":"01","tax_amount":"\u003cstring>","taxable_amount":"\u003cstring>","is_excluded":false}],"totals":{"allowance_total":"\u003cstring>","charge_total":"\u003cstring>","line_extension":"\u003cstring>","payable":"\u003cstring>","rounding":"\u003cstring>","tax_exclusive":"\u003cstring>","tax_inclusive":"\u003cstring>"},"withholdings":[{"name":"\u003cstring>","percent":"\u003cstring>","scheme":"01","tax_amount":"\u003cstring>","taxable_amount":"\u003cstring>","is_excluded":false}],"dian_errors":[{"rule":"\u003cstring>","severity":"\u003cstring>","text":"\u003cstring>"}],"dian_status_code":"\u003cstring>","dian_status_description":"\u003cstring>","kind":"invoice","notes":["\u003cstring>"],"payments":[{"amount":"\u003cstring>","due_date":"2023-12-25","form":"\u003cstring>","method_code":"\u003cstring>"}],"reference":"\u003cstring>","sent_at":"2023-11-07T05:31:56Z"}]}}},"exampleType":"generated"}},"description":"Successful Response","headers":{"X-RateLimit-Limit":{"description":"Requests this API key may make in the current window (120 per minute by default).","example":120,"schema":{"minimum":1,"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests this API key has left in the current window.","example":119,"schema":{"minimum":0,"type":"integer"}},"X-RateLimit-Reset":{"description":"Whole seconds until the window restarts and the quota is full again.","example":17,"schema":{"minimum":1,"type":"integer"}}},"exampleType":"generated"},"9be64c5c-fa63-47c7-af0e-57c9b40cd918":{"content":{"application/problem+json":{"example":{"code":"unauthorized","detail":"Missing or invalid API key.","request_id":"3668a7374b1e4314b2f932a5620da1f1","status":401,"title":"Unauthorized","type":"urn:cufea:problem:unauthorized"},"schema":{"description":"Error body (`application/problem+json`, RFC 9457).","properties":{"code":{"description":"Stable machine-readable error code.","title":"Code","type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"description":"Explanation specific to this occurrence.","title":"Detail","type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"request_id":{"description":"Value of the `X-Request-ID` response header.","title":"Request Id","type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"status":{"description":"HTTP status code.","title":"Status","type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"title":{"description":"Short, human-readable summary of the problem kind.","title":"Title","type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"type":{"description":"Stable URI identifying the problem kind.","title":"Type","type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"dian":{"oneOf":[{"type":"object","title":"DianDetail","description":"Present only when the DIAN rejected a document.","required":["rule","text"],"properties":{"rule":{"description":"DIAN validation rule code, for example `FAD06`.","title":"Rule","type":"string","isRequired":true,"uniqueKey":"dian.oneOf.0.rule","typeLabel":"string"},"text":{"description":"Rule description as returned by the DIAN.","title":"Text","type":"string","isRequired":true,"uniqueKey":"dian.oneOf.0.text","typeLabel":"string"}},"uniqueKey":"dian.oneOf.0","typeLabel":"DianDetail · object"},{"type":"null","description":"Present only when the DIAN rejected a document.","uniqueKey":"dian.oneOf.1","typeLabel":"null"}],"uniqueKey":"dian","typeLabel":"DianDetail · object | null"}},"required":["type","title","status","code","detail","request_id"],"title":"Problem","type":"object","uniqueKey":"","typeLabel":"Problem · object"},"examples":{"Example":{"title":"Example","value":{"code":"unauthorized","detail":"Missing or invalid API key.","request_id":"3668a7374b1e4314b2f932a5620da1f1","status":401,"title":"Unauthorized","type":"urn:cufea:problem:unauthorized"}}},"exampleType":"examples"}},"description":"Missing or invalid API key.","exampleType":"examples"},"9a992c00-78da-4cf8-9b3e-0d8cdf0e667f":{"content":{"application/problem+json":{"schema":{"description":"Error body (`application/problem+json`, RFC 9457).","properties":{"code":{"description":"Stable machine-readable error code.","title":"Code","type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"description":"Explanation specific to this occurrence.","title":"Detail","type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"request_id":{"description":"Value of the `X-Request-ID` response header.","title":"Request Id","type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"status":{"description":"HTTP status code.","title":"Status","type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"title":{"description":"Short, human-readable summary of the problem kind.","title":"Title","type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"type":{"description":"Stable URI identifying the problem kind.","title":"Type","type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"dian":{"oneOf":[{"type":"object","title":"DianDetail","description":"Present only when the DIAN rejected a document.","required":["rule","text"],"properties":{"rule":{"description":"DIAN validation rule code, for example `FAD06`.","title":"Rule","type":"string","isRequired":true,"uniqueKey":"dian.oneOf.0.rule","typeLabel":"string"},"text":{"description":"Rule description as returned by the DIAN.","title":"Text","type":"string","isRequired":true,"uniqueKey":"dian.oneOf.0.text","typeLabel":"string"}},"uniqueKey":"dian.oneOf.0","typeLabel":"DianDetail · object"},{"type":"null","description":"Present only when the DIAN rejected a document.","uniqueKey":"dian.oneOf.1","typeLabel":"null"}],"uniqueKey":"dian","typeLabel":"DianDetail · object | null"}},"required":["type","title","status","code","detail","request_id"],"title":"Problem","type":"object","uniqueKey":"","typeLabel":"Problem · object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","detail":"\u003cstring>","request_id":"\u003cstring>","status":123,"title":"\u003cstring>","type":"\u003cstring>","dian":{"rule":"\u003cstring>","text":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"The stage of the key is not open for the tenant (`stage_closed`).","headers":{"X-RateLimit-Limit":{"description":"Requests this API key may make in the current window (120 per minute by default).","example":120,"schema":{"minimum":1,"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests this API key has left in the current window.","example":119,"schema":{"minimum":0,"type":"integer"}},"X-RateLimit-Reset":{"description":"Whole seconds until the window restarts and the quota is full again.","example":17,"schema":{"minimum":1,"type":"integer"}}},"exampleType":"generated"},"bfc4aee9-5778-4bba-ab95-63b46b392489":{"content":{"application/problem+json":{"example":{"code":"validation_error","detail":"The request is not valid; see `errors` for the offending fields.","errors":[{"loc":["body","customer"],"msg":"Field required"},{"loc":["body","lines"],"msg":"List should have at least 1 item after validation, not 0"}],"request_id":"88272d6eb903438690d3193e3113270a","status":422,"title":"Request validation failed","type":"urn:cufea:problem:validation_error"},"schema":{"description":"A 422 problem. `errors` is present when `code` is `validation_error`.","properties":{"code":{"description":"Stable machine-readable error code.","title":"Code","type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"description":"Explanation specific to this occurrence.","title":"Detail","type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"request_id":{"description":"Value of the `X-Request-ID` response header.","title":"Request Id","type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"status":{"description":"HTTP status code.","title":"Status","type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"title":{"description":"Short, human-readable summary of the problem kind.","title":"Title","type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"type":{"description":"Stable URI identifying the problem kind.","title":"Type","type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"dian":{"oneOf":[{"type":"object","title":"DianDetail","description":"Present only when the DIAN rejected a document.","required":["rule","text"],"properties":{"rule":{"description":"DIAN validation rule code, for example `FAD06`.","title":"Rule","type":"string","isRequired":true,"uniqueKey":"dian.oneOf.0.rule","typeLabel":"string"},"text":{"description":"Rule description as returned by the DIAN.","title":"Text","type":"string","isRequired":true,"uniqueKey":"dian.oneOf.0.text","typeLabel":"string"}},"uniqueKey":"dian.oneOf.0","typeLabel":"DianDetail · object"},{"type":"null","description":"Present only when the DIAN rejected a document.","uniqueKey":"dian.oneOf.1","typeLabel":"null"}],"uniqueKey":"dian","typeLabel":"DianDetail · object | null"},"errors":{"oneOf":[{"type":"array","items":{"description":"One offending field of a request that failed validation.","properties":{"loc":{"description":"Where the field is, e.g. `[\"body\", \"lines\"]`.","items":{"type":"string","uniqueKey":"errors.oneOf.0.items.[INDEX].loc.items.[INDEX]","typeLabel":"string"},"title":"Loc","type":"array","isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].loc","typeLabel":"string[]"},"msg":{"description":"What is wrong with it. The submitted value is never echoed.","title":"Msg","type":"string","isRequired":true,"uniqueKey":"errors.oneOf.0.items.[INDEX].msg","typeLabel":"string"}},"required":["loc","msg"],"title":"FieldError","type":"object","uniqueKey":"errors.oneOf.0.items.[INDEX]","typeLabel":"FieldError · object"},"title":"Errors","description":"The offending fields, for `validation_error` only.","uniqueKey":"errors.oneOf.0","typeLabel":"FieldError · object[]"},{"type":"null","title":"Errors","description":"The offending fields, for `validation_error` only.","uniqueKey":"errors.oneOf.1","typeLabel":"null"}],"uniqueKey":"errors","typeLabel":"FieldError · object[] | null"}},"required":["type","title","status","code","detail","request_id"],"title":"ValidationProblem","type":"object","uniqueKey":"","typeLabel":"ValidationProblem · object"},"examples":{"Example":{"title":"Example","value":{"code":"validation_error","detail":"The request is not valid; see `errors` for the offending fields.","errors":[{"loc":["body","customer"],"msg":"Field required"},{"loc":["body","lines"],"msg":"List should have at least 1 item after validation, not 0"}],"request_id":"88272d6eb903438690d3193e3113270a","status":422,"title":"Request validation failed","type":"urn:cufea:problem:validation_error"}}},"exampleType":"examples"}},"description":"`reference` or `kind` is missing or malformed (`validation_error`).","headers":{"X-RateLimit-Limit":{"description":"Requests this API key may make in the current window (120 per minute by default).","example":120,"schema":{"minimum":1,"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests this API key has left in the current window.","example":119,"schema":{"minimum":0,"type":"integer"}},"X-RateLimit-Reset":{"description":"Whole seconds until the window restarts and the quota is full again.","example":17,"schema":{"minimum":1,"type":"integer"}}},"exampleType":"examples"},"3deacf40-50ad-4492-b79a-c510f03eee5c":{"content":{"application/problem+json":{"example":{"code":"rate_limited","detail":"This API key made more than 120 requests in the current window. Retry after 17 seconds.","request_id":"5d1c0b6f2e8a4f0c9a7b3e2d1c0f9a8b","status":429,"title":"Too Many Requests","type":"urn:cufea:problem:rate_limited"},"schema":{"description":"Error body (`application/problem+json`, RFC 9457).","properties":{"code":{"description":"Stable machine-readable error code.","title":"Code","type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"description":"Explanation specific to this occurrence.","title":"Detail","type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"request_id":{"description":"Value of the `X-Request-ID` response header.","title":"Request Id","type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"status":{"description":"HTTP status code.","title":"Status","type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"title":{"description":"Short, human-readable summary of the problem kind.","title":"Title","type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"type":{"description":"Stable URI identifying the problem kind.","title":"Type","type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"dian":{"oneOf":[{"type":"object","title":"DianDetail","description":"Present only when the DIAN rejected a document.","required":["rule","text"],"properties":{"rule":{"description":"DIAN validation rule code, for example `FAD06`.","title":"Rule","type":"string","isRequired":true,"uniqueKey":"dian.oneOf.0.rule","typeLabel":"string"},"text":{"description":"Rule description as returned by the DIAN.","title":"Text","type":"string","isRequired":true,"uniqueKey":"dian.oneOf.0.text","typeLabel":"string"}},"uniqueKey":"dian.oneOf.0","typeLabel":"DianDetail · object"},{"type":"null","description":"Present only when the DIAN rejected a document.","uniqueKey":"dian.oneOf.1","typeLabel":"null"}],"uniqueKey":"dian","typeLabel":"DianDetail · object | null"}},"required":["type","title","status","code","detail","request_id"],"title":"Problem","type":"object","uniqueKey":"","typeLabel":"Problem · object"},"examples":{"Example":{"title":"Example","value":{"code":"rate_limited","detail":"This API key made more than 120 requests in the current window. Retry after 17 seconds.","request_id":"5d1c0b6f2e8a4f0c9a7b3e2d1c0f9a8b","status":429,"title":"Too Many Requests","type":"urn:cufea:problem:rate_limited"}}},"exampleType":"examples"}},"description":"This API key is over its quota for the current window (`rate_limited`). Wait `Retry-After` seconds; a create or send retried with its `Idempotency-Key` is safe.","headers":{"Retry-After":{"description":"Whole seconds to wait before the next request (RFC 9110 `delay-seconds`); equals `X-RateLimit-Reset`.","example":17,"schema":{"minimum":1,"type":"integer"}},"X-RateLimit-Limit":{"description":"Requests this API key may make in the current window (120 per minute by default).","example":120,"schema":{"minimum":1,"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests this API key has left in the current window.","example":119,"schema":{"minimum":0,"type":"integer"}},"X-RateLimit-Reset":{"description":"Whole seconds until the window restarts and the quota is full again.","example":17,"schema":{"minimum":1,"type":"integer"}}},"exampleType":"examples"},"7dd04e4d-98c7-4195-8ca1-96ae08279a17":{"content":{"application/problem+json":{"schema":{"description":"Error body (`application/problem+json`, RFC 9457).","properties":{"code":{"description":"Stable machine-readable error code.","title":"Code","type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"description":"Explanation specific to this occurrence.","title":"Detail","type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"request_id":{"description":"Value of the `X-Request-ID` response header.","title":"Request Id","type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"status":{"description":"HTTP status code.","title":"Status","type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"title":{"description":"Short, human-readable summary of the problem kind.","title":"Title","type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"type":{"description":"Stable URI identifying the problem kind.","title":"Type","type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"dian":{"oneOf":[{"type":"object","title":"DianDetail","description":"Present only when the DIAN rejected a document.","required":["rule","text"],"properties":{"rule":{"description":"DIAN validation rule code, for example `FAD06`.","title":"Rule","type":"string","isRequired":true,"uniqueKey":"dian.oneOf.0.rule","typeLabel":"string"},"text":{"description":"Rule description as returned by the DIAN.","title":"Text","type":"string","isRequired":true,"uniqueKey":"dian.oneOf.0.text","typeLabel":"string"}},"uniqueKey":"dian.oneOf.0","typeLabel":"DianDetail · object"},{"type":"null","description":"Present only when the DIAN rejected a document.","uniqueKey":"dian.oneOf.1","typeLabel":"null"}],"uniqueKey":"dian","typeLabel":"DianDetail · object | null"}},"required":["type","title","status","code","detail","request_id"],"title":"Problem","type":"object","uniqueKey":"","typeLabel":"Problem · object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","detail":"\u003cstring>","request_id":"\u003cstring>","status":123,"title":"\u003cstring>","type":"\u003cstring>","dian":{"rule":"\u003cstring>","text":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"The document store failed (`store_error`).","headers":{"X-RateLimit-Limit":{"description":"Requests this API key may make in the current window (120 per minute by default).","example":120,"schema":{"minimum":1,"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests this API key has left in the current window.","example":119,"schema":{"minimum":0,"type":"integer"}},"X-RateLimit-Reset":{"description":"Whole seconds until the window restarts and the quota is full again.","example":17,"schema":{"minimum":1,"type":"integer"}}},"exampleType":"generated"},"c01e7929-10be-4f5b-b311-21ba828a7a69":{"content":{"application/problem+json":{"schema":{"description":"Error body (`application/problem+json`, RFC 9457).","properties":{"code":{"description":"Stable machine-readable error code.","title":"Code","type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"detail":{"description":"Explanation specific to this occurrence.","title":"Detail","type":"string","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"request_id":{"description":"Value of the `X-Request-ID` response header.","title":"Request Id","type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"status":{"description":"HTTP status code.","title":"Status","type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"title":{"description":"Short, human-readable summary of the problem kind.","title":"Title","type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"type":{"description":"Stable URI identifying the problem kind.","title":"Type","type":"string","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"dian":{"oneOf":[{"type":"object","title":"DianDetail","description":"Present only when the DIAN rejected a document.","required":["rule","text"],"properties":{"rule":{"description":"DIAN validation rule code, for example `FAD06`.","title":"Rule","type":"string","isRequired":true,"uniqueKey":"dian.oneOf.0.rule","typeLabel":"string"},"text":{"description":"Rule description as returned by the DIAN.","title":"Text","type":"string","isRequired":true,"uniqueKey":"dian.oneOf.0.text","typeLabel":"string"}},"uniqueKey":"dian.oneOf.0","typeLabel":"DianDetail · object"},{"type":"null","description":"Present only when the DIAN rejected a document.","uniqueKey":"dian.oneOf.1","typeLabel":"null"}],"uniqueKey":"dian","typeLabel":"DianDetail · object | null"}},"required":["type","title","status","code","detail","request_id"],"title":"Problem","type":"object","uniqueKey":"","typeLabel":"Problem · object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","detail":"\u003cstring>","request_id":"\u003cstring>","status":123,"title":"\u003cstring>","type":"\u003cstring>","dian":{"rule":"\u003cstring>","text":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"The server has no document services configured.","headers":{"X-RateLimit-Limit":{"description":"Requests this API key may make in the current window (120 per minute by default).","example":120,"schema":{"minimum":1,"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests this API key has left in the current window.","example":119,"schema":{"minimum":0,"type":"integer"}},"X-RateLimit-Reset":{"description":"Whole seconds until the window restarts and the quota is full again.","example":17,"schema":{"minimum":1,"type":"integer"}}},"exampleType":"generated"}},"security":{"d719657c-2a4d-4866-9126-20e73a0220ae":{"ApiKeyAuth":{"bearerFormat":"API key","description":"Send your Cufea API key as `Authorization: Bearer \u003ckey>`.","scheme":"bearer","type":"http","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"ae8063d8-96db-456d-8a36-870da52300bb":{"description":"Cufea API","url":"https://api.cufea.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"bearerFormat":"API key","description":"Send your Cufea API key as `Authorization: Bearer \u003ckey>`.","scheme":"bearer","type":"http","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Send your Cufea API key as `Authorization: Bearer \u003ckey>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"cufea","siteName":"Cufea","title":"Find a document by your reference - Cufea","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"es":{"href":"/api-reference/documents/find-a-document-by-your-reference","matchLevel":1},"en":{"href":"/en/api-reference/documents/find-a-document-by-your-reference","matchLevel":0}}},"lastModified":"2026-12-02T00:21:12.206Z","originalFileLocation":"en/api-reference/documents/find-a-document-by-your-reference.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=\"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. An 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.\">\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=\"Find a document by your reference - Cufea\">\u003cmeta data-mint-head property=\"og:description\" content=\"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. An 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.\">\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/documents/find-a-document-by-your-reference\">\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=documents\u0026amp;title=Find+a+document+by+your+reference\u0026amp;description=Lists+the+document+of+%60kind%60+that+was+created+with+%60reference%60+in+the+tenant+and+stage+of+this+API+key%3A+one+item%2C+exactly+as+%60GET+%2Fv1%2Finvoices%2F%7Bdocument_id%7D%60+or\u0026amp;theme=749a62f2b8a3fccfdbd11508\u0026amp;signature=d628417068ee4d7e615fa309464a82bace679c1b09fa8adf961f6274f571141c\">\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=\"Find a document by your reference - Cufea\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"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. An 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.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cufea.mintlify.site/_mintlify/api/og/v2?division=documents\u0026amp;title=Find+a+document+by+your+reference\u0026amp;description=Lists+the+document+of+%60kind%60+that+was+created+with+%60reference%60+in+the+tenant+and+stage+of+this+API+key%3A+one+item%2C+exactly+as+%60GET+%2Fv1%2Finvoices%2F%7Bdocument_id%7D%60+or\u0026amp;theme=749a62f2b8a3fccfdbd11508\u0026amp;signature=d628417068ee4d7e615fa309464a82bace679c1b09fa8adf961f6274f571141c\">\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/documents/find-a-document-by-your-reference\">\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/documents/find-a-document-by-your-reference.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.cufea.com/en/api-reference/documents/find-a-document-by-your-reference\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.cufea.com/api-reference/documents/find-a-document-by-your-reference\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.cufea.com/api-reference/documents/find-a-document-by-your-reference\">\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/documents/find-a-document-by-your-reference#webpage\",\"url\":\"https://docs.cufea.com/en/api-reference/documents/find-a-document-by-your-reference\",\"name\":\"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. An 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.\",\"dateModified\":\"2026-12-02T00:21:12.206Z\",\"isPartOf\":{\"@id\":\"https://docs.cufea.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cufea.com/en/api-reference/documents/find-a-document-by-your-reference#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cufea.com/en/api-reference/documents/find-a-document-by-your-reference#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cufea\",\"item\":\"https://docs.cufea.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Find a document by your reference\",\"item\":\"https://docs.cufea.com/en/api-reference/documents/find-a-document-by-your-reference\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cufea.com/en/api-reference/documents/find-a-document-by-your-reference#apireference\",\"headline\":\"Find a document by your reference\",\"name\":\"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. An 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.\",\"url\":\"https://docs.cufea.com/en/api-reference/documents/find-a-document-by-your-reference\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cufea.com/en/api-reference/documents/find-a-document-by-your-reference#webpage\"},\"dateModified\":\"2026-12-02T00:21:12.206Z\",\"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/documents/find-a-document-by-your-reference.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/documents/find-a-document-by-your-reference"}]},{"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","href":"/en/mcp"}]},{"group":"API reference","pages":[{"title":"API reference","description":"Every endpoint, generated from the Cufea OpenAPI contract, with a playground.","href":"/en/api-reference/introduction"}]},{"group":"Endpoints","pages":[{"group":"documents","pages":[{"title":"Find a document by your reference","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/documents","href":"/en/api-reference/documents/find-a-document-by-your-reference"},{"title":"List invoices","description":"Lists the invoices of the tenant and stage of this API key, for reconciliation or to recover from a lost webhook. Every filter is optional and they combine with AND. Results come newest first (by creation, then document id). Page with `limit` (1-50, default 20) and the `next_cursor` of the previous page, sent with the same filters; `next_cursor` is null on the last page. A page never repeats or skips documents when new ones are created while you walk the list. No match is 200 with an empty `items`, never a 404.","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":"Find a document by your reference - Cufea","deploymentId":"dpl_CwahHhD5zhwmkLtcenbR5oYrGaSo","buildId":"dpl_CwahHhD5zhwmkLtcenbR5oYrGaSo","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CsklGkqj.js","snippetPresets-DySYPWTE.js","utils-DlqXbn2Z.js","style-to-object-BY3JEAdk.js","utils-CNZi2ki2.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CZ4nNDyI.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Czy01zwI.js","_Uint8Array-BXxbZ64b.js","isObject-FP1Yky1u.js","ApiExamples-BKVybNxa.js","usePlaygroundInputsStore-Ca-_uBJe.js","shallow-BJoAzU99.js","isEqual-BWHPCynb.js","CodeSnippets-BCcP6y7P.js","CodeSnippet-oNwNNwzI.js","use-playground-group-access-B0PemaTS.js","Page-BLuebTMZ.js","api-description-markdown-1EUAreBL.js","DynamicMarkdown-ytLtrNim.js","SectionHeading-D29rJtSs.js","MethodPill-DhX987gr.js","getPastedJson-CWb7Z3a6.js","Check2Icon-DZFNp5XM.js","axios-CsQoIw0U.js","Markdown-vknXxXYq.js","AssistantPageLink-5_lhGmuY.js","dist-fHTI-EIG.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}