Create or update an array of pricelists
put
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/pricelists
Creates or updates the supplied array of pricelists in a single request.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
arrayMinimum Number of Items:
1Maximum Number of Items:
50The price lists resource.
Show Source
-
Array of:
object PricelistOracle
Title:
PricelistOracleA list of offers and its coresponding prices which can be used for selling the offer in a region or a particular set of customers.
Nested Schema : PricelistOracle
Type:
objectTitle:
PricelistOracleA list of offers and its coresponding prices which can be used for selling the offer in a region or a particular set of customers.
Show Source
-
@baseType: string
The base type of the pricelist create.
-
@schemaLocation: string
The URI of the schema that defines the pricelist create.
-
@type: string
The class type of the pricelist create.
-
balanceElement: object
BalanceElementRef
Title:
BalanceElementRefThe balance element ref in price. -
businessUnitId: number
The ID of the business unit associated with the pricelist create.
-
businessUnitName: string
The name of the business unit associated with the pricelist create.
-
currency: string
The currency (ISO4217 norm uses 3 letters to define the currency).
-
description: string
The description of the pricelist.
-
href: string
The hyperlink reference to the pricelist create.
-
id: string
Maximum Length:
30The ID of the pricelist create. -
lastUpdate: string
(date-time)
The date and time when the pricelist was last updated.
-
lifecycleStatus: string
The status of the pricelist create.
-
name: string
The name of the pricelist create.
-
pricelistType: string
Indicates if the pricelist is a Residential, Business or other type of resource.
-
project: object
ProjectRef
Title:
ProjectRefThe project reference resource. - relatedParty: array relatedParty
-
validFor: object
TimePeriod
Title:
TimePeriodThe period for which the productOffering is valid. -
version: string
The promotion version.
-
versionState: number
The version state of the promotion.
Nested Schema : BalanceElementRef
Type:
objectTitle:
BalanceElementRefThe balance element ref in price.
Show Source
-
@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.
Nested Schema : ProjectRef
Type:
objectTitle:
ProjectRefThe project reference resource.
Show Source
-
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.
Nested Schema : TimePeriod
Type:
objectTitle:
TimePeriodThe period for which the productOffering is valid.
Show Source
-
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.
Nested Schema : RelatedParty
Type:
objectTitle:
RelatedPartyThe relatedParty reference. A related party defines party or party role linked to a specific entity.
Show Source
-
@baseType: string
The base type of the related party reference or party role reference.
-
@schemaLocation: string
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type(required): string
The class type of the related party reference or party role reference.
-
partyOrPartyRole(required):
partyOrPartyRole
A list of party or party roles associated with the related party reference or party role reference.
-
role: string
The role played by the related party or party role in the context of the specific entity it is linked to. Such as 'initiator', 'customer', 'salesAgent', 'user'.
Nested Schema : partyOrPartyRole
Type:
arrayA list of party or party roles associated with the related party reference or party role reference.
Show Source
Response
Supported Media Types
- application/json
200 Response
The list of pricelists was created or updated successfully.
Root Schema : schema
Type:
Show Source
array-
Array of:
object PricelistOracle
Title:
PricelistOracleA list of offers and its coresponding prices which can be used for selling the offer in a region or a particular set of customers.
Nested Schema : PricelistOracle
Type:
objectTitle:
PricelistOracleA list of offers and its coresponding prices which can be used for selling the offer in a region or a particular set of customers.
Show Source
-
@baseType: string
The base type of the pricelist.
-
@schemaLocation: string
The URI of the schema that defines the pricelist.
-
@type(required): string
The class type of the pricelist.
-
applicationName: string
The name of the application associated with the pricelist.
-
balanceElement: object
BalanceElementRef
Title:
BalanceElementRefThe balance element ref in price. -
businessUnitId: number
The ID of the business unit associated with the pricelist.
-
businessUnitName: string
The name of the business unit associated with the pricelist.
-
created: string
(date-time)
The date and time of the creation.
-
createdBy: string
The name of the person who created item.
-
currency: string
The currency (ISO4217 norm uses 3 letters to define the currency).
-
description: string
The description of the pricelist.
-
externalId: string
The ID of the external associated with the pricelist.
-
href: string
The hyperlink reference to the pricelist.
-
id: string
Maximum Length:
30The ID of the pricelist. -
lastUpdate: string
(date-time)
The date and time when the pricelist was last updated.
-
lastUpdatedBy: string
The name of the person who updated item.
-
lifecycleStatus: string
The status of the pricelist.
-
name: string
The name of the pricelist.
-
pricelistType: string
Allowed Values:
[ "RESIDENTIAL", "BUSINESS" ]The type or classification of the pricelist. Valid values are RESIDENTIAL, and BUSINESS. -
productOffering: array
productOffering
A list of product offerings associated with the pricelist.
-
project: object
ProjectRef
Title:
ProjectRefThe project reference resource. -
promotion: array
promotion
A list of promotions associated with the pricelist.
- relatedParty: array relatedParty
-
validFor: object
TimePeriod
Title:
TimePeriodThe period for which the productOffering is valid. -
version: string
The promotion version.
-
versionState: number
The version state of the price list.
Nested Schema : BalanceElementRef
Type:
objectTitle:
BalanceElementRefThe balance element ref in price.
Show Source
-
@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.
Nested Schema : productOffering
Type:
arrayA list of product offerings associated with the pricelist.
Show Source
-
Array of:
object ProductOfferingRef
Title:
ProductOfferingRefDiscriminator:{ "propertyName":"@type", "mapping":{ "ProductOfferingRef":"#/components/schemas/ProductOfferingRef", "BundledProductOffering":"#/components/schemas/BundledProductOffering", "BundledProductOfferingChoiceOracle":"#/components/schemas/BundledProductOfferingChoiceOracle", "BundledProductOfferingOracle":"#/components/schemas/BundledProductOfferingOracle" } }The productOffering reference. A product offering represents entities that are orderable from the provider of the catalog, this resource includes pricing information.
Nested Schema : ProjectRef
Type:
objectTitle:
ProjectRefThe project reference resource.
Show Source
-
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.
Nested Schema : promotion
Type:
arrayA list of promotions associated with the pricelist.
Show Source
-
Array of:
object PromotionRef
Title:
PromotionRefThe promotion reference.
Nested Schema : TimePeriod
Type:
objectTitle:
TimePeriodThe period for which the productOffering is valid.
Show Source
-
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.
Nested Schema : ProductOfferingRef
Type:
objectTitle:
ProductOfferingRefDiscriminator: @type
Discriminator Values
- ProductOfferingRef
- BundledProductOffering
- BundledProductOfferingChoiceOracle
- BundledProductOfferingOracle
The productOffering reference. A product offering represents entities that are orderable from the provider of the catalog, this resource includes pricing information.
Show Source
-
@baseType: string
The base type of the product offering reference.
-
@referredType(required): string
The type of the referred product offering reference.
-
@schemaLocation: string
The URI of the schema that defines the product offering reference.
-
@type(required): string
The class type of the product offering reference.
-
href: string
The hyperlink reference to the product offering reference.
-
id(required): string
The ID of the product offering reference.
-
name: string
The name of the product offering reference.
-
version: string
The version of the product offering.
-
versionState: number
The version state of the reference.
Nested Schema : PromotionRef
Type:
objectTitle:
PromotionRefThe promotion reference.
Show Source
-
@baseType: string
The base type of the promotion reference.
-
@referredType(required): string
The type of the referred promotion reference.
-
@schemaLocation: string
The URI of the schema that defines the promotion reference.
-
@type(required): string
The class type of the promotion reference.
-
href: string
The hyperlink reference to the promotion reference.
-
id(required): string
The ID of the promotion reference.
-
name: string
The name of the promotion reference.
Nested Schema : RelatedParty
Type:
objectTitle:
RelatedPartyThe relatedParty reference. A related party defines party or party role linked to a specific entity.
Show Source
-
@baseType: string
The base type of the related party reference or party role reference.
-
@schemaLocation: string
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type(required): string
The class type of the related party reference or party role reference.
-
partyOrPartyRole(required):
partyOrPartyRole
A list of party or party roles associated with the related party reference or party role reference.
-
role: string
The role played by the related party or party role in the context of the specific entity it is linked to. Such as 'initiator', 'customer', 'salesAgent', 'user'.
Nested Schema : partyOrPartyRole
Type:
arrayA list of party or party roles associated with the related party reference or party role reference.
Show Source
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.
Root Schema : schema
Type:
Show Source
array-
Array of:
object Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "Error":"#/components/schemas/Error", "BulkError":"#/components/schemas/BulkError" } }
401 Response
Your request isn't authorized. The authentication credentials included with this request are missing or invalid.
Root Schema : Error
Type:
objectTitle:
ErrorThe error resource.
Show Source
-
@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
The resource with the specified URI couldn't be found.
Root Schema : Error
Type:
objectTitle:
ErrorThe error resource.
Show Source
-
@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
HTTP action specified in the request (DELETE, GET, POST, PUT) isn't supported for this request URI.
Root Schema : Error
Type:
objectTitle:
ErrorThe error resource.
Show Source
-
@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
The server encountered something unexpected that prevented it from completing the request.
Root Schema : Error
Type:
objectTitle:
ErrorThe error resource.
Show Source
-
@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 or update pricelists 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/pricelists
Example of Request Body
The following shows an example of the request body in JSON format.
[
{
"name": "PriceList_Y2021_001",
"id": "PriceList_Y2021_001",
"@type": "PricelistOracle",
"@baseType": "PricelistOracle",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/pricelist/TestPrice90",
"lifecycleStatus": "In design",
"businessUnitId": 204,
"validFor": {
"startDateTime": "2020-05-02T16:42:23.0Z",
"endDateTime": "2021-07-14T00:00:00.0Z"
},
"project": {
"id": "BulkDocProject",
"name": "Bulk Doc Project"
},
"relatedParty": [
{
"id": "12343",
"name": "Gustave Flaubert laptop",
"href": "https://mycsp.com:8080/tmf-api/partyManagement/v4/partyRole/1234",
"role": "Owner"
}
],
"description": "TestPrice890 description",
"currency": "USD",
"version": "1.0"
},
{
"name": "PriceList_2021_002",
"id": "PriceList_2021_002",
"@type": "PricelistOracle",
"@baseType": "PricelistOracle",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/pricelist/TestPrice90",
"lifecycleStatus": "In design",
"validFor": {
"startDateTime": "2020-05-02T16:42:23.0Z",
"endDateTime": "2021-07-14T00:00:00.0Z"
},
"project": {
"id": "BulkDocProject",
"name": "Bulk Doc Project"
},
"relatedParty": [
{
"id": "12343",
"name": "Gustave Flaubert laptop",
"href": "https://mycsp.com:8080/tmf-api/partyManagement/v4/partyRole/1234",
"role": "Owner"
}
],
"description": "TestPrice890 description",
"currency": "USD",
"version": "1.0"
},
{
"@type": "PricelistOracle",
"lifecycleStatus": "In design",
"validFor": {
"endDateTime": "2021-11-27T18:30:00.000Z",
"startDateTime": "2020-11-11T18:30:00.000Z"
},
"balanceElement": {
"id": "USACurrency",
"name": "USACurrency",
"version": "1.0",
"@referredType": "BalanceElementOracle",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/balanceElement/USACurrency"
},
"description": "Pricelist for US",
"version": "1.0",
"name": "PriceList_2021_003",
"id": "PriceList_2021_003"
}
]
Example of Response Body
The following shows an example of the response body in JSON format.
[
{
"@type": "PricelistOracle",
"@baseType": "PricelistOracle",
"relatedParty": [
{
"id": "12343",
"name": "Gustave Flaubert laptop",
"href": "https://mycsp.com:8080/tmf-api/partyManagement/v4/partyRole/1234",
"role": "Owner"
}
],
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/pricelists/PriceList_Y2021_001",
"lifecycleStatus": "In design",
"businessUnitId": 204,
"businessUnitName": "Vision Operations",
"validFor": {
"startDateTime": "2020-05-02T16:42:23.0Z",
"endDateTime": "2021-07-14T00:00:00.0Z"
},
"balanceElement": {
"id": "USACurrency",
"name": "USA Currency",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/balanceElement/USACurrency",
"@referredType": "BalanceElementOracle"
},
"project": {
"id": "BulkDocProject",
"name": "Bulk Doc Project",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/BulkDocProject"
},
"description": "TestPrice890 description",
"currency": "USD",
"version": "1.0",
"name": "PriceList_Y2021_001",
"id": "PriceList_Y2021_001"
},
{
"@type": "PricelistOracle",
"@baseType": "PricelistOracle",
"relatedParty": [
{
"id": "12343",
"name": "Gustave Flaubert laptop",
"href": "https://mycsp.com:8080/tmf-api/partyManagement/v4/partyRole/1234",
"role": "Owner"
}
],
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/pricelists/PriceList_2021_002",
"lifecycleStatus": "In design",
"validFor": {
"startDateTime": "2020-05-02T16:42:23.0Z",
"endDateTime": "2021-07-14T00:00:00.0Z"
},
"balanceElement": {
"id": "USACurrency",
"name": "USA Currency",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/balanceElement/USACurrency",
"@referredType": "BalanceElementOracle"
},
"project": {
"id": "BulkDocProject",
"name": "Bulk Doc Project",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/BulkDocProject"
},
"description": "TestPrice890 description",
"currency": "USD",
"version": "1.0",
"name": "PriceList_2021_002",
"id": "PriceList_2021_002"
},
{
"@type": "PricelistOracle",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/pricelists/PriceList_2021_003",
"lifecycleStatus": "In design",
"validFor": {
"startDateTime": "2020-11-11T18:30:00.000Z",
"endDateTime": "2021-11-27T18:30:00.000Z"
},
"balanceElement": {
"id": "USACurrency",
"name": "USACurrency",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/balanceElement/USACurrency",
"version": "1.0",
"@referredType": "BalanceElementOracle"
},
"description": "Pricelist for US",
"currency": "USD",
"version": "1.0",
"name": "PriceList_2021_003",
"id": "PriceList_2021_003"
}
]