fix/T2026-05-054-procesar-acuses

This commit is contained in:
2026-05-25 14:49:51 -06:00
parent f6c4e0af56
commit f60c581a02
3 changed files with 820 additions and 250 deletions

View File

@@ -56,3 +56,12 @@ export const downloadAcuseEdocument = async (edocId) => {
window.URL.revokeObjectURL(url);
document.body.removeChild(a);
};
export const resetAcuseEdocument = async (edocId) => {
const response = await fetchWithAuth(
`${API_BASE_URL}/customs/edocuments/${edocId}/reset-acuse/`,
{ method: 'POST' }
);
if (!response.ok) throw new Error(await extractApiError(response));
return response.json();
};