import requests

url = "https://autogestion-empresas.claro.com.ar/sap/fiori/zcrm0204gestionesgeneralesline/destination/epservice1_api/tmf-api/usageConsumption/v4/usageConsumptionReport"

# Updated parameters for the new line
params = {
    "product.publicIdentifier": "1127498532"
}

headers = {
    "Accept": "application/json, text/javascript, */*; q=0.01",
    "Content-Type": "application/json",
    "X-Requested-With": "XMLHttpRequest",
    "pChannelid": "CORPO",
    "pCuenta": "1867505941",
    "pLinea": "1127498532",
    "pSessionid": "CORPO-alegh-2026-04-10T02:10:46.649Z",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36",
    "Referer": "https://autogestion-empresas.claro.com.ar/sites/launchpad"
}

# Updated Cookies from your request
cookies = {
    "JSESSIONID": "A61B45DEB4AAD870E3D99424CA0E2C1A1BB2F9465C544A3B3CFFE0BDE763CC1F",
    "JTENANTSESSIONID_jth9imo31c": "r%2Fq8xoGKCav1gxecYqsCrip9tNoJsIA5jDqst2cw66k%3D",
    "mdsoucrsayaoolvxcnkaraaxkpdc": "Xx62mwMDtihyPBfWNfrrKyH8%2Fr%2FugLB2kGAetmSqHeTxzL%2B7IHXifAYtWnYvLNMONwMtDwMzn8ZQK2KrDsNd0c5Dk2R25lS6x%2FsHjkq5Yw0xoTDKT2T3VkyBHQGm0K7AqfZ4p16n%2BCK0SsGH%2FOZysQCKdy58Tf1PUzFoNVUA1aTFWckOJ8%2FD096kF3dPnJ%2Fao4Gx7BLWkIlRu1mvHhGalvlNNG1CBfIuFThot1fBWHllIkBLi%2Bgq0Nd%2FpJc1N0r5bQevfDFBIjCfctefcsJ%2B1D4hIxGuH1ToAjfD%2FhdOaUd7YMxDNayLe%2B6D8rU6SAgOqVt3Oiwe6IAyg7xOTTd4hs5SHDHEPIldnCmgzRhDrsXrsC6UXD0qcAN8d6r%2BbqYGCgGtaNGVffkpdwiC3HwCJPvzM2lBaJyGXpTUcApIMzakZIcHOvvkudOdqQV9es93"
}

response = requests.get(url, params=params, headers=headers, cookies=cookies)

if response.status_code == 200:
    print("Success!")
    print(response.json())
else:
    print(f"Failed with status: {response.status_code}")