From d3b97082160c315d0d2606067e7a5528747e18ea Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 5 Apr 2025 20:59:15 -0400 Subject: [PATCH] auth=auth --- app/api/integrations/simbrella.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/api/integrations/simbrella.py b/app/api/integrations/simbrella.py index 7c4ff4f..b04b1df 100644 --- a/app/api/integrations/simbrella.py +++ b/app/api/integrations/simbrella.py @@ -1,4 +1,5 @@ import requests +from requests.auth import HTTPBasicAuth from app.utils.logger import logger from app.config import settings @@ -23,7 +24,6 @@ class SimbrellaIntegration: "crc": False, "crms": True, "accountStatus": "active", - "lienAmount": 0, "lien": False, "noBouncedCheck": True, "existingLoan": False, @@ -35,9 +35,10 @@ class SimbrellaIntegration: } logger.error(f"This is PayLoad: {str(payload)}",exc_info=True) + auth = HTTPBasicAuth(settings.VALID_APP_ID, settings.VALID_APP_SECRET) try: - response = requests.post(url, json=payload, timeout=10) + response = requests.post(url, json=payload, timeout=10, auth=auth) logger.error(f"This is Response: {str(response)}", exc_info=True) # Raise an error for non-200 responses response.raise_for_status()