[{"data":1,"prerenderedAt":742},["ShallowReactive",2],{"navigation-ec":3,"navigation-mx":240,"/extraccion/extractions/ventas/credit-notes-docs":328,"/extraccion/extractions/ventas/credit-notes-surround":739},[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},"México","/mx","mx",[246,249,301],{"title":247,"path":243,"stem":248},"Documentación México","mx/index",{"title":5,"icon":6,"path":250,"stem":251,"children":252},"/mx/extraccion","mx/1.extraccion/index",[253,254,263,287],{"title":11,"path":250,"stem":251},{"title":14,"icon":39,"path":255,"stem":256,"children":257},"/mx/extraccion/getting-started","mx/1.extraccion/1.getting-started/index",[258,260],{"title":259,"path":255,"stem":256},"Introducción al API México",{"title":22,"path":261,"stem":262},"/mx/extraccion/getting-started/installation","mx/1.extraccion/1.getting-started/2.installation",{"title":26,"path":264,"stem":265,"children":266,"page":39},"/mx/extraccion/taxpayers","mx/1.extraccion/2.taxpayers",[267,271,275,279,283],{"title":268,"path":269,"stem":270},"Crear por CIEC","/mx/extraccion/taxpayers/create-ciec","mx/1.extraccion/2.taxpayers/1.create-ciec",{"title":272,"path":273,"stem":274},"1. Subir Certificados FIEL","/mx/extraccion/taxpayers/upload-certificados-fiel","mx/1.extraccion/2.taxpayers/2.upload-certificados-fiel",{"title":276,"path":277,"stem":278},"2. Registrar por FIEL","/mx/extraccion/taxpayers/create-fiel","mx/1.extraccion/2.taxpayers/3.create-fiel",{"title":280,"path":281,"stem":282},"Asociación CIEC / FIEL","/mx/extraccion/taxpayers/asociar","mx/1.extraccion/2.taxpayers/4.asociar",{"title":284,"path":285,"stem":286},"Consultar Taxpayers","/mx/extraccion/taxpayers/consultar","mx/1.extraccion/2.taxpayers/5.consultar",{"title":288,"path":289,"stem":290,"children":291},"Extracciones CFDI","/mx/extraccion/extractions-cfdi","mx/1.extraccion/3.extractions-cfdi/index",[292,293,297],{"title":288,"path":289,"stem":290},{"title":294,"path":295,"stem":296},"Extracción CFDI por CIEC","/mx/extraccion/extractions-cfdi/ciec","mx/1.extraccion/3.extractions-cfdi/1.ciec",{"title":298,"path":299,"stem":300},"Extracción CFDI por FIEL","/mx/extraccion/extractions-cfdi/fiel","mx/1.extraccion/3.extractions-cfdi/2.fiel",{"title":154,"icon":155,"path":302,"stem":303,"children":304},"/mx/facturacion","mx/2.facturacion/index",[305,306,309,313,317,321,325],{"title":11,"path":302,"stem":303},{"title":167,"path":307,"stem":308},"/mx/facturacion/autenticacion","mx/2.facturacion/1.autenticacion",{"title":310,"path":311,"stem":312},"Planes","/mx/facturacion/planes","mx/2.facturacion/2.planes",{"title":314,"path":315,"stem":316},"Clientes","/mx/facturacion/clientes","mx/2.facturacion/3.clientes",{"title":318,"path":319,"stem":320},"Suscripciones","/mx/facturacion/suscripciones","mx/2.facturacion/4.suscripciones",{"title":322,"path":323,"stem":324},"Folios","/mx/facturacion/folios","mx/2.facturacion/5.folios",{"title":150,"path":326,"stem":327},"/mx/facturacion/referencia","mx/2.facturacion/9.referencia",{"id":329,"title":66,"body":330,"datil":733,"description":734,"extension":735,"links":733,"meta":736,"navigation":465,"path":94,"seo":737,"stem":95,"__hash__":738},"docs/1.extraccion/3.extractions/ventas/3.credit-notes.md",{"type":331,"value":332,"toc":729},"minimark",[333,337,344,349,651,655,717,725],[334,335,336],"p",{},"Para gestionar las notas de crédito 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.",[338,339,341],"callout",{"icon":340},"i-heroicons-light-bulb",[334,342,343],{},"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\").",[345,346,348],"h3",{"id":347},"crear-solicitud-de-la-tarea","Crear solicitud de la tarea",[350,351,357],"pre",{"className":352,"code":353,"filename":354,"language":355,"meta":356,"style":356},"language-js shiki shiki-themes github-light github-light github-dark-default","const axios = require('axios');\nlet data = JSON.stringify({\n  \"type\": \"SALE.CREDIT_NOTE\",\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","",[358,359,360,391,415,430,443,454,460,467,480,491,502,508,521,532,538,544,550,555,567,590,611,617,636,646],"code",{"__ignoreMap":356},[361,362,365,369,373,376,380,384,388],"span",{"class":363,"line":364},"line",1,[361,366,368],{"class":367},"sQUWt","const",[361,370,372],{"class":371},"sr2uH"," axios",[361,374,375],{"class":367}," =",[361,377,379],{"class":378},"sKpWc"," require",[361,381,383],{"class":382},"swRb2","(",[361,385,387],{"class":386},"s2YLD","'axios'",[361,389,390],{"class":382},");\n",[361,392,394,397,400,403,406,409,412],{"class":363,"line":393},2,[361,395,396],{"class":367},"let",[361,398,399],{"class":382}," data ",[361,401,402],{"class":367},"=",[361,404,405],{"class":371}," JSON",[361,407,408],{"class":382},".",[361,410,411],{"class":378},"stringify",[361,413,414],{"class":382},"({\n",[361,416,418,421,424,427],{"class":363,"line":417},3,[361,419,420],{"class":386},"  \"type\"",[361,422,423],{"class":382},": ",[361,425,426],{"class":386},"\"SALE.CREDIT_NOTE\"",[361,428,429],{"class":382},",\n",[361,431,433,436,438,441],{"class":363,"line":432},4,[361,434,435],{"class":386},"  \"taxpayerId\"",[361,437,423],{"class":382},[361,439,440],{"class":386},"\"1719932093001\"",[361,442,429],{"class":382},[361,444,446,449,451],{"class":363,"line":445},5,[361,447,448],{"class":386},"  \"startDownloadAt\"",[361,450,423],{"class":382},[361,452,453],{"class":386},"\"2025-02-03\"\n",[361,455,457],{"class":363,"line":456},6,[361,458,459],{"class":382},"});\n",[361,461,463],{"class":363,"line":462},7,[361,464,466],{"emptyLinePlaceholder":465},true,"\n",[361,468,470,472,475,477],{"class":363,"line":469},8,[361,471,396],{"class":367},[361,473,474],{"class":382}," config ",[361,476,402],{"class":367},[361,478,479],{"class":382}," {\n",[361,481,483,486,489],{"class":363,"line":482},9,[361,484,485],{"class":382},"  method: ",[361,487,488],{"class":386},"'post'",[361,490,429],{"class":382},[361,492,494,497,500],{"class":363,"line":493},10,[361,495,496],{"class":382},"  url: ",[361,498,499],{"class":386},"'https://staging-api.taxo.ws/tasks'",[361,501,429],{"class":382},[361,503,505],{"class":363,"line":504},11,[361,506,507],{"class":382},"  headers: {\n",[361,509,511,514,516,519],{"class":363,"line":510},12,[361,512,513],{"class":386},"    'x-api-key'",[361,515,423],{"class":382},[361,517,518],{"class":386},"'tu_api_key'",[361,520,429],{"class":382},[361,522,524,527,529],{"class":363,"line":523},13,[361,525,526],{"class":386},"    'Content-Type'",[361,528,423],{"class":382},[361,530,531],{"class":386},"'application/json'\n",[361,533,535],{"class":363,"line":534},14,[361,536,537],{"class":382},"  },\n",[361,539,541],{"class":363,"line":540},15,[361,542,543],{"class":382},"  data : data\n",[361,545,547],{"class":363,"line":546},16,[361,548,549],{"class":382},"};\n",[361,551,553],{"class":363,"line":552},17,[361,554,466],{"emptyLinePlaceholder":465},[361,556,558,561,564],{"class":363,"line":557},18,[361,559,560],{"class":382},"axios.",[361,562,563],{"class":378},"request",[361,565,566],{"class":382},"(config)\n",[361,568,570,572,575,578,582,585,588],{"class":363,"line":569},19,[361,571,408],{"class":382},[361,573,574],{"class":378},"then",[361,576,577],{"class":382},"((",[361,579,581],{"class":580},"sV72G","response",[361,583,584],{"class":382},") ",[361,586,587],{"class":367},"=>",[361,589,479],{"class":382},[361,591,593,596,599,601,604,606,608],{"class":363,"line":592},20,[361,594,595],{"class":382},"  console.",[361,597,598],{"class":378},"log",[361,600,383],{"class":382},[361,602,603],{"class":371},"JSON",[361,605,408],{"class":382},[361,607,411],{"class":378},[361,609,610],{"class":382},"(response.data));\n",[361,612,614],{"class":363,"line":613},21,[361,615,616],{"class":382},"})\n",[361,618,620,622,625,627,630,632,634],{"class":363,"line":619},22,[361,621,408],{"class":382},[361,623,624],{"class":378},"catch",[361,626,577],{"class":382},[361,628,629],{"class":580},"error",[361,631,584],{"class":382},[361,633,587],{"class":367},[361,635,479],{"class":382},[361,637,639,641,643],{"class":363,"line":638},23,[361,640,595],{"class":382},[361,642,598],{"class":378},[361,644,645],{"class":382},"(error);\n",[361,647,649],{"class":363,"line":648},24,[361,650,459],{"class":382},[345,652,654],{"id":653},"respuesta-de-la-solicitud","Respuesta de la solicitud",[350,656,660],{"className":657,"code":658,"filename":603,"language":659,"meta":356,"style":356},"language-json shiki shiki-themes github-light github-light github-dark-default","{\n  \"taxpayerId\": \"1719932093001\",\n  \"type\": \"SALE.CREDIT_NOTE\",\n  \"creatstartDownloadAtedAt\": \"2025-02-03\",\n  \"triggerMethod\": \"MANUAL\",\n}\n","json",[358,661,662,667,678,688,700,712],{"__ignoreMap":356},[361,663,664],{"class":363,"line":364},[361,665,666],{"class":382},"{\n",[361,668,669,672,674,676],{"class":363,"line":393},[361,670,435],{"class":671},"svbbC",[361,673,423],{"class":382},[361,675,440],{"class":386},[361,677,429],{"class":382},[361,679,680,682,684,686],{"class":363,"line":417},[361,681,420],{"class":671},[361,683,423],{"class":382},[361,685,426],{"class":386},[361,687,429],{"class":382},[361,689,690,693,695,698],{"class":363,"line":432},[361,691,692],{"class":671},"  \"creatstartDownloadAtedAt\"",[361,694,423],{"class":382},[361,696,697],{"class":386},"\"2025-02-03\"",[361,699,429],{"class":382},[361,701,702,705,707,710],{"class":363,"line":445},[361,703,704],{"class":671},"  \"triggerMethod\"",[361,706,423],{"class":382},[361,708,709],{"class":386},"\"MANUAL\"",[361,711,429],{"class":382},[361,713,714],{"class":363,"line":456},[361,715,716],{"class":382},"}\n",[334,718,719,720,724],{},"Por defecto todas las tareas de extracciones empiezan en el estado ",[721,722,723],"strong",{},"INITIALIZED"," que nos indica que la tarea ha sido iniciada y podemos hacer su seguimiento en el webhook.",[726,727,728],"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":356,"searchDepth":364,"depth":393,"links":730},[731,732],{"id":347,"depth":417,"text":348},{"id":653,"depth":417,"text":654},null,"Cómo gestionar las facturas de compra utilizando el API de TAXO WS","md",{},{"title":66,"description":734},"WF0-Nl86phdLahWtfD0JW0qV9jjqMSbbTvXSCnhfSpI",[740,741],{"title":62,"path":91,"stem":92,"description":734,"children":-1},{"title":74,"path":97,"stem":98,"description":734,"children":-1},1792432128117]