[{"data":1,"prerenderedAt":723},["ShallowReactive",2],{"navigation-ec":3,"navigation-mx":240,"/extraccion/extractions/ventas/invoices-docs":296,"/extraccion/extractions/ventas/invoices-surround":719},[4,153],{"title":5,"icon":6,"path":7,"stem":8,"children":9},"Extracción","i-lucide-download","/extraccion","1.extraccion",[10,13,25,40,102,109,149],{"title":11,"path":7,"stem":12},"Introducción","1.extraccion/index",{"title":14,"icon":15,"path":16,"stem":17,"children":18},"Empecemos","i-lucide-rocket","/extraccion/getting-started","1.extraccion/1.getting-started/index",[19,21],{"title":20,"path":16,"stem":17},"Introducción al API",{"title":22,"path":23,"stem":24},"Primeros Pasos","/extraccion/getting-started/installation","1.extraccion/1.getting-started/2.installation",{"title":26,"icon":27,"path":28,"stem":29,"children":30,"page":39},"Contribuyentes","i-lucide-users","/extraccion/taxpayers","1.extraccion/2.taxpayers",[31,35],{"title":32,"path":33,"stem":34},"Crear","/extraccion/taxpayers/create","1.extraccion/2.taxpayers/1.create",{"title":36,"path":37,"stem":38},"Actualizar","/extraccion/taxpayers/update","1.extraccion/2.taxpayers/2.update",false,{"title":41,"icon":42,"path":43,"stem":44,"children":45},"Extraer documentos","i-lucide-file-stack","/extraccion/extractions","1.extraccion/3.extractions/index",[46,48,52,81],{"title":47,"path":43,"stem":44},"Extracciones",{"title":49,"path":50,"stem":51},"RIDE","/extraccion/extractions/ride","1.extraccion/3.extractions/2.Ride",{"title":53,"path":54,"stem":55,"children":56,"page":39},"Documentos Recibidos","/extraccion/extractions/compras","1.extraccion/3.extractions/compras",[57,61,65,69,73,77],{"title":58,"path":59,"stem":60},"Compras","/extraccion/extractions/compras/purchases","1.extraccion/3.extractions/compras/1.purchases",{"title":62,"path":63,"stem":64},"Retenciones","/extraccion/extractions/compras/retentions","1.extraccion/3.extractions/compras/2.retentions",{"title":66,"path":67,"stem":68},"Notas de crédito","/extraccion/extractions/compras/credit-notes","1.extraccion/3.extractions/compras/3.credit-notes",{"title":70,"path":71,"stem":72},"Notas de débito","/extraccion/extractions/compras/debit-notes","1.extraccion/3.extractions/compras/4.debit-notes",{"title":74,"path":75,"stem":76},"Liquidaciones","/extraccion/extractions/compras/settlements","1.extraccion/3.extractions/compras/5.settlements",{"title":78,"path":79,"stem":80},"Anulados","/extraccion/extractions/compras/purchase-voids","1.extraccion/3.extractions/compras/6.purchase-voids",{"title":82,"path":83,"stem":84,"children":85,"page":39},"Documentos Emitidos","/extraccion/extractions/ventas","1.extraccion/3.extractions/ventas",[86,90,93,96,99],{"title":87,"path":88,"stem":89},"Ventas","/extraccion/extractions/ventas/invoices","1.extraccion/3.extractions/ventas/1.invoices",{"title":62,"path":91,"stem":92},"/extraccion/extractions/ventas/retentions","1.extraccion/3.extractions/ventas/2.retentions",{"title":66,"path":94,"stem":95},"/extraccion/extractions/ventas/credit-notes","1.extraccion/3.extractions/ventas/3.credit-notes",{"title":74,"path":97,"stem":98},"/extraccion/extractions/ventas/settlements","1.extraccion/3.extractions/ventas/4.settlements",{"title":78,"path":100,"stem":101},"/extraccion/extractions/ventas/sales-voids","1.extraccion/3.extractions/ventas/5.sales-voids",{"title":103,"path":104,"stem":105,"children":106,"icon":108},"Webhooks","/extraccion/webhooks","1.extraccion/4.webhooks/index",[107],{"title":103,"path":104,"stem":105},"i-lucide-webhook",{"title":110,"icon":111,"path":112,"stem":113,"children":114},"Consultas","i-lucide-search","/extraccion/consultas","1.extraccion/5.consultas/index",[115,117,121,125,129,133,137,141,145],{"title":116,"path":112,"stem":113},"Consultas y Solicitudes",{"title":118,"path":119,"stem":120},"Régimen Fiscal","/extraccion/consultas/regimen-fiscal","1.extraccion/5.consultas/1.regimen-fiscal",{"title":122,"path":123,"stem":124},"Obligaciones Fiscales","/extraccion/consultas/obligaciones-fiscales","1.extraccion/5.consultas/2.obligaciones-fiscales",{"title":126,"path":127,"stem":128},"Registro Público del Contribuyente (RUC)","/extraccion/consultas/registro-publico-ruc","1.extraccion/5.consultas/3.registro-publico-ruc",{"title":130,"path":131,"stem":132},"Solicitud de Extracción y Descarga de Documentos (RIDE/XML)","/extraccion/consultas/solicitud-extraccion-documentos","1.extraccion/5.consultas/4.solicitud-extraccion-documentos",{"title":134,"path":135,"stem":136},"Consulta y Búsqueda de Contribuyentes de la Organización","/extraccion/consultas/consulta-busqueda-contribuyentes","1.extraccion/5.consultas/5.consulta-busqueda-contribuyentes",{"title":138,"path":139,"stem":140},"Solicitud de Categorización de Documento con IA","/extraccion/consultas/solicitud-categorizacion-ia","1.extraccion/5.consultas/6.solicitud-categorizacion-ia",{"title":142,"path":143,"stem":144},"Solicitud de Descarga de Declaraciones (PDF) del SRI","/extraccion/consultas/solicitud-descarga-declaraciones","1.extraccion/5.consultas/7.solicitud-descarga-declaraciones",{"title":146,"path":147,"stem":148},"Buzón Tributario (Inbox) del Contribuyente","/extraccion/consultas/buzon-tributario-inbox","1.extraccion/5.consultas/8.buzon-tributario-inbox",{"title":150,"path":151,"stem":152},"Referencia de la API","/extraccion/referencia","1.extraccion/9.referencia",{"title":154,"icon":155,"path":156,"stem":157,"children":158},"Facturación","i-lucide-receipt","/facturacion","2.facturacion",[159,161,170,196,218],{"title":11,"path":156,"stem":160},"2.facturacion/index",{"title":162,"icon":15,"path":163,"stem":164,"children":165,"page":39},"Empezar","/facturacion/empezar","2.facturacion/1.empezar",[166],{"title":167,"path":168,"stem":169},"Autenticación","/facturacion/empezar/autenticacion","2.facturacion/1.empezar/1.autenticacion",{"title":171,"icon":172,"path":173,"stem":174,"children":175,"page":39},"Comprobantes","i-lucide-file-text","/facturacion/comprobantes","2.facturacion/2.comprobantes",[176,180,183,186,189,193],{"title":177,"path":178,"stem":179},"Facturas","/facturacion/comprobantes/facturas","2.facturacion/2.comprobantes/1.facturas",{"title":66,"path":181,"stem":182},"/facturacion/comprobantes/notas-de-credito","2.facturacion/2.comprobantes/2.notas-de-credito",{"title":70,"path":184,"stem":185},"/facturacion/comprobantes/notas-de-debito","2.facturacion/2.comprobantes/3.notas-de-debito",{"title":62,"path":187,"stem":188},"/facturacion/comprobantes/retenciones","2.facturacion/2.comprobantes/4.retenciones",{"title":190,"path":191,"stem":192},"Guías de remisión","/facturacion/comprobantes/guias-de-remision","2.facturacion/2.comprobantes/5.guias-de-remision",{"title":74,"path":194,"stem":195},"/facturacion/comprobantes/liquidaciones-de-compra","2.facturacion/2.comprobantes/6.liquidaciones-de-compra",{"title":197,"icon":198,"path":199,"stem":200,"children":201,"page":39},"Operaciones","i-lucide-workflow","/facturacion/operaciones","2.facturacion/3.operaciones",[202,206,210,214],{"title":203,"path":204,"stem":205},"Autorización","/facturacion/operaciones/autorizacion-de-comprobantes","2.facturacion/3.operaciones/1.autorizacion-de-comprobantes",{"title":207,"path":208,"stem":209},"Descarga","/facturacion/operaciones/descarga-de-comprobantes","2.facturacion/3.operaciones/2.descarga-de-comprobantes",{"title":211,"path":212,"stem":213},"Envío por correo","/facturacion/operaciones/envio-por-correo","2.facturacion/3.operaciones/3.envio-por-correo",{"title":215,"path":216,"stem":217},"Notificaciones","/facturacion/operaciones/notificaciones","2.facturacion/3.operaciones/4.notificaciones",{"title":219,"icon":220,"path":221,"stem":222,"children":223,"page":39},"Referencia","i-lucide-book-open","/facturacion/referencia","2.facturacion/4.referencia",[224,228,232,236],{"title":225,"path":226,"stem":227},"Objetos comunes","/facturacion/referencia/objetos-comunes","2.facturacion/4.referencia/1.objetos-comunes",{"title":229,"path":230,"stem":231},"Catálogo","/facturacion/referencia/catalogo","2.facturacion/4.referencia/2.catalogo",{"title":233,"path":234,"stem":235},"Consulta de catálogo","/facturacion/referencia/consulta-de-catalogo","2.facturacion/4.referencia/3.consulta-de-catalogo",{"title":237,"path":238,"stem":239},"Errores","/facturacion/referencia/errores","2.facturacion/4.referencia/4.errores",[241],{"title":242,"path":243,"stem":244,"children":245},"Mx","/mx","mx",[246,249,258,282],{"title":247,"path":243,"stem":248},"Documentación México","mx/index",{"title":14,"icon":39,"path":250,"stem":251,"children":252},"/mx/getting-started","mx/1.getting-started/index",[253,255],{"title":254,"path":250,"stem":251},"Introducción al API México",{"title":22,"path":256,"stem":257},"/mx/getting-started/installation","mx/1.getting-started/2.installation",{"title":26,"path":259,"stem":260,"children":261,"page":39},"/mx/taxpayers","mx/2.taxpayers",[262,266,270,274,278],{"title":263,"path":264,"stem":265},"Crear por CIEC","/mx/taxpayers/create-ciec","mx/2.taxpayers/1.create-ciec",{"title":267,"path":268,"stem":269},"1. Subir Certificados FIEL","/mx/taxpayers/upload-certificados-fiel","mx/2.taxpayers/2.upload-certificados-fiel",{"title":271,"path":272,"stem":273},"2. Registrar por FIEL","/mx/taxpayers/create-fiel","mx/2.taxpayers/3.create-fiel",{"title":275,"path":276,"stem":277},"Asociación CIEC / FIEL","/mx/taxpayers/asociar","mx/2.taxpayers/4.asociar",{"title":279,"path":280,"stem":281},"Consultar Taxpayers","/mx/taxpayers/consultar","mx/2.taxpayers/5.consultar",{"title":283,"path":284,"stem":285,"children":286},"Extracciones CFDI","/mx/extractions-cfdi","mx/3.extractions-cfdi/index",[287,288,292],{"title":283,"path":284,"stem":285},{"title":289,"path":290,"stem":291},"Extracción CFDI por CIEC","/mx/extractions-cfdi/ciec","mx/3.extractions-cfdi/1.ciec",{"title":293,"path":294,"stem":295},"Extracción CFDI por FIEL","/mx/extractions-cfdi/fiel","mx/3.extractions-cfdi/2.fiel",{"id":297,"title":87,"body":298,"datil":713,"description":714,"extension":715,"links":713,"meta":716,"navigation":445,"path":88,"seo":717,"stem":89,"__hash__":718},"docs/1.extraccion/3.extractions/ventas/1.invoices.md",{"type":299,"value":300,"toc":709},"minimark",[301,305,312,317,322,329,631,635,697,705],[302,303,304],"p",{},"Para gestionar las facturas de venta utilizando el API de TAXO WS, puedes seguir este ejemplo práctico que muestra cómo hacer una petición POST para crear una tarea que descargará el tipo de documento seleccionado.",[306,307,309],"callout",{"icon":308},"i-heroicons-light-bulb",[302,310,311],{},"El campo startDownloadAt define el rango de descarga, para documentos emitidos se debe ingresar siempre el año, mes y día (ej. \"2025-02-03\").",[313,314,316],"h3",{"id":315},"crear-solicitud-de-la-tarea","Crear solicitud de la tarea",[318,319],"api-endpoint",{"method":320,"path":321},"POST","/tasks",[302,323,324],{},[325,326,328],"a",{"href":327},"/extraccion/referencia#tag/tasks/POST/tasks","Ver en la referencia",[330,331,337],"pre",{"className":332,"code":333,"filename":334,"language":335,"meta":336,"style":336},"language-js shiki shiki-themes github-light github-light github-dark-default","const axios = require('axios');\nlet data = JSON.stringify({\n  \"type\": \"SALE.INVOICE\",\n  \"taxpayerId\": \"1719932093001\",\n  \"startDownloadAt\": \"2025-02-03\"\n});\n\nlet config = {\n  method: 'post',\n  url: 'https://staging-api.taxo.ws/tasks',\n  headers: {\n    'x-api-key': 'tu_api_key',\n    'Content-Type': 'application/json'\n  },\n  data : data\n};\n\naxios.request(config)\n.then((response) => {\n  console.log(JSON.stringify(response.data));\n})\n.catch((error) => {\n  console.log(error);\n});\n","Javascript","js","",[338,339,340,371,395,410,423,434,440,447,460,471,482,488,501,512,518,524,530,535,547,570,591,597,616,626],"code",{"__ignoreMap":336},[341,342,345,349,353,356,360,364,368],"span",{"class":343,"line":344},"line",1,[341,346,348],{"class":347},"sQUWt","const",[341,350,352],{"class":351},"sr2uH"," axios",[341,354,355],{"class":347}," =",[341,357,359],{"class":358},"sKpWc"," require",[341,361,363],{"class":362},"swRb2","(",[341,365,367],{"class":366},"s2YLD","'axios'",[341,369,370],{"class":362},");\n",[341,372,374,377,380,383,386,389,392],{"class":343,"line":373},2,[341,375,376],{"class":347},"let",[341,378,379],{"class":362}," data ",[341,381,382],{"class":347},"=",[341,384,385],{"class":351}," JSON",[341,387,388],{"class":362},".",[341,390,391],{"class":358},"stringify",[341,393,394],{"class":362},"({\n",[341,396,398,401,404,407],{"class":343,"line":397},3,[341,399,400],{"class":366},"  \"type\"",[341,402,403],{"class":362},": ",[341,405,406],{"class":366},"\"SALE.INVOICE\"",[341,408,409],{"class":362},",\n",[341,411,413,416,418,421],{"class":343,"line":412},4,[341,414,415],{"class":366},"  \"taxpayerId\"",[341,417,403],{"class":362},[341,419,420],{"class":366},"\"1719932093001\"",[341,422,409],{"class":362},[341,424,426,429,431],{"class":343,"line":425},5,[341,427,428],{"class":366},"  \"startDownloadAt\"",[341,430,403],{"class":362},[341,432,433],{"class":366},"\"2025-02-03\"\n",[341,435,437],{"class":343,"line":436},6,[341,438,439],{"class":362},"});\n",[341,441,443],{"class":343,"line":442},7,[341,444,446],{"emptyLinePlaceholder":445},true,"\n",[341,448,450,452,455,457],{"class":343,"line":449},8,[341,451,376],{"class":347},[341,453,454],{"class":362}," config ",[341,456,382],{"class":347},[341,458,459],{"class":362}," {\n",[341,461,463,466,469],{"class":343,"line":462},9,[341,464,465],{"class":362},"  method: ",[341,467,468],{"class":366},"'post'",[341,470,409],{"class":362},[341,472,474,477,480],{"class":343,"line":473},10,[341,475,476],{"class":362},"  url: ",[341,478,479],{"class":366},"'https://staging-api.taxo.ws/tasks'",[341,481,409],{"class":362},[341,483,485],{"class":343,"line":484},11,[341,486,487],{"class":362},"  headers: {\n",[341,489,491,494,496,499],{"class":343,"line":490},12,[341,492,493],{"class":366},"    'x-api-key'",[341,495,403],{"class":362},[341,497,498],{"class":366},"'tu_api_key'",[341,500,409],{"class":362},[341,502,504,507,509],{"class":343,"line":503},13,[341,505,506],{"class":366},"    'Content-Type'",[341,508,403],{"class":362},[341,510,511],{"class":366},"'application/json'\n",[341,513,515],{"class":343,"line":514},14,[341,516,517],{"class":362},"  },\n",[341,519,521],{"class":343,"line":520},15,[341,522,523],{"class":362},"  data : data\n",[341,525,527],{"class":343,"line":526},16,[341,528,529],{"class":362},"};\n",[341,531,533],{"class":343,"line":532},17,[341,534,446],{"emptyLinePlaceholder":445},[341,536,538,541,544],{"class":343,"line":537},18,[341,539,540],{"class":362},"axios.",[341,542,543],{"class":358},"request",[341,545,546],{"class":362},"(config)\n",[341,548,550,552,555,558,562,565,568],{"class":343,"line":549},19,[341,551,388],{"class":362},[341,553,554],{"class":358},"then",[341,556,557],{"class":362},"((",[341,559,561],{"class":560},"sV72G","response",[341,563,564],{"class":362},") ",[341,566,567],{"class":347},"=>",[341,569,459],{"class":362},[341,571,573,576,579,581,584,586,588],{"class":343,"line":572},20,[341,574,575],{"class":362},"  console.",[341,577,578],{"class":358},"log",[341,580,363],{"class":362},[341,582,583],{"class":351},"JSON",[341,585,388],{"class":362},[341,587,391],{"class":358},[341,589,590],{"class":362},"(response.data));\n",[341,592,594],{"class":343,"line":593},21,[341,595,596],{"class":362},"})\n",[341,598,600,602,605,607,610,612,614],{"class":343,"line":599},22,[341,601,388],{"class":362},[341,603,604],{"class":358},"catch",[341,606,557],{"class":362},[341,608,609],{"class":560},"error",[341,611,564],{"class":362},[341,613,567],{"class":347},[341,615,459],{"class":362},[341,617,619,621,623],{"class":343,"line":618},23,[341,620,575],{"class":362},[341,622,578],{"class":358},[341,624,625],{"class":362},"(error);\n",[341,627,629],{"class":343,"line":628},24,[341,630,439],{"class":362},[313,632,634],{"id":633},"respuesta-de-la-solicitud","Respuesta de la solicitud",[330,636,640],{"className":637,"code":638,"filename":583,"language":639,"meta":336,"style":336},"language-json shiki shiki-themes github-light github-light github-dark-default","{\n  \"taxpayerId\": \"1719932093001\",\n  \"type\": \"SALE.INVOICE\",\n  \"creatstartDownloadAtedAt\": \"2025-02-03\",\n  \"triggerMethod\": \"MANUAL\",\n}\n","json",[338,641,642,647,658,668,680,692],{"__ignoreMap":336},[341,643,644],{"class":343,"line":344},[341,645,646],{"class":362},"{\n",[341,648,649,652,654,656],{"class":343,"line":373},[341,650,415],{"class":651},"svbbC",[341,653,403],{"class":362},[341,655,420],{"class":366},[341,657,409],{"class":362},[341,659,660,662,664,666],{"class":343,"line":397},[341,661,400],{"class":651},[341,663,403],{"class":362},[341,665,406],{"class":366},[341,667,409],{"class":362},[341,669,670,673,675,678],{"class":343,"line":412},[341,671,672],{"class":651},"  \"creatstartDownloadAtedAt\"",[341,674,403],{"class":362},[341,676,677],{"class":366},"\"2025-02-03\"",[341,679,409],{"class":362},[341,681,682,685,687,690],{"class":343,"line":425},[341,683,684],{"class":651},"  \"triggerMethod\"",[341,686,403],{"class":362},[341,688,689],{"class":366},"\"MANUAL\"",[341,691,409],{"class":362},[341,693,694],{"class":343,"line":436},[341,695,696],{"class":362},"}\n",[302,698,699,700,704],{},"Por defecto todas las tareas de extracciones empiezan en el estado ",[701,702,703],"strong",{},"INITIALIZED"," que nos indica que la tarea ha sido iniciada y podemos hacer su seguimiento en el webhook.",[706,707,708],"style",{},"html pre.shiki code .sQUWt, html code.shiki .sQUWt{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#FF7B72}html pre.shiki code .sr2uH, html code.shiki .sr2uH{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79C0FF}html pre.shiki code .sKpWc, html code.shiki .sKpWc{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#D2A8FF}html pre.shiki code .swRb2, html code.shiki .swRb2{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E6EDF3}html pre.shiki code .s2YLD, html code.shiki .s2YLD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#A5D6FF}html pre.shiki code .sV72G, html code.shiki .sV72G{--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFA657}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .svbbC, html code.shiki .svbbC{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#7EE787}",{"title":336,"searchDepth":344,"depth":373,"links":710},[711,712],{"id":315,"depth":397,"text":316},{"id":633,"depth":397,"text":634},null,"Cómo gestionar las facturas de compra utilizando el API de TAXO WS","md",{},{"title":87,"description":714},"Tlwsiq3yPTS7hXGswTfJyy6jC8z1KNAX4su5KUtWmHg",[720,722],{"title":78,"path":79,"stem":80,"description":721,"children":-1},"Cómo gestionar las documentos recibidos anulados utilizando el API de TAXO WS",{"title":62,"path":91,"stem":92,"description":714,"children":-1},1790201870688]