Get product by Id

get

/PASService/rest/services/products/{id}

Gets a product based on the specified product 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}\}?
    Product Id
Back to Top

Response

Supported Media Types

Default Response

successful operation
Back to Top

Examples

This example describes how to get a product based on the specified product 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/groupCustomers/D289E962-EB6E-4E21-A234-8BA0F2E44796"

Example Response Body

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

"{
    "product": {
        "links": [
            {
                "href": "http://server:port/PASService/rest/services/products/48C12B7F-BB92-47AE-8723-22085BF9FC91",
                "rel": "self",
                "mediaType": "application/json",
                "method": "GET"
            },
            {
                "href": "http://server:port/PASService/rest/services/products/48C12B7F-BB92-47AE-8723-22085BF9FC91/plans",
                "rel": "plans",
                "mediaType": "application/json",
                "method": "GET"
            }
        ],
        "codes": {},
        "productName": "New_Product_4",
        "productDescription": "TestA",
        "effectiveFrom": "2016-11-11T00:00:00Z",
        "effectiveTo": "2018-11-11T00:00:00Z",
        "ancestorId": "98FDD6D7-8FA0-4FBA-9032-9D5AA901E9AA",
        "plans": [
            {
                "links": [
                    {
                        "href": "http://server:port/PASService/rest/services/products/48C12B7F-BB92-47AE-8723-22085BF9FC91/plans/54792151-44B4-44CC-B6F9-2A1C50078323",
                        "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"
                    },
                    {
                        "href": "http://server:port/PASService/rest/services/codes?codeName=PlanBusinessStatus&codeValue=Pending",
                        "rel": "codes/businessStatus",
                        "mediaType": "application/json",
                        "method": "GET"
                    }
                ],
                "multiFields": {},
                "codes": [
                    {
                        "codeName": "AsCodePlanAllocationMethod",
                        "codeValue": "01",
                        "longDescription": "Default",
                        "shortDescription": "Default"
                    },
                    {
                        "codeName": "AsCodePlanBusinessStatus",
                        "codeValue": "Pending",
                        "longDescription": "Pending",
                        "shortDescription": "Pending"
                    }
                ],
                "effectiveFrom": "2015-08-04T00:00:00Z",
                "effectiveTo": "2018-08-04T00:00:00Z",
                "planName": "hhi",
                "systemCode": "01",
                "defaultCurrencyCode": "USD",
                "pointInTimeValuation": "Y",
                "mixedValuation": "N",
                "planAllocationMethodCode": "01",
                "updatedGmt": "2019-10-11T05:06:58Z",
                "activeGmt": "2019-10-11T05:06:58Z",
                "recordStatusCode": "DRAFT",
                "updatedBy": "qatester3",
                "businessStatusCode": "Pending",
                "planSliceId": "018ED17C-F178-45D6-B0BD-AEB37EB40295",
                "planId": "54792151-44B4-44CC-B6F9-2A1C50078323",
                "companyId": "80798FC2-FEB9-4998-A575-513FF89698B1",
                "marketMakerId": "22FBC7C1-D8E0-4741-9D22-DF929A2890B5",
                "productId": "48C12B7F-BB92-47AE-8723-22085BF9FC91"
            }
        ],
        "productId": "48C12B7F-BB92-47AE-8723-22085BF9FC91",
        "companyId": "80798FC2-FEB9-4998-A575-513FF89698B1"
    }
}
"
Back to Top