---
title: Investment portfolio
slug: mihai-tests/zdW5-investment-portfolio
createdAt: 2024-10-17T06:24:43.655Z
---

{
  "id": "-URSiCIkGEGJVEBjiPo5_",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "/api/v1/member/investment-portfolio/",
    "servers": [],
    "name": "Investment portfolio",
    "description": "Retrieve investment portfolio based on your application credential.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "kind": "required",
          "name": "X-Product-Id",
          "type": "string",
          "description": "Pass in product Id."
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Success",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "customType": "InvestmentPortfolio[]",
            "schema": [
              {
                "name": "key",
                "kind": "required",
                "type": "string",
                "example": ""
              },
              {
                "name": "name",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "portfolios",
                "kind": "required",
                "type": "array",
                "readOnly": true,
                "description": "",
                "modelRef": "#/components/schemas/ProductType",
                "customType": "ProductType[]",
                "schema": [
                  {
                    "name": "key",
                    "kind": "required",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "name",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  },
                  {
                    "name": "desc",
                    "kind": "optional",
                    "type": "string",
                    "example": ""
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/InvestmentPortfolio",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url /api/v1/member/investment-portfolio/ \\\n     --header 'accept: application/json' \\\n     --header 'x-product-id: string'"
        },
        {
          "id": "example-1-javascript",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-product-id\", \"string\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"/api/v1/member/investment-portfolio/\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/api/v1/member/investment-portfolio/\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-product-id\"] = \"string\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/api/v1/member/investment-portfolio/\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-product-id': 'string'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Success\n[\n  {\n    \"key\": \"\",\n    \"name\": \"\",\n    \"portfolios\": [\n      {\n        \"key\": \"\",\n        \"name\": \"\",\n        \"desc\": \"\"\n      }\n    ]\n  }\n]"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "id": "VBABTn2ntghdt9Hten8yv",
      "type": "paragraph",
      "children": [
        {
          "text": "Retrieve investment portfolio based on your application credential."
        }
      ]
    }
  ]
}