diff --git a/src/screens/Order/Orders.res b/src/screens/Order/Orders.res
index 6673d13d5..846e6dc61 100644
--- a/src/screens/Order/Orders.res
+++ b/src/screens/Order/Orders.res
@@ -86,9 +86,7 @@ let make = (~previewOnly=false) => {
let customUI =
- let filterUrlV2 = React.useMemo1(() => {
- `${Window.env.apiBaseUrl}/payments/v2/filter`
- }, [Window.env.apiBaseUrl])
+ let filterUrlV2 = getURL(~entityName=ORDERS, ~methodType=Get, ~id=Some("v2/filter"), ())
let filtersUI = React.useMemo0(() => {
{
let {generateReport} = HyperswitchAtom.featureFlagAtom->Recoil.useRecoilValueFromAtom
- let filterUrlV2 = React.useMemo1(() => {
- `${Window.env.apiBaseUrl}/payments/v2/filter`
- }, [Window.env.apiBaseUrl])
+ let filterUrlV2 = getURL(~entityName=REFUNDS, ~methodType=Get, ~id=Some("v2/filter"), ())