Get Funds

get

/PASService/rest/services/v1/funds

Gets Fund definitions. Use q for standard search expressions or use the documented Fund filter query parameters; q cannot be combined with direct filters.

Request

Query Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Funds were retrieved successfully.

400 Response

The query or expand value is invalid.
Back to Top

Examples

This example describes how to retrieve Funds:

  • Without a fundId, the operation returns a list or collection and supports the companyId, fundName, typeCode, relationType, and parentFundId query parameters.
  • With a fundId, the operation returns a complete Fund aggregate, including fund data, fund fields, relation fields, related Funds, and links.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl \
    -X GET \
    -H "Accept: application/json" \
    -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
    -L "http://server:port/PASService/rest/services/v1/funds"

Example Response Body for Get Funds in JSON

The following shows an example collection response in JSON format:

{
  "count": 2,
  "offset": 0,
  "limit": 100,
  "funds": [
    {
      "fundId": "3A3E0388-91DE-4ADB-879D-A5F4B2D22E2E",
      "companyId": "7204C2FE-13B1-4A48-8CDA-DE8386C60EF9",
      "fundName": "Balanced",
      "typeCode": "02",
      "calendarCode": "01",
      "currencyCode": "USD",
      "overrideOffset": false,
      "fundOffsetDays": null,
      "fundCode": "BAL",
      "relatedFunds": [
        {
          "fundRelationId": "A0F1D8CC-B134-4199-9A58-7D73BC0D8F9D",
          "fundId": "5C92DCBC-538D-41E6-BF40-6A66199B7475",
          "parentFundId": "3A3E0388-91DE-4ADB-879D-A5F4B2D22E2E",
          "relationType": "01",
          "fundName": "Balanced Band 160",
          "effectiveDate": null,
          "expirationDate": null,
          "bandVariable": "160",
          "relatedFunds": [
            {
              "fundRelationId": "B2DE438F-3958-43B6-AD9D-C128BF276D40",
              "fundId": "CCF43492-FE94-4E08-AC76-A62200690BC7",
              "parentFundId": "5C92DCBC-538D-41E6-BF40-6A66199B7475",
              "relationType": "02",
              "fundName": "Balanced Band 160 3.0",
              "effectiveDate": null,
              "expirationDate": null,
              "bandVariable": "160",
              "investmentRate": "3.0",
              "links": [
                {
                  "href": "PASService/rest/services/v1/funds?fundId=CCF43492-FE94-4E08-AC76-A62200690BC7",
                  "rel": "self",
                  "mediaType": "application/json",
                  "method": "GET"
                }
              ]
            }
          ],
          "links": [
            {
              "href": "PASService/rest/services/v1/funds?fundId=5C92DCBC-538D-41E6-BF40-6A66199B7475",
              "rel": "self",
              "mediaType": "application/json",
              "method": "GET"
            }
          ]
        },
        {
          "fundRelationId": "3A4391BC-97AE-4B97-BCA2-07C19ABF064A",
          "fundId": "186A521A-7C08-4429-9D6D-24EF5C6D8DE2",
          "parentFundId": "3A3E0388-91DE-4ADB-879D-A5F4B2D22E2E",
          "relationType": "03",
          "fundName": "Balanced 02 10/02/2000",
          "effectiveDate": "2000-10-02T00:00:00Z",
          "expirationDate": null,
          "fundSubCode": "02",
          "links": [
            {
              "href": "PASService/rest/services/v1/funds?fundId=186A521A-7C08-4429-9D6D-24EF5C6D8DE2",
              "rel": "self",
              "mediaType": "application/json",
              "method": "GET"
            }
          ]
        }
      ],
      "links": [
        {
          "href": "PASService/rest/services/v1/funds?fundId=3A3E0388-91DE-4ADB-879D-A5F4B2D22E2E",
          "rel": "self",
          "mediaType": "application/json",
          "method": "GET"
        },
        {
          "href": "PASService/rest/services/v1/funds/3A3E0388-91DE-4ADB-879D-A5F4B2D22E2E/productFunds",
          "rel": "productFunds",
          "mediaType": "application/json",
          "method": "GET"
        },
        {
          "href": "PASService/rest/services/v1/funds/3A3E0388-91DE-4ADB-879D-A5F4B2D22E2E/planFunds",
          "rel": "planFunds",
          "mediaType": "application/json",
          "method": "GET"
        },
        {
          "href": "PASService/rest/services/v1/funds/3A3E0388-91DE-4ADB-879D-A5F4B2D22E2E/fundAssetClasses",
          "rel": "fundAssetClasses",
          "mediaType": "application/json",
          "method": "GET"
        },
        {
          "href": "PASService/rest/services/codes?codeName=AsCodeFundType",
          "rel": "codes/fundType",
          "mediaType": "application/json",
          "method": "GET"
        },
        {
          "href": "PASService/rest/services/codes?codeName=AsCodeCalendar",
          "rel": "codes/calendarCode",
          "mediaType": "application/json",
          "method": "GET"
        },
        {
          "href": "PASService/rest/services/currencies",
          "rel": "currencies/currencyCode",
          "mediaType": "application/json",
          "method": "GET"
        }
      ]
    }
  ]
}

