Create a price tag
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/priceTag
Request
There are no request parameters for this operation.
- application/json
objectPriceTagOracle-
@baseType: string
The base type of the price tag.
-
@schemaLocation: string
The URI of the schema that defines the price tag.
-
@type(required): string
The class type of the price tag.
-
created: string
(date-time)
The date and time of the priceTag creation.
-
createdBy: string
The name of the person who created the priceTag.
-
description: string
The description of priceTag.
-
href: string
The hyperlink reference to the price tag.
-
id: string
Maximum Length:
30The ID of the price tag. -
lastUpdate: string
(date-time)
The date and time when the price tag was last updated.
-
lastUpdatedBy: string
The name of the person who updated the priceTag.
-
lifecycleStatus: string
The status of the price tag.
-
name(required): string
The name of the price tag.
-
priceTagRules: array
priceTagRules
A list of price tag rules associated with the price tag.
-
project: object
ProjectRef
Title:
ProjectRefThe project reference resource. -
validFor: object
TimePeriod
Title:
TimePeriodThe period for which the productOffering is valid. -
version: string
The price tag version.
-
versionState: number
The version state of the priceTag.
array-
Array of:
object PriceTagRuleOracle
Title:
PriceTagRuleOracleThe price tag rule resource.
objectProjectRef-
href: string
The hyperlink reference to the project reference.
-
id(required): string
The ID of the project reference.
-
name: string
The name of the project reference.
-
version: string
The version of the project.
objectTimePeriod-
endDateTime: string
(date-time)
The end date and time of the time period.
-
startDateTime: string
(date-time)
The start date and time of the time period.
objectPriceTagRuleOracle-
balanceElement: object
BalanceElementRef
Title:
BalanceElementRefThe balance element ref in price. -
balanceElementCode: string
Currency (ISO4217 norm uses 3 letters to define the currency and user defined code for non currency.
-
id(required): string
Maximum Length:
30The ID of the price tag rule. -
productType: string
Allowed Values:
[ "ALL", "ACCOUNT", "SERVICE" ]The type or classification of the price tag rule. Valid values are ALL, ACCOUNT, and SERVICE. -
serviceSpecification: array
serviceSpecification
A list of service specifications associated with the price tag rule.
-
unitOfMeasure: string
The unit of measure for which the priceTag rule applies to.
-
value: string
Value corresponding to the selected valueType in semicolon selected format.
-
valueType: string
Allowed Values:
[ "ALL", "LIST", "RANGE" ]The type or classification of the price tag rule. Valid values are ALL, LIST, and RANGE.
objectBalanceElementRef-
@baseType: string
The base type of the balance element reference.
-
@referredType(required): string
The type of the referred balance element reference.
-
@schemaLocation: string
The URI of the schema that defines the balance element reference.
-
@type(required): string
The class type of the balance element reference.
-
href: string
The hyperlink reference to the balance element reference.
-
id(required): string
The ID of the balance element reference.
-
name: string
The name of the balance element reference.
-
version: string
The version of the balance element.
-
versionState: number
The version state of the reference.
array-
Array of:
ServiceSpecificationRefOracle
Title:
ServiceSpecificationRefOracle
ServiceSpecificationRefOracle-
object
ServiceSpecificationRef
Title:
ServiceSpecificationRefDiscriminator:{ "propertyName":"@type", "mapping":{ "ServiceSpecificationRef":"#/components/schemas/ServiceSpecificationRef", "ServiceSpecificationRefOracle":"#/components/schemas/ServiceSpecificationRefOracle" } }The service specification reference: ServiceSpecification(s) required to realize a ProductSpecification. -
object
ServiceSpecificationRefOracle-allOf[1]
objectServiceSpecificationRefDiscriminator Values
-
@baseType: string
The base type of the service specification reference.
-
@referredType(required): string
The type of the referred service specification reference.
-
@schemaLocation: string
The URI of the schema that defines the service specification reference.
-
@type(required): string
The class type of the service specification reference.
-
href: string
The hyperlink reference to the service specification reference.
-
id(required): string
The ID of the service specification reference.
-
name: string
The name of the service specification reference.
-
targetServiceSchema: object
TargetServiceSchema
Title:
TargetServiceSchemaThe reference object to the schema and type of target product which is described by product specification. -
version: string
The service specification version.
-
versionState: number
The version state of the reference.
object-
isApplicableToChildServices: boolean
Whether the service specification reference is applicable to child services.
-
role: string
Allowed Values:
[ "PRIMARY", "AUXILIARY" ]The service specification role. Valid values are PRIMARY, and AUXILIARY. -
serviceCode: string
The service code associated with the service specification reference.
Response
- application/json
201 Response
objectPriceTagOracle-
@baseType: string
The base type of the price tag.
-
@schemaLocation: string
The URI of the schema that defines the price tag.
-
@type(required): string
The class type of the price tag.
-
created: string
(date-time)
The date and time of the priceTag creation.
-
createdBy: string
The name of the person who created the priceTag.
-
description: string
The description of priceTag.
-
href: string
The hyperlink reference to the price tag.
-
id: string
Maximum Length:
30The ID of the price tag. -
lastUpdate: string
(date-time)
The date and time when the price tag was last updated.
-
lastUpdatedBy: string
The name of the person who updated the priceTag.
-
lifecycleStatus: string
The status of the price tag.
-
name(required): string
The name of the price tag.
-
priceTagRules: array
priceTagRules
A list of price tag rules associated with the price tag.
-
project: object
ProjectRef
Title:
ProjectRefThe project reference resource. -
validFor: object
TimePeriod
Title:
TimePeriodThe period for which the productOffering is valid. -
version: string
The price tag version.
-
versionState: number
The version state of the priceTag.
array-
Array of:
object PriceTagRuleOracle
Title:
PriceTagRuleOracleThe price tag rule resource.
objectProjectRef-
href: string
The hyperlink reference to the project reference.
-
id(required): string
The ID of the project reference.
-
name: string
The name of the project reference.
-
version: string
The version of the project.
objectTimePeriod-
endDateTime: string
(date-time)
The end date and time of the time period.
-
startDateTime: string
(date-time)
The start date and time of the time period.
objectPriceTagRuleOracle-
balanceElement: object
BalanceElementRef
Title:
BalanceElementRefThe balance element ref in price. -
balanceElementCode: string
Currency (ISO4217 norm uses 3 letters to define the currency and user defined code for non currency.
-
id(required): string
Maximum Length:
30The ID of the price tag rule. -
productType: string
Allowed Values:
[ "ALL", "ACCOUNT", "SERVICE" ]The type or classification of the price tag rule. Valid values are ALL, ACCOUNT, and SERVICE. -
serviceSpecification: array
serviceSpecification
A list of service specifications associated with the price tag rule.
-
unitOfMeasure: string
The unit of measure for which the priceTag rule applies to.
-
value: string
Value corresponding to the selected valueType in semicolon selected format.
-
valueType: string
Allowed Values:
[ "ALL", "LIST", "RANGE" ]The type or classification of the price tag rule. Valid values are ALL, LIST, and RANGE.
objectBalanceElementRef-
@baseType: string
The base type of the balance element reference.
-
@referredType(required): string
The type of the referred balance element reference.
-
@schemaLocation: string
The URI of the schema that defines the balance element reference.
-
@type(required): string
The class type of the balance element reference.
-
href: string
The hyperlink reference to the balance element reference.
-
id(required): string
The ID of the balance element reference.
-
name: string
The name of the balance element reference.
-
version: string
The version of the balance element.
-
versionState: number
The version state of the reference.
array-
Array of:
ServiceSpecificationRefOracle
Title:
ServiceSpecificationRefOracle
ServiceSpecificationRefOracle-
object
ServiceSpecificationRef
Title:
ServiceSpecificationRefDiscriminator:{ "propertyName":"@type", "mapping":{ "ServiceSpecificationRef":"#/components/schemas/ServiceSpecificationRef", "ServiceSpecificationRefOracle":"#/components/schemas/ServiceSpecificationRefOracle" } }The service specification reference: ServiceSpecification(s) required to realize a ProductSpecification. -
object
ServiceSpecificationRefOracle-allOf[1]
objectServiceSpecificationRefDiscriminator Values
-
@baseType: string
The base type of the service specification reference.
-
@referredType(required): string
The type of the referred service specification reference.
-
@schemaLocation: string
The URI of the schema that defines the service specification reference.
-
@type(required): string
The class type of the service specification reference.
-
href: string
The hyperlink reference to the service specification reference.
-
id(required): string
The ID of the service specification reference.
-
name: string
The name of the service specification reference.
-
targetServiceSchema: object
TargetServiceSchema
Title:
TargetServiceSchemaThe reference object to the schema and type of target product which is described by product specification. -
version: string
The service specification version.
-
versionState: number
The version state of the reference.
object-
isApplicableToChildServices: boolean
Whether the service specification reference is applicable to child services.
-
role: string
Allowed Values:
[ "PRIMARY", "AUXILIARY" ]The service specification role. Valid values are PRIMARY, and AUXILIARY. -
serviceCode: string
The service code associated with the service specification reference.
400 Response
objectError-
@schemaLocation: string
The URI of the schema that defines the error.
-
@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
The text that provides more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
The text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
The URL pointing to documentation describing the error.
-
status: string
The status of the error.
401 Response
objectError-
@schemaLocation: string
The URI of the schema that defines the error.
-
@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
The text that provides more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
The text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
The URL pointing to documentation describing the error.
-
status: string
The status of the error.
404 Response
objectError-
@schemaLocation: string
The URI of the schema that defines the error.
-
@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
The text that provides more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
The text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
The URL pointing to documentation describing the error.
-
status: string
The status of the error.
405 Response
objectError-
@schemaLocation: string
The URI of the schema that defines the error.
-
@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
The text that provides more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
The text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
The URL pointing to documentation describing the error.
-
status: string
The status of the error.
500 Response
objectError-
@schemaLocation: string
The URI of the schema that defines the error.
-
@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
The text that provides more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
The text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
The URL pointing to documentation describing the error.
-
status: string
The status of the error.
Examples
The following example shows how to create a price tag 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/productCatalogReferenceManagement/v1/priceTag
-H 'Content-Type: application/json' -D @create_pricetag.json | json_pp
Example of Request Body
The following shows an example of the request body in JSON format.
{
"id": "PT_0091",
"name": "Price Tag1",
"lifecycleStatus": "In design",
"version": "1.0",
"@type": "PriceTagOracle",
"project": {
"id": "I0601",
"name": "I0601",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/project/I0601",
"version": "1.0",
"@referredType": "ProjectOracle"
},
"priceTagRules": [
{
"id": "pt-rule-1",
"unitOfMeasure": "ALL",
"productType": "ALL",
"valueType": "LIST",
"balanceElementCode": "ALL",
"value": "10;20"
}
]
}
Example of Response Body
The following shows an example of the response body in JSON format.
{
"id": "PT_0091",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/priceTag/PT_0091",
"name": "Price Tag1",
"lastUpdate": "2025-02-17T13:09:27.124Z",
"lifecycleStatus": "In design",
"version": "1.0",
"@type": "PriceTagOracle",
"project": {
"id": "I0601",
"name": "I0601",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/project/I0601",
"version": "1.0",
"@referredType": "ProjectOracle"
},
"priceTagRules": [
{
"id": "pt-rule-1",
"unitOfMeasure": "ALL",
"productType": "ALL",
"valueType": "LIST",
"balanceElementCode": "ALL",
"value": "10;20"
}
],
"lastUpdatedBy": "booth",
"created": "2025-02-17T13:09:27.000Z",
"createdBy": "booth",
"versionState": 0
}