Create Pricing for a Product Offering

post

http://host:port/productCatalogManagement/v4/productOfferingPrice

Creates pricing for a product offering with the given name in promoted status. Specify the @type in the request body based on the scenario, either as ProductOfferingPriceOracle or ProductOfferingPriceSelectorOracle.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : ProductOfferingPriceOracle
Type: object
Title: ProductOfferingPriceOracle
Match All
Show Source
  • Discriminator: @type
    Discriminator: { "propertyName":"@type", "mapping":{ "ProductOfferingPrice":"#/components/schemas/ProductOfferingPrice", "ProductOfferingPriceOracle":"#/components/schemas/ProductOfferingPriceOracle" } }
    It is based on both the basic cost to develop and produce products and the enterprises policy on revenue targets. This price may be further revised through discounting (a product offering price that reflects an alteration). The price applied for a product offering may also be influenced by factors such as the product offering term, the customer selected etc. For example, a product offering can be offered with multiple terms, like commitment periods for the contract. The price may be influenced by this product offering term. A product offering may be cheaper with a 24 month commitment than with a 12 month commitment.
  • Discriminator: @type
    Discriminator: { "propertyName":"@type", "mapping":{ "ProductOfferingPriceOracle":"#/components/schemas/ProductOfferingPriceOracle" } }
Nested Schema : Discriminator: @type
Type: object
Discriminator: @type

Discriminator Values

It is based on both the basic cost to develop and produce products and the enterprises policy on revenue targets. This price may be further revised through discounting (a product offering price that reflects an alteration). The price applied for a product offering may also be influenced by factors such as the product offering term, the customer selected etc. For example, a product offering can be offered with multiple terms, like commitment periods for the contract. The price may be influenced by this product offering term. A product offering may be cheaper with a 24 month commitment than with a 12 month commitment.
Show Source
Nested Schema : Discriminator: @type
Type: object
Discriminator: @type

Discriminator Values

Show Source
Back to Top

Response

Supported Media Types

201 Response

The product offering price was created successfully.
Body ()
Root Schema : ProductOfferingPriceOracle
Type: object
Title: ProductOfferingPriceOracle
Match All
Show Source
  • Discriminator: @type
    Discriminator: { "propertyName":"@type", "mapping":{ "ProductOfferingPrice":"#/components/schemas/ProductOfferingPrice", "ProductOfferingPriceOracle":"#/components/schemas/ProductOfferingPriceOracle" } }
    It is based on both the basic cost to develop and produce products and the enterprises policy on revenue targets. This price may be further revised through discounting (a product offering price that reflects an alteration). The price applied for a product offering may also be influenced by factors such as the product offering term, the customer selected etc. For example, a product offering can be offered with multiple terms, like commitment periods for the contract. The price may be influenced by this product offering term. A product offering may be cheaper with a 24 month commitment than with a 12 month commitment.
  • Discriminator: @type
    Discriminator: { "propertyName":"@type", "mapping":{ "ProductOfferingPriceOracle":"#/components/schemas/ProductOfferingPriceOracle" } }
Nested Schema : Discriminator: @type
Type: object
Discriminator: @type

Discriminator Values

It is based on both the basic cost to develop and produce products and the enterprises policy on revenue targets. This price may be further revised through discounting (a product offering price that reflects an alteration). The price applied for a product offering may also be influenced by factors such as the product offering term, the customer selected etc. For example, a product offering can be offered with multiple terms, like commitment periods for the contract. The price may be influenced by this product offering term. A product offering may be cheaper with a 24 month commitment than with a 12 month commitment.
Show Source
Nested Schema : Discriminator: @type
Type: object
Discriminator: @type

Discriminator Values

Show Source

400 Response

The server cannot process the request due to a client error.
Body ()
Root Schema : Error
Type: object
Used when an API throws an error, typically with an HTTP error response-code.
Show Source

401 Response

