Create a product offering price
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/productOfferingPrice
Request
There are no request parameters for this operation.
- application/json
objectDiscriminator Values
Response
- application/json
201 Response
objectDiscriminator Values
400 Response
objectError-
@schemaLocation: string
It provides a link to the schema describing a REST resource.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list)
-
message: string
Text that provide more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
Text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
url pointing to documentation describing the error
-
status: string
http error code extension like 400-2
401 Response
objectError-
@schemaLocation: string
It provides a link to the schema describing a REST resource.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list)
-
message: string
Text that provide more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
Text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
url pointing to documentation describing the error
-
status: string
http error code extension like 400-2
404 Response
objectError-
@schemaLocation: string
It provides a link to the schema describing a REST resource.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list)
-
message: string
Text that provide more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
Text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
url pointing to documentation describing the error
-
status: string
http error code extension like 400-2
405 Response
objectError-
@schemaLocation: string
It provides a link to the schema describing a REST resource.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list)
-
message: string
Text that provide more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
Text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
url pointing to documentation describing the error
-
status: string
http error code extension like 400-2
500 Response
objectError-
@schemaLocation: string
It provides a link to the schema describing a REST resource.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list)
-
message: string
Text that provide more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
Text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
url pointing to documentation describing the error
-
status: string
http error code extension like 400-2
Examples
The following example shows how to create a product offering price by submitting a POST request on the REST resource using cURL.
cURL Command
curl -u username:password -X POST https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/productOfferingPrice/ \ -H 'Content-Type: application/json' -D @create_prodcutofferingprice.json | json_pp
Example of Request Body
The following example shows the contents of the request body in JSON format.
{
"id": "POP-2030976863-1732773734387",
"name": "OTF_PPlan",
"version": "1.0",
"priceType": "ONE_TIME_PRICE_PLAN",
"@type": "ProductOfferPricePlanOracle",
"@baseType": "ProductOfferingPriceOracle",
"isBundle": false,
"lifecycleStatus": "In design",
"validFor": {
"startDateTime": "2024-11-28T00:00:00.000Z"
},
"project": {
"id": "P-3647998921-1732773405790",
"name": "winter-project",
"version": "1.0",
"@referredType": "ProjectOracle"
},
"price": {
"value": 15,
"unit": "USD"
},
"oneTimeFeeType": "PURCHASE",
"pricelist": [
{
"id": "PL-1165501578-1732773437321",
"name": "PL_Dollar",
"version": "1.0",
"@referredType": "PricelistOracle",
"@type": "PriceListRefOracle",
"@baseType": "PricelistOracle"
}
],
"balanceElement": [
{
"id": "BE_USD_001",
"name": "USD Balance Element",
"@referredType": "BalanceElementOracle",
"version": "1.0",
"@type":"BalanceElementRefOracle"
}
]
}Example of Response Body
The following example shows the contents of the response body in JSON format.
{
"id": "POP-2030976863-1732773734387",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v5/productOfferingPrice/POP-2030976863-1732773734387",
"name": "OTF_PPlan",
"version": "1.0",
"priceType": "ONE_TIME_PRICE_PLAN",
"@type": "ProductOfferPricePlanOracle",
"@baseType": "ProductOfferingPriceOracle",
"@schemaLocation": "https://{FusionAppsHost}/CatalogManagement/schema/oracle/ProductOfferPricePlanOracle.yml",
"isBundle": false,
"lastUpdate": "2024-11-28T06:06:00.008Z",
"lifecycleStatus": "In design",
"lastUpdatedBy": "booth",
"created": "2024-11-28T06:03:06.000Z",
"createdBy": "booth",
"validFor": {
"startDateTime": "2024-11-28T00:00:00.000Z"
},
"project": {
"id": "P-3647998921-1732773405790",
"name": "winter-project",
"href": "https://{FusionAppsHost}/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/project/P-3647998921-1732773405790",
"version": "1.0",
"@referredType": "ProjectOracle"
},
"price": {
"value": 15,
"unit": "USD"
},
"oneTimeFeeType": "PURCHASE",
"pricelist": [
{
"id": "PL-1165501578-1732773437321",
"name": "PL_Dollar",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/pricelist/PL-1165501578-1732773437321",
"version": "1.0",
"@referredType": "PricelistOracle",
"@type": "PriceListRefOracle",
"@baseType": "PricelistOracle"
}
]
}