Get list of plans for a company

get

/PASService/rest/services/companies/{id}/plans

Gets a list of the latest 100 plans for a company based on the specified company Id

Request

Path Parameters
  • Pattern: \{?[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}?
    Company Id
Query Parameters
Back to Top

Response

Supported Media Types

Default Response

successful operation
Back to Top

Examples

This example describes how to get a list of the latest 100 plans for a company based on the specified company Id.

Example cURL Command

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

curl -X GET -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/companies/05711222-7DB3-4EBD-A821-57A30A699B88/plans"

Example Response Body

The following shows an example of the response body in JSON format:

"{
    "count": 17,
    "plans": [
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/companies/05711222-7DB3-4EBD-A821-57A30A699B88/plans/8E7DABE4-2FDB-472B-AD1D-E09BB85F3491",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                },
                {
                    "href": "http://server:port/PASService/rest/services/codes?codeName=PlanAllocationMethod&codeValue=01",
                    "rel": "codes/planAllocationMethodCode",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "effectiveFrom": "2000-08-08T00:00:00Z",
            "planName": "C-CB",
            "systemCode": "00",
            "defaultCurrencyCode": "USD",
            "pointInTimeValuation": "Y",
            "planAllocationMethodCode": "01",
            "updatedGmt": "2017-09-15T09:12:00Z",
            "activeGmt": "2017-09-15T09:12:00Z",
            "recordStatusCode": "ACTIVE",
            "updatedBy": "sbhukta",
            "planSliceId": "B19AF628-CDE4-41CF-A370-95F66A20D5F0",
            "planId": "8E7DABE4-2FDB-472B-AD1D-E09BB85F3491",
            "companyId": "05711222-7DB3-4EBD-A821-57A30A699B88",
            "marketMakerId": "27AE3B47-4A29-47EC-AAB0-6D91B250375F",
            "productId": "ED29E6B6-2C39-4477-AA63-1CAB06FE6455"
        },
        {
            "links": [
                {
                    "href": "http://server:port/PASService/rest/services/companies/05711222-7DB3-4EBD-A821-57A30A699B88/plans/58E2574A-B9F1-42FF-9326-C2C0EA0561D1",
                    "rel": "self",
                    "mediaType": "application/json",
                    "method": "GET"
                },
                {
                    "href": "http://server:port/PASService/rest/services/codes?codeName=PlanAllocationMethod&codeValue=01",
                    "rel": "codes/planAllocationMethodCode",
                    "mediaType": "application/json",
                    "method": "GET"
                }
            ],
            "effectiveFrom": "2000-08-08T00:00:00Z",
            "planName": "C-CB02",
            "systemCode": "00",
            "defaultCurrencyCode": "USD",
            "pointInTimeValuation": "Y",
            "planAllocationMethodCode": "01",
            "updatedGmt": "2017-09-15T09:12:00Z",
            "activeGmt": "2017-09-15T09:12:00Z",
            "recordStatusCode": "ACTIVE",
            "updatedBy": "sbhukta",
            "planSliceId": "7463B02D-F373-4021-819F-5D3763A38719",
            "planId": "58E2574A-B9F1-42FF-9326-C2C0EA0561D1",
            "companyId": "05711222-7DB3-4EBD-A821-57A30A699B88",
            "marketMakerId": "27AE3B47-4A29-47EC-AAB0-6D91B250375F",
            "productId": "ED29E6B6-2C39-4477-AA63-1CAB06FE6455"
        }
"
Back to Top