The user's authentication credentials for the target resource are invalid.
Body ()
Root Schema : Error
Type: object
Used when an API throws an error, typically with an HTTP error response-code.
Show Source

404 Response

The requested resource was not found, but it could be accessible in the future. Subsequent client requests are permitted.
Body ()
Root Schema : Error
Type: object
Used when an API throws an error, typically with an HTTP error response-code.
Show Source

405 Response

The requested resource does not support the particular request method.
Body ()
Root Schema : Error
Type: object
Used when an API throws an error, typically with an HTTP error response-code.
Show Source

500 Response

When an unexpected condition is identified and no specific message is appropriate, this generic error message is displayed.
Body ()
Root Schema : Error
Type: object
Used when an API throws an error, typically with an HTTP error response-code.
Show Source
Back to Top

Examples

Example 1: Create a Product Offering Price using a One Time Charge

The following example shows how to create a product offering price using a one time offer containing a combination of more than one BI with a price tag as an example by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL.

Note:

The @type in the request payload will be "@type": "ProductOfferingPriceOracle".

The -d option specifies the file to attach as the request body.

curl -X POST 'http://host:port/productCatalogManagement/v4/productOfferingPrice' -d @sampleProductOfferingPrice.json

Example of Request Body

The following is an example of the contents of the sampleProductOfferingPrice.json file sent as the request body.

{
    "@baseType": "ProductOfferingPrice",
    "@type": "ProductOfferingPriceOracle",
    "eventCandidate": {
        "name": "EventBillingProductFeePurchase"
    },
    "href": "productCatalogManagement/v4/productOfferingPrice/OT_MultiBI_charge7126",
    "id": "OT_MultiBI_charge7126",
    "isBundle": false,
    "name": "OT_MultiBI_charge7126",
    "priceType": "ONE_TIME",
    "lastUpdate": "2023-03-28T23:56:21Z",
    "lifecycleStatus": "Active",
    "rumCandidate": {
        "name": "OCCURRENCE"
    },
    "taxOracle": [
        {
            "@type":"TaxItemOracle",
            "id": "ct_direct",
            "taxCategory": "VERTEX_COMMTAX_21",
            "taxTime": "BILLING_TIME"
        }
    ],
    "validFor": {
        "endDateTime": "2023-05-01T00:33:55Z",
        "startDateTime": "2023-04-02T00:33:50Z"
    },
    "version": "1.0",
    "priceAlteration": [
        {
            "@type": "POPAlterationOracle",
            "price": {
                "@type":"ProductPriceValueOracle",
                "dutyFreeAmount": {
                    "unit": "USD",
                    "value": 100.0
                },
                "priceTag": {
                    "@type":"PriceTag",
                    "attributeName": "price",
                    "description": "tag_USD_100",
                    "tagName": "tag_USD_100",
                    "tagScope": "EVENT_PROFILE"
                }
            }
                 
        },
        {
            "@type": "POPAlterationOracle",
            "price": {
                "@type":"ProductPriceValueOracle",
                "dutyFreeAmount": {
                    "unit": "MIN",
                    "value": 110.0
                }
            }
                 
        }
    ]
}

Example of Response Body

The following is an example of the response body in JSON format.

