Get a constraint

get

https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/constraint/{id}

Request

Path Parameters
Query Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : Discriminator: @type
Type: object
Discriminator: @type

Discriminator Values

400 Response

Your request couldn't be processed because it contains missing or invalid information, such as a validation error on an input field, a missing required value, and so forth.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

401 Response

Your request isn't authorized. The authentication credentials included with this request are missing or invalid.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

404 Response

Your request includes a resource URI that doesn't exist.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

405 Response

HTTP action specified in the request (DELETE, GET, POST, PUT) isn't supported for this request URI.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

500 Response

The server encountered something unexpected that prevented it from completing the request.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source
Back to Top

Examples

The following example shows how to get a constraint by submitting a GET request on the REST resource using cURL.

cURL Command

curl -u username:password -X GET https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/constraint/CustTypeBasedConstraint001 \ -H 'Content-Type: application/json'

Example of Response Body

The following shows the contents of the response body in JSON format.

{
    "@type": "PricingConstraintVariantOracle",
    "@baseType": "Constraint",
    "constraintRule": [
        {
            "productOfferingPrice": [
                {
                    "id": "POPUsage002",
                    "name": "POPUsage002",
                    "version": "1.0",
                    "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/productOfferingPrice/POPUsage002",
                    "@referredType": "ProductOfferingPriceOracle"
                }
            ],
            "validFor": {
                "startDateTime": "2017-04-19T16:42:23.000Z"
            },
            "valueRelationship": [
                {
                    "value": "Gold"
                }
            ],
            "priceTag": "PriceTag02",
            "priority": 2
        },
        {
            "productOfferingPrice": [
                {
                    "id": "POPUsage001",
                    "name": "POPUsage001",
                    "version": "1.0",
                    "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/productOfferingPrice/POPUsage001",
                    "@referredType": "ProductOfferingPriceOracle"
                }
            ],
            "validFor": {
                "startDateTime": "2017-04-19T16:42:23.000Z"
            },
            "valueRelationship": [
                {
                    "value": "Platinum"
                }
            ],
            "priceTag": "PriceTag01",
            "priority": 1
        },
        {
            "productOfferingPrice": [
                {
                    "id": "POPUsage003",
                    "name": "POPUsage003",
                    "version": "1.0",
                    "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/productOfferingPrice/POPUsage003",
                    "@referredType": "ProductOfferingPriceOracle"
                }
            ],
            "validFor": {
                "startDateTime": "2017-04-19T16:42:23.000Z"
            },
            "valueRelationship": [
                {
                    "value": "Silver"
                }
            ],
            "priceTag": "PriceTag03",
            "priority": 3
        }
    ],
    "customerProfileSpecification": {
        "@referredType": "CustomerProfileSpecificationOracle",
        "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customerProfileSpecification/TestBRMCustomerProfile001",
        "name": "TestBRMCustomerProfile001",
        "id": "TestBRMCustomerProfile001"
    },
    "usageSpecification": {
        "@referredType": "UsageSpecificationOracle",
        "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/usageManagement/v2/usageSpecification/UsageSpecTelcoGSM001",
        "name": "UsageSpecTelcoGSM001",
        "id": "UsageSpecTelcoGSM001"
    },
    "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/constraint/CustTypeBasedConstraint001",
    "lastUpdate": "2020-10-01T09:08:16.000Z",
    "lastUpdatedBy": "booth",
    "createdBy": "booth",
    "created": "2020-09-30T07:55:51.000Z",
    "project": {
        "id": "ExtensionProject",
        "name": "Extension Project"
    },
    "description": "Description of CustTypeBasedConstraint001",
    "version": "1.0",
    "name": "CustTypeBasedConstraint001",
    "id": "CustTypeBasedConstraint001",
	"lifecycleStatus": "In design"

}
Back to Top