feat(cfdi): descarga masiva de XMLs como ZIP, limite 1,000

This commit is contained in:
Horux Dev
2026-05-24 21:19:56 +00:00
parent 80e2c099d9
commit 5c940847af
5 changed files with 131 additions and 1 deletions

View File

@@ -91,6 +91,11 @@ export async function getCfdiById(id: string): Promise<Cfdi> {
return response.data;
}
export async function downloadXmlsZip(ids: number[]): Promise<Blob> {
const response = await apiClient.post('/cfdi/download-xmls', { ids }, { responseType: 'blob' });
return response.data;
}
export async function getResumenCfdi(año?: number, mes?: number, contribuyenteId?: string) {
const params = new URLSearchParams();
if (año) params.set('año', año.toString());