diff --git a/server/utils/wrenClient.js b/server/utils/wrenClient.js index 3d4dd3c..f1149e3 100644 --- a/server/utils/wrenClient.js +++ b/server/utils/wrenClient.js @@ -1,6 +1,6 @@ import axios from 'axios'; -const WREN_API_BASE_URL = 'https://api.wren.co/v1'; +const WREN_API_BASE_URL = 'https://www.wren.co/api'; /** * Create a carbon offset order via Wren Climate API @@ -45,7 +45,7 @@ export async function createWrenOffsetOrder({ try { const response = await axios.post( - `${WREN_API_BASE_URL}/offset_orders`, + `${WREN_API_BASE_URL}/offset-orders`, { tons: parseFloat(tons), portfolio: portfolioId, @@ -111,7 +111,7 @@ export async function getWrenOffsetOrder(orderId) { try { const response = await axios.get( - `${WREN_API_BASE_URL}/offset_orders/${orderId}`, + `${WREN_API_BASE_URL}/offset-orders/${orderId}`, { headers: { 'Authorization': `Bearer ${apiToken}`,