track code

This commit is contained in:
hamid zarghami
2025-10-30 11:47:37 +03:30
parent 9d18c8c612
commit 5b514c362d
5 changed files with 144 additions and 2 deletions
+9
View File
@@ -1,4 +1,5 @@
import axios from "../../../config/axios";
import type { AddTrackCodeType } from "../types/ReturnTypes";
import type {
CancelReasonsResponseType,
CreateCancelReasonType,
@@ -77,3 +78,11 @@ export const getOrderReturns = async (page: number = 1) => {
});
return data;
};
export const addTrackCode = async (params: AddTrackCodeType) => {
const { data } = await axios.post(
`/order/${params.orderId}/admin/track-code`,
params
);
return data;
};