# Insights
source: https://developer.mastercard.com/carbon-calculator/documentation/testing/testcase/test_case_engagement_insights/index.md

Delivers insights and other suggestions that can inform the consumer about what they can do to reduce their footprint.

## Pre-requisites {#pre-requisites}

Refer to the [Insights](https://developer.mastercard.com/carbon-calculator/documentation/use-cases/engagement-services/insights/index.md) use case.


API Reference: `POST /insights`

<br />

## Test Cases {#test-cases}

### Test Case: Success-Insights {#test-case-success-insights}

##### Request {#request}

```json
{
  "mainCategory": "shopping",
  "main": "shopping",
  "docc": "30101",
  "spendingAreaId": "30",
  "subCategory": "clothes",
  "branding": "",
  "heading": "true",
  "language": "en",
  "profile": {
    "traits": {
      "knowledge": 0.75,
      "lifestyle": 0.246,
      "motivated": 0.675
    },
    "userAttributes": {
      "demo": 257,
      "diet": 1024,
      "lifestyle": 2,
      "energy": 0,
      "transport": 20517,
      "country": "GB"
    },

    "created": "2024-03-27T09:25:27.539Z",
    "surveys": {
      "viewed": {
        "onboardingVersion": 1
      }
    },
    "persona": "2"
  }
}
```

##### Response {#response}

```json
{
  "insights": [
    {
      "heading": "Go for energy efficient appliances",
      "id": "T100",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Recycle your e-waste",
      "id": "T101",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electronics"
    },
    {
      "heading": "Minimise your e-waste",
      "id": "T102",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electronics"
    },
    {
      "heading": "Recycle that old phone",
      "id": "T103",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electronics"
    },
    {
      "heading": "Contribute to the urban mine",
      "id": "T104",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electronics"
    },
    {
      "heading": "Mind your electronics",
      "id": "T105",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "electronics"
    },
    {
      "heading": "Look for responsibly produced seafood",
      "id": "T106",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Be your own food supplier",
      "id": "T107",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": ""
    },
    {
      "heading": "Variety is the spice of life",
      "id": "T108",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Monitor your energy",
      "id": "T109",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Go for a shower challenge",
      "id": "T110",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": ""
    },
    {
      "heading": "Do the cold water-hack",
      "id": "T111",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": ""
    },
    {
      "heading": "Lower the flow",
      "id": "T112",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": ""
    },
    {
      "heading": "Avoid flying if you can",
      "id": "T12",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "flights"
    },
    {
      "heading": "Less is more",
      "id": "T13",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Consider only buying clothes that will last a long time",
      "id": "T14",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Save energy in your home",
      "id": "T16",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Choose Green Energy",
      "id": "T17",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Use home appliances efficiently",
      "id": "T18",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Consider buying a refurbished phone",
      "id": "T19",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "electronics"
    },
    {
      "heading": "Minimise the new - maximise the vintage",
      "id": "T2",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Consider second hand clothes",
      "id": "T20",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Embrace slow fashion",
      "id": "T21",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Love your clothes - for longer",
      "id": "T23",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Pause the new - love the old",
      "id": "T24",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Consider flying less",
      "id": "T26",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "flights"
    },
    {
      "heading": "Skip the plane, go by train",
      "id": "T27",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "flights"
    },
    {
      "heading": "Eat more vegetables - less meat",
      "id": "T28",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Mind the materials",
      "id": "T30",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": ""
    },
    {
      "heading": "Make use of your leftovers",
      "id": "T32",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Use the AC with care",
      "id": "T33",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Recycle your waste",
      "id": "T35",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": ""
    },
    {
      "heading": "Green your heating",
      "id": "T36",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Saving water means saving energy",
      "id": "T37",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "waterUtilities"
    },
    {
      "heading": "Get the right temperature at your place",
      "id": "T39",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Replace a meat-rich meal with a vegetarian meal",
      "id": "T41",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Go low on the car use",
      "id": "T42",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "Sharing is caring!",
      "id": "T50",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "Eat with care",
      "id": "T52",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Go green on the electricity",
      "id": "T53",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Go vegetarian",
      "id": "T54",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Eat more greens - for the planet",
      "id": "T55",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Vegan for the win!",
      "id": "T56",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Plantify your plate!",
      "id": "T58",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Balance your plate for the sake of the planet",
      "id": "T59",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Go easy on the beef",
      "id": "T60",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Choose your meat with care",
      "id": "T61",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Mind what you eat",
      "id": "T62",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Choose your meat with care",
      "id": "T63",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Take the train instead of the car",
      "id": "T64",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "Go for renewable electricity",
      "id": "T65",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Try car-pooling",
      "id": "T66",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "Shift to active transport - walk or take the bike as often as you can!",
      "id": "T67",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "Favor the public transport before the car",
      "id": "T68",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "Think electric when using a car",
      "id": "T69",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "Switch the rice to potato or pasta",
      "id": "T7",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Go for the BEV!",
      "id": "T70",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "Use your household appliances wisely",
      "id": "T71",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Improve your heating efficiency",
      "id": "T72",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Look for quality and longevity when you go shopping for new clothes",
      "id": "T75",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Embrace circular fashion",
      "id": "T76",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Go on repeat",
      "id": "T77",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Be a part of the new old - go for second hand gold!",
      "id": "T78",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Mind your shopping - your wardrobe has an impact",
      "id": "T79",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Go for small and efficient cars",
      "id": "T80",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "If you own a car, join the movement and go electric!",
      "id": "T81",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "If you drive a petrol or diesel car, consider switching to an electric vehicle.",
      "id": "T82",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "Each ton has an impact",
      "id": "T83",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "flights"
    },
    {
      "heading": "Mind your impact",
      "id": "T84",
      "mainCategory": "all",
      "seen": false,
      "spendingAreaId": "",
      "subCategory": ""
    },
    {
      "heading": "Consider every flight that you take, only one hour of travel has a big impact.",
      "id": "T85",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "flights"
    },
    {
      "heading": "Favor electric movement!",
      "id": "T87",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "Try pescetarian - the fish based diet",
      "id": "T88",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Skip the red meat",
      "id": "T89",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Value your clothes",
      "id": "T9",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Try vegetarian Mondays!",
      "id": "T90",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Skip the flights and consider a staycation",
      "id": "T93",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "flights"
    },
    {
      "heading": "Use your power!",
      "id": "T94",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "Look for sustainably sourced and certified products.",
      "id": "T95",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Help reduce the extraction of new material by recycle as much as possible.",
      "id": "T96",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": ""
    },
    {
      "heading": "Boost the circular economy and avoid single-use products.",
      "id": "T97",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": ""
    },
    {
      "heading": "Try living car-free!",
      "id": "T98",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "Go circular with your tools",
      "id": "T1",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "hardware"
    },
    {
      "heading": "Increase your plant based ingredients",
      "id": "T29",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Make a promise to stop food waste",
      "id": "T3",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Don't let good food go to waste",
      "id": "T31",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Turn off the lights",
      "id": "T34",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Consider carsharing",
      "id": "T38",
      "mainCategory": "transport",
      "seen": false,
      "spendingAreaId": "40",
      "subCategory": "vehicle"
    },
    {
      "heading": "Stop owning, start borrowing",
      "id": "T4",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": ""
    },
    {
      "heading": "Support the decarbonized electricity production",
      "id": "T40",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Give gifts with positive impact",
      "id": "T5",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": ""
    },
    {
      "heading": "Go low on the beef",
      "id": "T57",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Skip Express Delivery when shopping online",
      "id": "T6",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Use the hot water with care",
      "id": "T73",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "waterUtilities"
    },
    {
      "heading": "Use the AC carefully",
      "id": "T74",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Use heating with care",
      "id": "T8",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Try plant-based protein",
      "id": "T86",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    },
    {
      "heading": "Consider the size of your living space",
      "id": "T91",
      "mainCategory": "home",
      "seen": false,
      "spendingAreaId": "10",
      "subCategory": "electricUtilities"
    },
    {
      "heading": "Let your unused clothing go",
      "id": "T92",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "clothes"
    },
    {
      "heading": "Redecorate your furniture before buying new",
      "id": "T10",
      "mainCategory": "shopping",
      "seen": false,
      "spendingAreaId": "30",
      "subCategory": "furniture"
    },
    {
      "heading": "Choose a varied and balanced meal",
      "id": "T11",
      "mainCategory": "foodDrinks",
      "seen": false,
      "spendingAreaId": "20",
      "subCategory": "groceries"
    }
  ],
  "language": "en",
  "total": 100,
  "profile": {
    "userAttributes": {
      "country": "GB",
      "demo": 257,
      "diet": 1024,
      "energy": 0,
      "lifestyle": 2,
      "transport": 20517
    },
    "benchmarks": {},
    "created": "2024-03-27T09:25:27Z",
    "persona": "2",
    "surveys": {
      "viewed": {
        "onboardingVersion": 1
      }
    },
    "traits": {
      "knowledge": 0.75,
      "lifestyle": 0.246,
      "motivated": 0.675
    }
  }
}
```

## Test Cases {#test-cases-1}

### Test Case: Success-Insights by ID {#test-case-success-insights-by-id}

##### Request {#request-1}

    {{host}}/insights/T101

##### Response {#response-1}

```json
{
  "content": "Around 17% of global e-waste is documented to be collected and properly recycled. Find out what you can do with your e-waste to contribute to increasing that number!",
  "heading": "Recycle your e-waste",
  "id": "T101",
  "mainCategory": "home",
  "notification": "",
  "source": "The Global E-waste Monitor 2020",
  "sourceDate": "2020-07-01",
  "sourceDescription": "The Global E-waste Monitor 2020",
  "sourceLink": "https://ewastemonitor.info/wp-content/uploads/2020/11/GEM_2020_def_july1_low.pdf",
  "spendingAreaId": "10",
  "subCategory": "electronics",
  "language": "en"
}
```

### Test Case: Fail-Invalid Request parameter-request body {#test-case-fail-invalid-request-parameter-request-body}

##### Request {#request-2}

```json
{
  "mainCategory": "shopping",
  "main": "shopping",
  "docc": "",
  "spendingAreaId": "",
  "subCategory": "clothes",
  "branding": "",
  "heading": true,
  "language":"en" ,
  "profile": {
    "created": "2025-01-07T10:17:38.027Z",
    "persona": "4",
    "traits": {
      "knowledge": 0.175,
      "lifestyle": 0.106,
      "motivated": 0.308
    }
  }
}
```

##### Response {#response-2}

```json
{
  "Errors": {
    "Error": [
      {
        "Source": "Carbon-Calculator-Engagement-Services",
        "ReasonCode": "INVALID_REQUEST_PARAMETER",
        "Description": "One of the request parameters is invalid, try again with correct request.",
        "Recoverable": false,
        "Details": "spendingAreaId must be in valid format"
      },
      {
        "Source": "Carbon-Calculator-Engagement-Services",
        "ReasonCode": "INVALID_REQUEST_PARAMETER",
        "Description": "One of the request parameters is invalid, try again with correct request.",
        "Recoverable": false,
        "Details": "profile.userAttributes must not be null"
      },
      {
        "Source": "Carbon-Calculator-Engagement-Services",
        "ReasonCode": "INVALID_REQUEST_PARAMETER",
        "Description": "One of the request parameters is invalid, try again with correct request.",
        "Recoverable": false,
        "Details": "docc must be in valid format"
      }
    ]
  }
}
```

### Test Case: Fail-Invalid Request parameter- country, maincategory, docc, subCategory {#test-case-fail-invalid-request-parameter--country-maincategory-docc-subcategory}

##### Request {#request-3}

```json

    {
    "mainCategory": "<script>alert(1);</script>",
    "main": "shopping",
    "docc": "<script>alert(1);</script>",
    "spendingAreaId": "30",
    "subCategory": "<script>alert(1);</script>",
    "branding": "",
    "heading": "true",
    "language": "en",
    "profile": {
    "traits": {
    "knowledge": 0.75,
    "lifestyle": 0.246,
    "motivated": 0.675
    },
    "userAttributes": {
    "demo": 257,
    "diet": 1024,
    "lifestyle": 2,
    "energy": 0,
    "transport": 20517,
    "country": "GBs"
    },
    
            "created": "2024-03-27T09:25:27.539Z",
            "surveys": {
                "viewed": {
                    "onboardingVersion": 1
                }
            },
            "persona": "2"
        }
    }
    
```

##### Response {#response-3}

```json
{
  "Errors": {
    "Error": [
      {
        "Source": "Carbon-Calculator-Engagement-Services",
        "ReasonCode": "INVALID_REQUEST_PARAMETER",
        "Description": "One of the request parameters is invalid, try again with correct request.",
        "Recoverable": false,
        "Details": "docc size must be between 0 and 10"
      },
      {
        "Source": "Carbon-Calculator-Engagement-Services",
        "ReasonCode": "INVALID_REQUEST_PARAMETER",
        "Description": "One of the request parameters is invalid, try again with correct request.",
        "Recoverable": false,
        "Details": "mainCategory must be in valid format"
      },
      {
        "Source": "Carbon-Calculator-Engagement-Services",
        "ReasonCode": "INVALID_REQUEST_PARAMETER",
        "Description": "One of the request parameters is invalid, try again with correct request.",
        "Recoverable": false,
        "Details": "profile.userAttributes.country must be exactly 2 uppercase letters"
      },
      {
        "Source": "Carbon-Calculator-Engagement-Services",
        "ReasonCode": "INVALID_REQUEST_PARAMETER",
        "Description": "One of the request parameters is invalid, try again with correct request.",
        "Recoverable": false,
        "Details": "subCategory must be in valid format"
      },
      {
        "Source": "Carbon-Calculator-Engagement-Services",
        "ReasonCode": "INVALID_REQUEST_PARAMETER",
        "Description": "One of the request parameters is invalid, try again with correct request.",
        "Recoverable": false,
        "Details": "docc must be in valid format"
      }
    ]
  }
}
```

### Test Case: Fail-Insight not found {#test-case-fail-insight-not-found}

##### Request {#request-4}

    {{host}}/insights/T1000

##### Response {#response-4}

```json
{
  "Errors": {
    "Error": [
      {
        "Source": "Carbon-Calculator",
        "ReasonCode": "ITEM_NOT_FOUND",
        "Description": "Insight Item not found for the provided id",
        "Recoverable": false,
        "Details": ""
      }
    ]
  }
}
```

