fix/T2026-05-054-procesar-acuses
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user