Create or update an array of pricing logic algorithm
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/pricingLogicAlgorithms
Request
There are no request parameters for this operation.
- application/json
array
1
50
-
Array of:
PlaQuantityRangeOracle
Title:
PlaQuantityRangeOracle
PlaQuantityRangeOracle
-
object
PricingLogicAlgorithm
Title:
PricingLogicAlgorithm
Discriminator:{ "propertyName":"@type", "mapping":{ "PricingLogicAlgorithm":"#/components/schemas/PricingLogicAlgorithm", "PlaQuantityRangeOracle":"#/components/schemas/PlaQuantityRangeOracle" } }
-
object
type
object
PricingLogicAlgorithm
Discriminator Values
Show Source-
@baseType: string
Immediate base (class) type of the pla
-
@schemaLocation: string
A link to the schema describing this pla
-
@type: string
Class type of the product offering price
-
customProfileSpec: array
customProfileSpec
-
description: string
Description of this pla
-
href: string
Hyperlink reference of this resource
-
id: string
Maximum Length:
30
Unique id of this resource -
lastUpdate: string
(date-time)
Date and time of the last update
-
lifecycleStatus: string
Used to indicate the current lifecycle status
-
name: string
Name of the pla
-
plaSpecification: object
PlaSpecificationRef
Title:
PlaSpecificationRef
A pricing logic algorithm specification reference. A PricingLogicAlgorithmSpec is a detailed description of a tangible or intangible object made available externally in the form of a PricingLogicAlgorithm to customers or other parties playing a party role. -
validFor: object
TimePeriod
Title:
TimePeriod
The period for which the productOffering is valid -
version: string
pla version
object
-
applicationName: string
name of the external application
-
created: string
(date-time)
Date and time of the creation
-
createdBy: string
name of the person who created item
-
externalId: string
id of the external application
-
lastUpdate: string
(date-time)
Date and time of the last update
-
lastUpdatedBy: string
name of the person who updated item
-
plaCharacteristic: array
plaCharacteristic
-
pricingType: string
Allowed Values:
[ "SIMPLE", "TIERED" ]
Specifies whether the pricing type is simple or tiered -
project: object
ProjectRef
Title:
ProjectRef
Project Reference -
tierRange: array
tierRange
-
versionState: number
Version state of the Pricing Logic Algorithm
array
-
Array of:
object PlaCharacteristicOracle
Title:
PlaCharacteristicOracle
A use of the ProdSpecCharacteristicValue by a ProductOffering to which additional properties (attributes) apply or override the properties of similar properties contained in ProdSpecCharacteristicValue.
object
ProjectRef
-
href: string
Unique reference of the project
-
id(required): string
Unique identifier of the project
-
name: string
Name of the project
-
version: string
Version of the project
array
-
Array of:
object TierRangeOracle
Title:
TierRangeOracle
Contains the min and max qty for which the pricing is applicable
object
PlaCharacteristicOracle
-
description: string
A narrative that explains in detail what the productSpecCharacteristic is
-
name: string
Name of the associated productSpecCharacteristic
-
plaCharacteristicValue: array
plaCharacteristicValue
-
valueType: string
A kind of value that the characteristic can take on, such as numeric, text and so forth
array
-
Array of:
object PlaCharacteristicValueOracle
Title:
PlaCharacteristicValueOracle
A number or text that can be assigned to a ProductSpecCharacteristic.
object
PlaCharacteristicValueOracle
-
unitOfMeasure: string
Allowed Values:
[ "NONE", "SECOND", "MINUTE", "HOUR", "DAY", "MONTH", "BYTE", "KILOBYTE", "MEGABYTE", "GIGABYTE", "PAGES", "MOVIES", "TIME_INTERVAL", "QUANTITY", "MBPS", "GBPS" ]
Could be minutes, GB... -
value:
value
A discrete value that the characteristic can take on. the value type is defined by 'valueType' characteristic
object
object
TierRangeOracle
-
inclusivity: string
Allowed Values:
[ "UPPER_INCLUSIVE", "LOWER_INCLUSIVE" ]
Specifies whether to include the upper limit or lower limit -
maxQuantity: integer
A maximum quantity of something, typically the total of a thing or things in number, size, value, extent, or money.
-
minQuantity: integer
A minimum quantity of something, typically the total of a thing or things in number, size, value, extent, or money.
-
productOfferingPrice: array
productOfferingPrice
array
-
Array of:
object ProductOfferingPriceRef
Title:
ProductOfferingPriceRef
ProductPriceOffering reference. An amount, usually of money, that is asked for or allowed when a ProductOffering is bought, rented, or leased
object
ProductOfferingPriceRef
-
@baseType: string
When sub-classing, this defines the super-class
-
@referredType: string
The actual type of the target instance when needed for disambiguation.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
href: string
Reference of the related entity.
-
id(required): string
Unique identifier of a related entity.
-
name: string
Name of the related entity.
-
refId: string
Unique identifier of the reference object.
-
refName: string
Name of the reference object.
-
versionState: number
To hold the version state of reference
Response
- application/json
200 Response
array
-
Array of:
PlaQuantityRangeOracle
Title:
PlaQuantityRangeOracle
PlaQuantityRangeOracle
-
object
PricingLogicAlgorithm
Title:
PricingLogicAlgorithm
Discriminator:{ "propertyName":"@type", "mapping":{ "PricingLogicAlgorithm":"#/components/schemas/PricingLogicAlgorithm", "PlaQuantityRangeOracle":"#/components/schemas/PlaQuantityRangeOracle" } }
-
object
type
object
PricingLogicAlgorithm
Discriminator Values
Show Source-
@baseType: string
Immediate base (class) type of the pla
-
@schemaLocation: string
A link to the schema describing this pla
-
@type: string
Class type of the product offering price
-
customProfileSpec: array
customProfileSpec
-
description: string
Description of this pla
-
href: string
Hyperlink reference of this resource
-
id: string
Maximum Length:
30
Unique id of this resource -
lastUpdate: string
(date-time)
Date and time of the last update
-
lifecycleStatus: string
Used to indicate the current lifecycle status
-
name: string
Name of the pla
-
plaSpecification: object
PlaSpecificationRef
Title:
PlaSpecificationRef
A pricing logic algorithm specification reference. A PricingLogicAlgorithmSpec is a detailed description of a tangible or intangible object made available externally in the form of a PricingLogicAlgorithm to customers or other parties playing a party role. -
validFor: object
TimePeriod
Title:
TimePeriod
The period for which the productOffering is valid -
version: string
pla version
object
-
applicationName: string
name of the external application
-
created: string
(date-time)
Date and time of the creation
-
createdBy: string
name of the person who created item
-
externalId: string
id of the external application
-
lastUpdate: string
(date-time)
Date and time of the last update
-
lastUpdatedBy: string
name of the person who updated item
-
plaCharacteristic: array
plaCharacteristic
-
pricingType: string
Allowed Values:
[ "SIMPLE", "TIERED" ]
Specifies whether the pricing type is simple or tiered -
project: object
ProjectRef
Title:
ProjectRef
Project Reference -
tierRange: array
tierRange
-
versionState: number
Version state of the Pricing Logic Algorithm
array
-
Array of:
object PlaCharacteristicOracle
Title:
PlaCharacteristicOracle
A use of the ProdSpecCharacteristicValue by a ProductOffering to which additional properties (attributes) apply or override the properties of similar properties contained in ProdSpecCharacteristicValue.
object
ProjectRef
-
href: string
Unique reference of the project
-
id(required): string
Unique identifier of the project
-
name: string
Name of the project
-
version: string
Version of the project
array
-
Array of:
object TierRangeOracle
Title:
TierRangeOracle
Contains the min and max qty for which the pricing is applicable
object
PlaCharacteristicOracle
-
description: string
A narrative that explains in detail what the productSpecCharacteristic is
-
name: string
Name of the associated productSpecCharacteristic
-
plaCharacteristicValue: array
plaCharacteristicValue
-
valueType: string
A kind of value that the characteristic can take on, such as numeric, text and so forth
array
-
Array of:
object PlaCharacteristicValueOracle
Title:
PlaCharacteristicValueOracle
A number or text that can be assigned to a ProductSpecCharacteristic.
object
PlaCharacteristicValueOracle
-
unitOfMeasure: string
Allowed Values:
[ "NONE", "SECOND", "MINUTE", "HOUR", "DAY", "MONTH", "BYTE", "KILOBYTE", "MEGABYTE", "GIGABYTE", "PAGES", "MOVIES", "TIME_INTERVAL", "QUANTITY", "MBPS", "GBPS" ]
Could be minutes, GB... -
value:
value
A discrete value that the characteristic can take on. the value type is defined by 'valueType' characteristic
object
object
TierRangeOracle
-
inclusivity: string
Allowed Values:
[ "UPPER_INCLUSIVE", "LOWER_INCLUSIVE" ]
Specifies whether to include the upper limit or lower limit -
maxQuantity: integer
A maximum quantity of something, typically the total of a thing or things in number, size, value, extent, or money.
-
minQuantity: integer
A minimum quantity of something, typically the total of a thing or things in number, size, value, extent, or money.
-
productOfferingPrice: array
productOfferingPrice
array
-
Array of:
object ProductOfferingPriceRef
Title:
ProductOfferingPriceRef
ProductPriceOffering reference. An amount, usually of money, that is asked for or allowed when a ProductOffering is bought, rented, or leased
object
ProductOfferingPriceRef
-
@baseType: string
When sub-classing, this defines the super-class
-
@referredType: string
The actual type of the target instance when needed for disambiguation.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
href: string
Reference of the related entity.
-
id(required): string
Unique identifier of a related entity.
-
name: string
Name of the related entity.
-
refId: string
Unique identifier of the reference object.
-
refName: string
Name of the reference object.
-
versionState: number
To hold the version state of reference
400 Response
array
-
Array of:
object Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "Error":"#/components/schemas/Error", "BulkError":"#/components/schemas/BulkError" } }
401 Response
object
Error
-
@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
object
Error
-
@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
object
Error
-
@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
object
Error
-
@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 or update an array of pricing logic algorithm by submitting a put request on the REST resource using cURL.
cURL Command
curl -u username:password -X PUT https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/pricingLogicAlgorithms/ -H 'Content-Type: application/json' -D @put_plogicalgos.json | json_pp
Example of Request Body
The following shows an example of the request body in JSON format.
[ { "id": "pla_year_2021_001", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/pricingLogicAlgorithm/", "name": "pla_year_2021_001", "description": "desc of mypla001", "version": "1.0", "validFor": { "startDateTime": "2020-08-12T03:43:37.696Z", "endDateTime": "2021-08-12T03:43:37.696Z" }, "@type": "PlaQuantityRangeOracle", "lifecycleStatus": "In study", "plaSpecification": { "id": "PlaSpec_year_2021_001", "name": "PlaSpec_year_2021_001" }, "project": { "id": "BulkDocProject", "name": "Bulk Doc Project" } }, { "id": "pla_year_2021_002", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/pricingLogicAlgorithm/", "name": "pla_year_2021_002", "description": "desc of mypla001", "version": "1.0", "validFor": { "startDateTime": "2020-08-12T03:43:37.696Z", "endDateTime": "2020-08-12T03:43:37.696Z" }, "@type": "PlaQuantityRangeOracle", "@baseType": "PlaQuantityRange", "@schemaLocation": "https://{FusionAppsHost}/CatalogManagement/schema/oracle/PricingLogicAlgorithmOracle.yml", "lifecycleStatus": "In test", "project": { "id": "BulkDocProject", "name": "Bulk Doc Project" }, "plaSpecification": { "id": "PlaSpec_year_2021_002", "name": "PlaSpec_year_2021_002" } } ]
Example of Response Body
The following shows an example of the response body in JSON format.
[ { "id": "pla_year_2021_001", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/pricingLogicAlgorithms/pla_year_2021_001", "name": "pla_year_2021_001", "description": "desc of mypla001", "validFor": { "startDateTime": "2020-08-12T03:43:37.696Z", "endDateTime": "2021-08-12T03:43:37.696Z" }, "@type": "PlaQuantityRangeOracle", "version": "1.0", "lifecycleStatus": "In study", "project": { "id": "BulkDocProject", "name": "Bulk Doc Project", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/BulkDocProject" }, "plaSpecification": { "id": "PlaSpec_year_2021_001", "name": "PlaSpec_year_2021_001", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/pricingLogicAlgorithmSpecification/PlaSpec_year_2021_001", "@referredType": "PricingLogicAlgorithmSpecificationOracle" } }, { "id": "pla_year_2021_002", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/pricingLogicAlgorithms/pla_year_2021_002", "name": "pla_year_2021_002", "description": "desc of mypla001", "validFor": { "startDateTime": "2020-08-12T03:43:37.696Z", "endDateTime": "2020-08-12T03:43:37.696Z" }, "@type": "PlaQuantityRangeOracle", "@schemaLocation": "https://{FusionAppsHost}/CatalogManagement/schema/oracle/PricingLogicAlgorithmOracle.yml", "@baseType": "PlaQuantityRange", "version": "1.0", "lifecycleStatus": "In test", "project": { "id": "BulkDocProject", "name": "Bulk Doc Project", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/BulkDocProject" }, "plaSpecification": { "id": "PlaSpec_year_2021_002", "name": "PlaSpec_year_2021_002", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/pricingLogicAlgorithmSpecification/PlaSpec_year_2021_002", "@referredType": "PricingLogicAlgorithmSpecificationOracle" } } ]