Example Response Body When fundId Is Specified in JSON

The following shows an example response when the fundId query parameter is specified:

{
  "fund": {
    "fundId": "3A3E0388-91DE-4ADB-879D-A5F4B2D22E2E",
    "companyId": "7204C2FE-13B1-4A48-8CDA-DE8386C60EF9",
    "fundName": "Balanced",
    "typeCode": "02",
    "calendarCode": "01",
    "currencyCode": "USD",
    "overrideOffset": false,
    "fundOffsetDays": null,
    "fundCode": "BAL",
    "relatedFunds": [
      {
        "fundRelationId": "A0F1D8CC-B134-4199-9A58-7D73BC0D8F9D",
        "fundId": "5C92DCBC-538D-41E6-BF40-6A66199B7475",
        "parentFundId": "3A3E0388-91DE-4ADB-879D-A5F4B2D22E2E",
        "relationType": "01",
        "fundName": "Balanced Band 160",
        "effectiveDate": null,
        "expirationDate": null,
        "bandVariable": "160",
        "relatedFunds": [
          {
            "fundRelationId": "B2DE438F-3958-43B6-AD9D-C128BF276D40",
            "fundId": "CCF43492-FE94-4E08-AC76-A62200690BC7",
            "parentFundId": "5C92DCBC-538D-41E6-BF40-6A66199B7475",
            "relationType": "02",
            "fundName": "Balanced Band 160 3.0",
            "effectiveDate": null,
            "expirationDate": null,
            "bandVariable": "160",
            "investmentRate": "3.0",
            "links": [
              {
                "href": "PASService/rest/services/v1/funds?fundId=CCF43492-FE94-4E08-AC76-A62200690BC7",
                "rel": "self",
                "mediaType": "application/json",
                "method": "GET"
              }
            ]
          }
        ],
        "links": [
          {
            "href": "PASService/rest/services/v1/funds?fundId=5C92DCBC-538D-41E6-BF40-6A66199B7475",
            "rel": "self",
            "mediaType": "application/json",
            "method": "GET"
          }
        ]
      },
      {
        "fundRelationId": "3A4391BC-97AE-4B97-BCA2-07C19ABF064A",
        "fundId": "186A521A-7C08-4429-9D6D-24EF5C6D8DE2",
        "parentFundId": "3A3E0388-91DE-4ADB-879D-A5F4B2D22E2E",
        "relationType": "03",
        "fundName": "Balanced 02 10/02/2000",
        "effectiveDate": "2000-10-02T00:00:00Z",
        "expirationDate": null,
        "fundSubCode": "02",
        "links": [
          {
            "href": "PASService/rest/services/v1/funds?fundId=186A521A-7C08-4429-9D6D-24EF5C6D8DE2",
            "rel": "self",
            "mediaType": "application/json",
            "method": "GET"
          }
        ]
      }
    ],
    "links": [
      {
        "href": "PASService/rest/services/v1/funds?fundId=3A3E0388-91DE-4ADB-879D-A5F4B2D22E2E",
        "rel": "self",
        "mediaType": "application/json",
        "method": "GET"
      },
      {
        "href": "PASService/rest/services/v1/funds/3A3E0388-91DE-4ADB-879D-A5F4B2D22E2E/productFunds",
        "rel": "productFunds",
        "mediaType": "application/json",
        "method": "GET"
      },
      {
        "href": "PASService/rest/services/v1/funds/3A3E0388-91DE-4ADB-879D-A5F4B2D22E2E/planFunds",
        "rel": "planFunds",
        "mediaType": "application/json",
        "method": "GET"
      },
      {
        "href": "PASService/rest/services/v1/funds/3A3E0388-91DE-4ADB-879D-A5F4B2D22E2E/fundAssetClasses",
        "rel": "fundAssetClasses",
        "mediaType": "application/json",
        "method": "GET"
      },
      {
        "href": "PASService/rest/services/codes?codeName=AsCodeFundType",
        "rel": "codes/fundType",
        "mediaType": "application/json",
        "method": "GET"
      },
      {
        "href": "PASService/rest/services/codes?codeName=AsCodeCalendar",
        "rel": "codes/calendarCode",
        "mediaType": "application/json",
        "method": "GET"
      },
      {
        "href": "PASService/rest/services/currencies",
        "rel": "currencies/currencyCode",
        "mediaType": "application/json",
        "method": "GET"
      }
    ]
  }
}
Back to Top