{
    "@baseType": "ProductOfferingPrice",
    "@type": "ProductOfferingPriceOracle",
    "eventCandidate": {
        "name": "EventBillingProductFeePurchase"
    },
    "href": "productCatalogManagement/v4/productOfferingPrice/OT_MultiBI_charge7126",
    "id": "OT_MultiBI_charge7126",
    "isBundle": false,
    "name": "OT_MultiBI_charge7126",
    "priceType": "ONE_TIME",
    "lastUpdate": "2023-03-28T23:56:21Z",
    "lifecycleStatus": "Active",
    "rumCandidate": {
        "name": "OCCURRENCE"
    },
    "taxOracle": [
        {
            "@type":"TaxItemOracle",
            "id": "ct_direct",
            "taxCategory": "VERTEX_COMMTAX_21",
            "taxTime": "BILLING_TIME"
        }
    ],
    "validFor": {
        "endDateTime": "2023-05-01T00:33:55Z",
        "startDateTime": "2023-04-02T00:33:50Z"
    },
    "version": "1.0",
    "priceAlteration": [
        {
            "@type": "POPAlterationOracle",
            "price": {
                "@type":"ProductPriceValueOracle",
                "dutyFreeAmount": {
                    "unit": "USD",
                    "value": 100.0
                },
                "priceTag": {
                    "@type":"PriceTag",
                    "attributeName": "price",
                    "description": "tag_USD_100",
                    "tagName": "tag_USD_100",
                    "tagScope": "EVENT_PROFILE"
                }
            }
                 
        },
        {
            "@type": "POPAlterationOracle",
            "price": {
                "@type":"ProductPriceValueOracle",
                "dutyFreeAmount": {
                    "unit": "MIN",
                    "value": 110.0
                }
            }
                 
        }
    ]
}

Example 2: Create a Product Offering Price using a Charge Selector

The following example shows how to create a product offering price using a charge selector as an example by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL.

Note:

The @type in the request payload will be "@type": "ProductOfferingPriceSelectorOracle".

The -d option specifies the file to attach as the request body.

curl -X POST 'http://host:port/productCatalogManagement/v4/productOfferingPrice' -d @createChargeSelector.json

Example of Request Body

The following is an example of the contents of the createChargeSelector.json file sent as the request body.
{
	"@type": "ProductOfferingPriceSelectorOracle",
	"@baseType": "ProductOfferingPrice",
	"id": "ChargeSelectorPop",
	"name": "ChargeSelectorPop",
	"href": "mobile/custom/catalogManagement/productOfferingPrice/ChargeSelectorPop",
	"description": "Description of  Recurring Monthly Price",
	"lastUpdate": "2023-08-04T06:50:17.017Z",
	"lifecycleStatus": "Active",
	"isBundle": false,
	"priceType": "ONE_TIME_PRICE_PLAN",
	"eventCandidate": {
		"name": "EventBillingProductFeePurchase"
	},
	"serviceCandidate": {
		"@referredType": "ServiceCandidate",
		"@type": "ServiceCandidateRef",
		"id": "TelcoGsm",
		"name": "TelcoGsm"
	},
	"popRelationship": [
		{
			"@type": "ProductOfferingPriceRelationshipOracle",
			"relationshipType": "COMPOSITE",
			"name": "ChargeSelRule_1",
			"id": "ChargeSelRule_1",
			"href": "mobile/custom/catalogManagement/productOfferingPrice/ChargeSelRule_1"
		}
	],
	"constraint": [
		{
			"@type": "ConstraintOracle",
			"constraintRule": [
				{
					"name": "Rule1",
					"productOfferingPrice": [
						{
							"@type": "ProductOfferingPriceOracle",
							"@baseType": "productOfferingPrice",
							"id": "ChargeSelRule_1",
							"name": "ChargeSelRule_1",                                    
							"description": "Description of one time Price",
							"lastUpdate": "2023-08-04T06:50:17.017Z",
							"lifecycleStatus": "Active",
							"isBundle": false,
							"priceType": "ONE_TIME",
							"priceAlteration": [
								{
									"@type": "POPAlterationOracle",
									"unitOfMeasure": {
										"amount": 1,
										"units": "NONE"
									},
									"price": {
										"@type": "ProductPriceValueOracle",
										"dutyFreeAmount": {
											"unit": "USD",
											"value": 10
										}
									}
								}
							],
							"validFor": {
								"startDateTime": "2023-08-04T06:50:17.017Z",
								"endDateTime": "2024-08-04T06:55:17.017Z"
							},
							"rumCandidate": {
								"name": "NONE"
							},
							"eventCandidate": {
								"name": "EventBillingProductFeePurchase"
							}
						}
					],
					"valueRelationship": [
						{
							"fieldKind": "PRODUCT_SPEC_FIELD",
							"fieldName": "TelcoGsm.NAME",
							"fieldValue": "Sam*",
							"operation": "EQUAL_TO",
							"separator": ";"
						}
					]
				}
			],
		
			"version": "1.0",
			"stereoType": "CHARGE_RATE_PLAN_SELECTOR",
			"name": "ChargeSelectorPop",
			"id": "ChargeSelectorPop"
		}
	],
	"validFor": {
		"startDateTime": "2023-08-04T06:50:17.017Z",
		"endDateTime": "2024-08-04T06:55:17.017Z"
	}
}

