Browse Source

fix: correct ShopRenter API URL to use api2.myshoprenter.hu domain #79

Claude 5 months ago
parent
commit
35826c099b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      supabase/functions/_shared/shoprenter-client.ts

+ 1 - 1
supabase/functions/_shared/shoprenter-client.ts

@@ -249,7 +249,7 @@ export async function shopRenterApiRequest(
   const accessToken = await getValidAccessToken(storeId)
   const accessToken = await getValidAccessToken(storeId)
 
 
   // Build API URL
   // Build API URL
-  const apiUrl = `https://${store.store_name}.shoprenter.hu/api${endpoint}`
+  const apiUrl = `https://${store.store_name}.api2.myshoprenter.hu/api${endpoint}`
 
 
   // Make request
   // Make request
   const options: RequestInit = {
   const options: RequestInit = {