[{"data":1,"prerenderedAt":705},["ShallowReactive",2],{"navigation-ec":3,"navigation-mx":240,"/extraccion/extractions/compras/settlements-docs":296,"/extraccion/extractions/compras/settlements-surround":700},[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":74,"body":298,"datil":694,"description":695,"extension":696,"links":694,"meta":697,"navigation":426,"path":75,"seo":698,"stem":76,"__hash__":699},"docs/1.extraccion/3.extractions/compras/5.settlements.md",{"type":299,"value":300,"toc":690},"minimark",[301,305,310,612,616,678,686],[302,303,304],"p",{},"Para gestionar las liquidaciones recibidas 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],"h3",{"id":308},"crear-solicitud-de-la-tarea","Crear solicitud de la tarea",[311,312,318],"pre",{"className":313,"code":314,"filename":315,"language":316,"meta":317,"style":317},"language-js shiki shiki-themes github-light github-light github-dark-default","const axios = require('axios');\nlet data = JSON.stringify({\n  \"type\": \"PURCHASE.SETTLEMENT\",\n  \"taxpayerId\": \"1719932093001\",\n  \"startDownloadAt\": \"2025-02\"\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","",[319,320,321,352,376,391,404,415,421,428,441,452,463,469,482,493,499,505,511,516,528,551,572,578,597,607],"code",{"__ignoreMap":317},[322,323,326,330,334,337,341,345,349],"span",{"class":324,"line":325},"line",1,[322,327,329],{"class":328},"sQUWt","const",[322,331,333],{"class":332},"sr2uH"," axios",[322,335,336],{"class":328}," =",[322,338,340],{"class":339},"sKpWc"," require",[322,342,344],{"class":343},"swRb2","(",[322,346,348],{"class":347},"s2YLD","'axios'",[322,350,351],{"class":343},");\n",[322,353,355,358,361,364,367,370,373],{"class":324,"line":354},2,[322,356,357],{"class":328},"let",[322,359,360],{"class":343}," data ",[322,362,363],{"class":328},"=",[322,365,366],{"class":332}," JSON",[322,368,369],{"class":343},".",[322,371,372],{"class":339},"stringify",[322,374,375],{"class":343},"({\n",[322,377,379,382,385,388],{"class":324,"line":378},3,[322,380,381],{"class":347},"  \"type\"",[322,383,384],{"class":343},": ",[322,386,387],{"class":347},"\"PURCHASE.SETTLEMENT\"",[322,389,390],{"class":343},",\n",[322,392,394,397,399,402],{"class":324,"line":393},4,[322,395,396],{"class":347},"  \"taxpayerId\"",[322,398,384],{"class":343},[322,400,401],{"class":347},"\"1719932093001\"",[322,403,390],{"class":343},[322,405,407,410,412],{"class":324,"line":406},5,[322,408,409],{"class":347},"  \"startDownloadAt\"",[322,411,384],{"class":343},[322,413,414],{"class":347},"\"2025-02\"\n",[322,416,418],{"class":324,"line":417},6,[322,419,420],{"class":343},"});\n",[322,422,424],{"class":324,"line":423},7,[322,425,427],{"emptyLinePlaceholder":426},true,"\n",[322,429,431,433,436,438],{"class":324,"line":430},8,[322,432,357],{"class":328},[322,434,435],{"class":343}," config ",[322,437,363],{"class":328},[322,439,440],{"class":343}," {\n",[322,442,444,447,450],{"class":324,"line":443},9,[322,445,446],{"class":343},"  method: ",[322,448,449],{"class":347},"'post'",[322,451,390],{"class":343},[322,453,455,458,461],{"class":324,"line":454},10,[322,456,457],{"class":343},"  url: ",[322,459,460],{"class":347},"'https://staging-api.taxo.ws/tasks'",[322,462,390],{"class":343},[322,464,466],{"class":324,"line":465},11,[322,467,468],{"class":343},"  headers: {\n",[322,470,472,475,477,480],{"class":324,"line":471},12,[322,473,474],{"class":347},"    'x-api-key'",[322,476,384],{"class":343},[322,478,479],{"class":347},"'tu_api_key'",[322,481,390],{"class":343},[322,483,485,488,490],{"class":324,"line":484},13,[322,486,487],{"class":347},"    'Content-Type'",[322,489,384],{"class":343},[322,491,492],{"class":347},"'application/json'\n",[322,494,496],{"class":324,"line":495},14,[322,497,498],{"class":343},"  },\n",[322,500,502],{"class":324,"line":501},15,[322,503,504],{"class":343},"  data : data\n",[322,506,508],{"class":324,"line":507},16,[322,509,510],{"class":343},"};\n",[322,512,514],{"class":324,"line":513},17,[322,515,427],{"emptyLinePlaceholder":426},[322,517,519,522,525],{"class":324,"line":518},18,[322,520,521],{"class":343},"axios.",[322,523,524],{"class":339},"request",[322,526,527],{"class":343},"(config)\n",[322,529,531,533,536,539,543,546,549],{"class":324,"line":530},19,[322,532,369],{"class":343},[322,534,535],{"class":339},"then",[322,537,538],{"class":343},"((",[322,540,542],{"class":541},"sV72G","response",[322,544,545],{"class":343},") ",[322,547,548],{"class":328},"=>",[322,550,440],{"class":343},[322,552,554,557,560,562,565,567,569],{"class":324,"line":553},20,[322,555,556],{"class":343},"  console.",[322,558,559],{"class":339},"log",[322,561,344],{"class":343},[322,563,564],{"class":332},"JSON",[322,566,369],{"class":343},[322,568,372],{"class":339},[322,570,571],{"class":343},"(response.data));\n",[322,573,575],{"class":324,"line":574},21,[322,576,577],{"class":343},"})\n",[322,579,581,583,586,588,591,593,595],{"class":324,"line":580},22,[322,582,369],{"class":343},[322,584,585],{"class":339},"catch",[322,587,538],{"class":343},[322,589,590],{"class":541},"error",[322,592,545],{"class":343},[322,594,548],{"class":328},[322,596,440],{"class":343},[322,598,600,602,604],{"class":324,"line":599},23,[322,601,556],{"class":343},[322,603,559],{"class":339},[322,605,606],{"class":343},"(error);\n",[322,608,610],{"class":324,"line":609},24,[322,611,420],{"class":343},[306,613,615],{"id":614},"respuesta-de-la-solicitud","Respuesta de la solicitud",[311,617,621],{"className":618,"code":619,"filename":564,"language":620,"meta":317,"style":317},"language-json shiki shiki-themes github-light github-light github-dark-default","{\n  \"taxpayerId\": \"1719932093001\",\n  \"type\": \"PURCHASE.SETTLEMENT\",\n  \"creatstartDownloadAtedAt\": \"2025-02\",\n  \"triggerMethod\": \"MANUAL\",\n}\n","json",[319,622,623,628,639,649,661,673],{"__ignoreMap":317},[322,624,625],{"class":324,"line":325},[322,626,627],{"class":343},"{\n",[322,629,630,633,635,637],{"class":324,"line":354},[322,631,396],{"class":632},"svbbC",[322,634,384],{"class":343},[322,636,401],{"class":347},[322,638,390],{"class":343},[322,640,641,643,645,647],{"class":324,"line":378},[322,642,381],{"class":632},[322,644,384],{"class":343},[322,646,387],{"class":347},[322,648,390],{"class":343},[322,650,651,654,656,659],{"class":324,"line":393},[322,652,653],{"class":632},"  \"creatstartDownloadAtedAt\"",[322,655,384],{"class":343},[322,657,658],{"class":347},"\"2025-02\"",[322,660,390],{"class":343},[322,662,663,666,668,671],{"class":324,"line":406},[322,664,665],{"class":632},"  \"triggerMethod\"",[322,667,384],{"class":343},[322,669,670],{"class":347},"\"MANUAL\"",[322,672,390],{"class":343},[322,674,675],{"class":324,"line":417},[322,676,677],{"class":343},"}\n",[302,679,680,681,685],{},"Por defecto todas las tareas de extracciones empiezan en el estado ",[682,683,684],"strong",{},"INITIALIZED"," que nos indica que la tarea ha sido iniciada y podemos hacer su seguimiento en el webhook.",[687,688,689],"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":317,"searchDepth":325,"depth":354,"links":691},[692,693],{"id":308,"depth":378,"text":309},{"id":614,"depth":378,"text":615},null,"Cómo gestionar las liquidaciones recibidas utilizando el API de TAXO WS","md",{},{"title":74,"description":695},"Kdavx0bfdvGket8ENpDjDn8j29Eu3kTcCUx7Y3Qw_6w",[701,703],{"title":70,"path":71,"stem":72,"description":702,"children":-1},"Cómo gestionar las notas de débito recibidas utilizando el API de TAXO WS",{"title":78,"path":79,"stem":80,"description":704,"children":-1},"Cómo gestionar las documentos recibidos anulados utilizando el API de TAXO WS",1790201870666]