Example of Response Body

The following is an example of the response body in JSON format.

{
    "atBaseType": "ProductOfferingPrice",
    "atType": "ProductOfferingPriceSelectorOracle",
    "constraint": [
        {
            "atType": "ConstraintOracle",
            "id": "ChargeSelectorPop",
            "name": "ChargeSelectorPop",
            "version": "1.0",
            "constraintRule": [
                {
                    "name": "Rule1",
                    "productOfferingPrice": [
                        {
                            "atBaseType": "productOfferingPrice",
                            "atType": "ProductOfferingPriceOracle",
                            "description": "Description of one time Price",
                            "eventCandidate": {
                                "name": "EventBillingProductFeePurchase"
                            },
                            "id": "ChargeSelRule_1",
                            "isBundle": false,
                            "lastUpdate": "2023-08-04T06:50:17.017Z",
                            "lifecycleStatus": "Active",
                            "name": "ChargeSelRule_1",
                            "priceType": "ONE_TIME",
                            "rumCandidate": {
                                "name": "NONE"
                            },
                            "validFor": {
                                "endDateTime": "2024-08-04T06:55:17.017Z",
                                "startDateTime": "2023-08-04T06:50:17.017Z"
                            },
                            "priceAlteration": [
                                {
                                    "atType": "POPAlterationOracle",
                                    "unitOfMeasure": {
                                        "amount": 1.0,
                                        "units": "NONE"
                                    },
                                    "price": {
                                        "atType": "ProductPriceValueOracle",
                                        "dutyFreeAmount": {
                                            "unit": "USD",
                                            "value": 10.0
                                        }
                                    }
                                }
                            ]
                        }
                    ],
                    "valueRelationship": [
                        {
                            "fieldKind": "PRODUCT_SPEC_FIELD",
                            "fieldName": "TelcoGsm.NAME",
                            "fieldValue": "Sam*",
                            "operation": "EQUAL_TO",
                            "separator": ";"
                        }
                    ]
                }
            ],
            "stereoType": "CHARGE_RATE_PLAN_SELECTOR"
        }
    ],
    "description": "Description of  Recurring Monthly Price",
    "eventCandidate": {
        "name": "EventBillingProductFeePurchase"
    },
    "href": "mobile/custom/catalogManagement/productOfferingPrice/ChargeSelectorPop",
    "id": "ChargeSelectorPop",
    "isBundle": false,
    "lastUpdate": "2023-08-04T06:50:17.017Z",
    "lifecycleStatus": "Active",
    "name": "ChargeSelectorPop",
    "popRelationship": [
        {
            "atType": "ProductOfferingPriceRelationshipOracle",
            "href": "mobile/custom/catalogManagement/productOfferingPrice/ChargeSelRule_1",
            "id": "ChargeSelRule_1",
            "name": "ChargeSelRule_1",
            "relationshipType": "COMPOSITE"
        }
    ],
    "priceType": "ONE_TIME_PRICE_PLAN",
    "validFor": {
        "endDateTime": "2024-08-04T06:55:17.017Z",
        "startDateTime": "2023-08-04T06:50:17.017Z"
    },
    "serviceCandidate": {
        "atReferredType": "ServiceCandidate",
        "atType": "ServiceCandidateRef",
        "id": "TelcoGsm",
        "name": "TelcoGsm"
    }
}
Back to Top