Create or update an array of promotion
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/promotions
Request
There are no request parameters for this operation.
- application/json
array
1
50
-
Array of:
PromotionOracle
Title:
PromotionOracle
PromotionOracle
-
object
Promotion
Title:
Promotion
Discriminator:{ "propertyName":"@type", "mapping":{ "Promotion":"#/components/schemas/Promotion", "PromotionOracle":"#/components/schemas/PromotionOracle" } }
Promotion Resource is used to provide the additional discount, voucher, bonus or gift to the customer who meets the pre-defined criteria. Using promotion, the enterprise is able to attract the users and encourage more consumption, especially continuous purchases. Normally Promotion is not regarded as one type of product or product offering. It is often applied when the customer buys the product offerings with the price or amount surpassing the certain limit. -
object
type
object
Promotion
Discriminator Values
-
@baseType: string
Immediate base (class) type of the object
-
@schemaLocation: string
A link to the schema describing this object
-
@type: string
Indicates the type of resource. Here can be promotion
-
attachment: array
attachment
-
description: string
Description of Promotion
-
href: string
Hypertext Reference of the Promotion.
-
id: string
Maximum Length:
30
Unique identifier of the Promotion -
lastUpdate: string
(date-time)
Latest update date of Promotion
-
lifecycleStatus: string
Status of Promotion
-
name: string
Name of Promotion
-
pattern: array
pattern
-
promotionType: string
Allowed Values:
[ "AWARD", "DISCOUNT", "TRADE_IN", "CROSS_PRODUCT_DISCOUNT" ]
Comma seperated promotion tags/type -
validFor: object
TimePeriod
Title:
TimePeriod
The period for which the productOffering is valid
object
-
active: boolean
Describes if cross product discount or promotion is active.
-
agreement: array
agreement
-
applicationName: string
name of the external application
-
category: array
category
-
created: string
(date-time)
Date and time of the creation
-
createdBy: string
name of the person who created item
-
customProfileSpec: array
customProfileSpec
-
customProfSpecCharValueUse: array
customProfSpecCharValueUse
-
externalId: string
id of the external application
-
lastUpdatedBy: string
name of the person who updated item
-
priceList: array
priceList
-
project: object
ProjectRef
Title:
ProjectRef
Project Reference -
version: string
Promotion version
-
versionState: number
Version state of the promotion
array
-
Array of:
object Agreement
Title:
Agreement
Agreement reference. An agreement represents a contract or arrangement, either written or verbal and sometimes enforceable by law, such as a service level agreement or a customer price agreement. An agreement involves a number of other business entities, such as products, services, and resources and/or their specifications.
array
-
Array of:
object CategoryRef
Title:
CategoryRef
Category reference. The category resource is used to group product offerings, service and resource candidates in logical containers. Categories can contain other categories and/or product offerings, resource or service candidates.
array
-
Array of:
object CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference.
array
-
Array of:
object CustomProfSpecCharValueUse
Title:
CustomProfSpecCharValueUse
A use of the CustomProfSpecCharValue by an entity to which additional properties (attributes) apply or override the properties of similar properties contained in ProdSpecCharacteristicValue. It should be noted that characteristics which their value(s) addressed by this object must exist in corresponding product specification. The available characteristic values for a ProductSpecCharacteristic in a Product specification can be modified at the ProductOffering level. For example, a characteristic 'Color' might have values White, Blue, Green, and Red. But, the list of values can be restricted to e.g. White and Blue in an associated product offering. It should be noted that the list of values in 'ProdSpecCharValueUse' is a strict subset of the list of values as defined in the corresponding product specification characteristics.
array
-
Array of:
object PriceListRefOracle
Title:
PriceListRefOracle
Pricelist reference.
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
object
Agreement
-
@referredType: string
class type of the referred Agreement
-
href: string
Reference of the agreement
-
id(required): string
Identifier of the agreement
-
name: string
Name of the agreement
object
CategoryRef
-
@baseType: string
base class type of CategoryRef
-
@referredType: string
the class type of the referred Category
-
@schemaLocation: string
Hyperlink reference to schema describing this object
-
@type: string
The class type of the CategoyRef
-
href: string
Unique reference of the category
-
id(required): string
Unique reference of the category
-
name: string
Name of the category
-
version: string
Category version
-
versionState: number
To hold the version state for the reference
object
CustomProfileSpecRefOracle
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
(Class) type of the referred custom Specification.
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of customSpecificationRef.
-
href: string
Reference of the custom specification.
-
id(required): string
Unique identifier of the custom specification.
-
name: string
Name of the custom specification.
-
version: string
Version of the custom specification.
-
versionState: number
To hold the version state for the reference
object
CustomProfSpecCharValueUse
-
customProfileSpec(required): object
CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference. -
customProfileSpecCharValue(required): array
customProfileSpecCharValue
-
description: string
A narrative that explains in detail what the customProfileSpecCharacteristic is
-
maxCardinality: integer
The maximum number of instances a CharacteristicValue can take on. For example, zero to five phone numbers in a group calling plan, where five is the value for the maxCardinality.
-
minCardinality: integer
The minimum number of instances a CharacteristicValue can take on. For example, zero to five phone numbers in a group calling plan, where zero is the value for the minCardinality.
-
name(required): string
Name of the associated customProfileSpecCharacteristic
-
validFor: object
TimePeriodOracle
Title:
TimePeriodOracle
Validity period of the related party -
valueType: string
Allowed Values:
[ "STRING", "NUMBER", "OBJECT", "ARRAY", "DECIMAL", "BOOLEAN", "DATE", "DATETIME" ]
A kind of value that the characteristic can take on, such as numeric, text and so forth
array
-
Array of:
object CustomProfileSpecCharValue
Title:
CustomProfileSpecCharValue
A number or text that can be assigned to a CustomProfileSpecCharacteristic.
object
TimePeriodOracle
-
endDateTime: string
(date-time)
An instant of time, ending at the TimePeriod.
-
startDateTime: string
(date-time)
An instant of time, starting at the TimePeriod
object
CustomProfileSpecCharValue
-
@baseType: string
base class type (immediate parent) of the ProductSpecCharacteristic
-
@schemaLocation: string
Hyperlink reference to schema describing this object
-
@type: string
The class type of the characteristic value
-
displayText: string
A string. A word, term, or phrase by which can be displyed for user experience.
-
enabled: boolean
A field which used to enable or disable the value selection
-
isDefault: boolean
Indicates if the value is the default value for a characteristic
-
rangeInterval: string
Allowed Values:
[ "OPEN", "CLOSED", "CLOSED_BOTTOM", "CLOSED_TOP" ]
An indicator that specifies the inclusion or exclusion of the valueFrom and valueTo attributes. If applicable, possible values are "open", "closed", "closedBottom" and "closedTop". -
regex: string
Regular expression to define constraint on the allowed value
-
sequence: integer
Order sequence for the values input
-
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... -
validFor: object
TimePeriodOracle
Title:
TimePeriodOracle
Validity period of the related party -
value(required):
value
A discrete value that the characteristic can take on. the value type is defined by 'valueType' characteristic
-
valueFrom: string
The low range value that a characteristic can take on
-
valueReferenceId: string
Id of the resource referenced in the specification
-
valueReferenceType: string
Allowed Values:
[ "SERVICE_SPEC" ]
Type of the resource referenced in the specification -
valueTo: string
The upper range value that a characteristic can take on
-
valueType: string
Allowed Values:
[ "STRING", "NUMBER", "OBJECT", "ARRAY", "DECIMAL", "BOOLEAN", "DATE", "DATETIME", "PRODUCT_OFFER", "PRODUCT_SPEC", "PRODUCT_LINE" ]
A kind of value that the characteristic can take on, such as numeric, text, and so forth
object
array
object
PriceListRefOracle
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
The Class type of referred Price List
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of PricelistRef.
-
href: string
Unique reference of the Pricelist
-
id(required): string
Unique identifier of the Pricelist
-
name: string
Name of the Pricelist
-
version: string
Version of the Pricelist
-
versionState: number
To hold the version state of reference
Response
- application/json
200 Response
PromotionOracle
-
object
Promotion
Title:
Promotion
Discriminator:{ "propertyName":"@type", "mapping":{ "Promotion":"#/components/schemas/Promotion", "PromotionOracle":"#/components/schemas/PromotionOracle" } }
Promotion Resource is used to provide the additional discount, voucher, bonus or gift to the customer who meets the pre-defined criteria. Using promotion, the enterprise is able to attract the users and encourage more consumption, especially continuous purchases. Normally Promotion is not regarded as one type of product or product offering. It is often applied when the customer buys the product offerings with the price or amount surpassing the certain limit. -
object
type
object
Promotion
Discriminator Values
-
@baseType: string
Immediate base (class) type of the object
-
@schemaLocation: string
A link to the schema describing this object
-
@type: string
Indicates the type of resource. Here can be promotion
-
attachment: array
attachment
-
description: string
Description of Promotion
-
href: string
Hypertext Reference of the Promotion.
-
id: string
Maximum Length:
30
Unique identifier of the Promotion -
lastUpdate: string
(date-time)
Latest update date of Promotion
-
lifecycleStatus: string
Status of Promotion
-
name: string
Name of Promotion
-
pattern: array
pattern
-
promotionType: string
Allowed Values:
[ "AWARD", "DISCOUNT", "TRADE_IN", "CROSS_PRODUCT_DISCOUNT" ]
Comma seperated promotion tags/type -
validFor: object
TimePeriod
Title:
TimePeriod
The period for which the productOffering is valid
object
-
active: boolean
Describes if cross product discount or promotion is active.
-
agreement: array
agreement
-
applicationName: string
name of the external application
-
category: array
category
-
created: string
(date-time)
Date and time of the creation
-
createdBy: string
name of the person who created item
-
customProfileSpec: array
customProfileSpec
-
customProfSpecCharValueUse: array
customProfSpecCharValueUse
-
externalId: string
id of the external application
-
lastUpdatedBy: string
name of the person who updated item
-
priceList: array
priceList
-
project: object
ProjectRef
Title:
ProjectRef
Project Reference -
version: string
Promotion version
-
versionState: number
Version state of the promotion
array
-
Array of:
object Agreement
Title:
Agreement
Agreement reference. An agreement represents a contract or arrangement, either written or verbal and sometimes enforceable by law, such as a service level agreement or a customer price agreement. An agreement involves a number of other business entities, such as products, services, and resources and/or their specifications.
array
-
Array of:
object CategoryRef
Title:
CategoryRef
Category reference. The category resource is used to group product offerings, service and resource candidates in logical containers. Categories can contain other categories and/or product offerings, resource or service candidates.
array
-
Array of:
object CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference.
array
-
Array of:
object CustomProfSpecCharValueUse
Title:
CustomProfSpecCharValueUse
A use of the CustomProfSpecCharValue by an entity to which additional properties (attributes) apply or override the properties of similar properties contained in ProdSpecCharacteristicValue. It should be noted that characteristics which their value(s) addressed by this object must exist in corresponding product specification. The available characteristic values for a ProductSpecCharacteristic in a Product specification can be modified at the ProductOffering level. For example, a characteristic 'Color' might have values White, Blue, Green, and Red. But, the list of values can be restricted to e.g. White and Blue in an associated product offering. It should be noted that the list of values in 'ProdSpecCharValueUse' is a strict subset of the list of values as defined in the corresponding product specification characteristics.
array
-
Array of:
object PriceListRefOracle
Title:
PriceListRefOracle
Pricelist reference.
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
object
Agreement
-
@referredType: string
class type of the referred Agreement
-
href: string
Reference of the agreement
-
id(required): string
Identifier of the agreement
-
name: string
Name of the agreement
object
CategoryRef
-
@baseType: string
base class type of CategoryRef
-
@referredType: string
the class type of the referred Category
-
@schemaLocation: string
Hyperlink reference to schema describing this object
-
@type: string
The class type of the CategoyRef
-
href: string
Unique reference of the category
-
id(required): string
Unique reference of the category
-
name: string
Name of the category
-
version: string
Category version
-
versionState: number
To hold the version state for the reference
object
CustomProfileSpecRefOracle
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
(Class) type of the referred custom Specification.
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of customSpecificationRef.
-
href: string
Reference of the custom specification.
-
id(required): string
Unique identifier of the custom specification.
-
name: string
Name of the custom specification.
-
version: string
Version of the custom specification.
-
versionState: number
To hold the version state for the reference
object
CustomProfSpecCharValueUse
-
customProfileSpec(required): object
CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference. -
customProfileSpecCharValue(required): array
customProfileSpecCharValue
-
description: string
A narrative that explains in detail what the customProfileSpecCharacteristic is
-
maxCardinality: integer
The maximum number of instances a CharacteristicValue can take on. For example, zero to five phone numbers in a group calling plan, where five is the value for the maxCardinality.
-
minCardinality: integer
The minimum number of instances a CharacteristicValue can take on. For example, zero to five phone numbers in a group calling plan, where zero is the value for the minCardinality.
-
name(required): string
Name of the associated customProfileSpecCharacteristic
-
validFor: object
TimePeriodOracle
Title:
TimePeriodOracle
Validity period of the related party -
valueType: string
Allowed Values:
[ "STRING", "NUMBER", "OBJECT", "ARRAY", "DECIMAL", "BOOLEAN", "DATE", "DATETIME" ]
A kind of value that the characteristic can take on, such as numeric, text and so forth
array
-
Array of:
object CustomProfileSpecCharValue
Title:
CustomProfileSpecCharValue
A number or text that can be assigned to a CustomProfileSpecCharacteristic.
object
TimePeriodOracle
-
endDateTime: string
(date-time)
An instant of time, ending at the TimePeriod.
-
startDateTime: string
(date-time)
An instant of time, starting at the TimePeriod
object
CustomProfileSpecCharValue
-
@baseType: string
base class type (immediate parent) of the ProductSpecCharacteristic
-
@schemaLocation: string
Hyperlink reference to schema describing this object
-
@type: string
The class type of the characteristic value
-
displayText: string
A string. A word, term, or phrase by which can be displyed for user experience.
-
enabled: boolean
A field which used to enable or disable the value selection
-
isDefault: boolean
Indicates if the value is the default value for a characteristic
-
rangeInterval: string
Allowed Values:
[ "OPEN", "CLOSED", "CLOSED_BOTTOM", "CLOSED_TOP" ]
An indicator that specifies the inclusion or exclusion of the valueFrom and valueTo attributes. If applicable, possible values are "open", "closed", "closedBottom" and "closedTop". -
regex: string
Regular expression to define constraint on the allowed value
-
sequence: integer
Order sequence for the values input
-
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... -
validFor: object
TimePeriodOracle
Title:
TimePeriodOracle
Validity period of the related party -
value(required):
value
A discrete value that the characteristic can take on. the value type is defined by 'valueType' characteristic
-
valueFrom: string
The low range value that a characteristic can take on
-
valueReferenceId: string
Id of the resource referenced in the specification
-
valueReferenceType: string
Allowed Values:
[ "SERVICE_SPEC" ]
Type of the resource referenced in the specification -
valueTo: string
The upper range value that a characteristic can take on
-
valueType: string
Allowed Values:
[ "STRING", "NUMBER", "OBJECT", "ARRAY", "DECIMAL", "BOOLEAN", "DATE", "DATETIME", "PRODUCT_OFFER", "PRODUCT_SPEC", "PRODUCT_LINE" ]
A kind of value that the characteristic can take on, such as numeric, text, and so forth
object
array
object
PriceListRefOracle
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
The Class type of referred Price List
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of PricelistRef.
-
href: string
Unique reference of the Pricelist
-
id(required): string
Unique identifier of the Pricelist
-
name: string
Name of the Pricelist
-
version: string
Version of the Pricelist
-
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 promotion by submitting a PUT request on the REST resource using cURL.
cURL Command
cURL Command
curl -u username:password -X PUT \
'https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/promotions/'
-H 'Content-Type: application/json' -D @put_promotions.json |
json_pp
Example of Request Body
The following shows an example of the request body in JSON format.
[ { "lastUpdate": "2023-09-20T11:46:40.101Z", "lastUpdatedBy": "booth", "created": "2023-09-20T11:46:40.000Z", "createdBy": "booth", "versionState": 0, "id": "Oracle_V4VRWEDC", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/promotionManagement/v4/promotion/Oracle_V4VRWEDC", "name": "Names_V4K0XEKYX", "description": "VIP Promotions for VIP customers ", "@type": "PromotionOracle", "version": "1.0", "lifecycleStatus": "In design", "promotionType": "TRADE_IN", "pattern": [ { "id": "Pattern1", "name": "Discount", "description": "Gift for purchase", "priority": 1, "criteriaGroupLogicalRelationship": "AND", "criteriaGroup": [ { "id": "CG-237179606-1633409443690", "groupName": "Rating CG", "criteriaLogicalRelationship": "AND", "criteria": [ { "id": "criteZX", "valueTo": "800", "valueFrom": "600", "valueType": "STRING", "criteriaValue": "IN_BETWEEN", "rangeInterval": "OPEN", "criteriaOperator": "IN_BETWEEN", "criteriaParameter": "Credit Rating" } ] } ], "action": [ { "id": "2209", "actionType": [ "DISCOUNT" ], "actionValue": "10", "actionEntityRef": { "id": "Common-PS-26112021", "name": "Common-PS-26112021" }, "actionValueObj": [ { "versionState": 0, "id": "Promo_Pop", "name": "Promo_Pop", "actionObjectType": "PRODUCT_OFFERING_PRICE" } ], "eligibility": [ { "versionState": 0, "id": "Common-PS-26112021", "name": "Common-PS-26112021", "actionObjectType": "PRODUCT_SPECIFICATION" } ] } ] } ], "customProfileSpec": [ { "id": "CustSpecRetChklistData", "name": "CustSpecRetChklistData", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customProfileSpecification/CustSpecRetChklistData", "version": "1.0", "@referredType": "CustomProfileSpecificationOracle", "profileType": "RETURN_CHECKLIST" }, { "id": "CustSpecTradeInAutoData", "name": "CustSpecTradeInAutoData", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customProfileSpecification/CustSpecTradeInAutoData", "version": "1.0", "@referredType": "CustomProfileSpecificationOracle", "profileType": "TRADE_IN" } ] }, { "lastUpdate":"2023-09-23T06:50:28.156Z", "lastUpdatedBy":"booth", "created":"2023-09-23T06:50:28.000Z", "createdBy":"booth", "versionState":0, "id":"PROMO_10004x", "href":"https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/promotionManagement/v4/promotion/PROMO_10004x", "name":"Location promotion for school kids", "@type":"PromotionOracle", "version":"1.0", "validFor":{ "startDateTime":"2022-09-02T00:00:00.000Z" }, "project":{ "id":"23C_ProductModel_PSP", "name":"23C - DX4C Product Model", "href":"https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/23C_ProductModel_PSP" }, "lifecycleStatus":"In design", "promotionType":"DISCOUNT", "pattern":[ { "id":"pattern-404696233-166211715071", "name":"Mobile offer for kids", "priority":1, "criteriaGroupLogicalRelationship":"AND", "criteriaGroup":[ { "id":"CG-1932535019-1662116959477", "groupName":"Mobile offer for kids", "criteriaLogicalRelationship":"AND", "criteria":[ { "id":"criteria-1556266441-1662116959", "valueType":"PRODUCT_OFFER", "criteriaValue":"Oracle_DW1YAVC9", "criteriaOperator":"EQUALS", "criteriaParameter":"Product Offering" }, { "id":"criteria-1835686338-1662361421", "valueType":"STRING", "criteriaValue":"NY", "criteriaOperator":"EQUALS", "criteriaParameter":"State" }, { "versionState":0, "id":"criteria-59256234-166211700341", "valueType":"PRODUCT_LINE", "criteriaValue":"PL_1001", "criteriaOperator":"EQUALS", "criteriaParameter":"Product Line" } ] } ], "action":[ { "id":"action-2667852764-166211712640", "actionType":[ "DISCOUNT" ], "actionValue":"0.05", "actionValueObj":[ { "versionState":0, "id":"pricealt-1910196940-1662117152", "name":"pricealt-1910196940-1662117152", "actionObjectType":"PRODUCT_OFFERING_PRICE", "@referredType":"ProductOfferPriceAlterationOracle", "appliesTo":"ALL", "maxQuantity":1 } ], "eligibility":[ { "versionState":0, "id":"PL_1001", "name":"Mobile Phones", "actionObjectType":"PRODUCTLINE", "@referredType":"ProductLineOracle", "@type":"ActionObjectRefOracle" } ] } ], "active":true } ], "priceList":[ { "id":"US_PL_1", "name":"DX4C NA Pricelist", "href":"https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/pricelist/US_PL_1", "version":"1.0", "versionState":0, "@referredType":"PricelistOracle" } ], "customProfileSpec":[ { "id":"DX4CCustomProfileSpec", "name":"DX4CCustomProfileSpec", "href":"https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customProfileSpecification/DX4CCustomProfileSpec", "version":"1.0", "versionState":0, "@referredType":"CustomProfileSpecificationOracle" } ], "active":true } ]
Example of Response Body
The following shows an example of the response body in JSON format.
[ { "lastUpdate": "2023-09-20T11:46:40.101Z", "lastUpdatedBy": "booth", "created": "2023-09-20T11:46:40.000Z", "createdBy": "booth", "id": "Oracle_V4VRWEDC", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/promotions/Oracle_V4VRWEDC", "name": "Names_V4K0XEKYX", "description": "VIP Promotions for VIP customers ", "@type": "PromotionOracle", "version": "1.0", "lifecycleStatus": "In design", "promotionType": "TRADE_IN", "pattern": [ { "id": "Pattern1", "name": "Discount", "description": "Gift for purchase", "priority": 1, "criteriaGroupLogicalRelationship": "AND", "criteriaGroup": [ { "id": "CG-237179606-1633409443690", "groupName": "Rating CG", "criteriaLogicalRelationship": "AND", "criteria": [ { "id": "criteZX", "valueTo": "800", "valueFrom": "600", "valueType": "STRING", "criteriaValue": "IN_BETWEEN", "rangeInterval": "OPEN", "criteriaOperator": "IN_BETWEEN", "criteriaParameter": "Credit Rating" } ] } ], "action": [ { "id": "2209", "actionType": [ "DISCOUNT" ], "actionValue": "10", "actionEntityRef": { "id": "Common-PS-26112021", "name": "Common-PS-26112021" }, "actionValueObj": [ { "versionState": 0, "id": "Promo_Pop", "name": "Promo_Pop", "actionObjectType": "PRODUCT_OFFERING_PRICE" } ], "eligibility": [ { "versionState": 0, "id": "Common-PS-26112021", "name": "Common-PS-26112021", "actionObjectType": "PRODUCT_SPECIFICATION" } ] } ] } ], "customProfileSpec": [ { "id": "CustSpecRetChklistData", "name": "CustSpecRetChklistData", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customProfileSpecification/CustSpecRetChklistData", "version": "1.0", "@referredType": "CustomProfileSpecificationOracle" }, { "id": "CustSpecTradeInAutoData", "name": "CustSpecTradeInAutoData", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customProfileSpecification/CustSpecTradeInAutoData", "version": "1.0", "@referredType": "CustomProfileSpecificationOracle" } ] }, { "lastUpdate": "2023-09-23T06:50:28.156Z", "lastUpdatedBy": "booth", "created": "2023-09-23T06:50:28.000Z", "createdBy": "booth", "id": "PROMO_10004x", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/promotions/PROMO_10004x", "name": "Location promotion for school kids", "@type": "PromotionOracle", "version": "1.0", "validFor": { "startDateTime": "2022-09-02T00:00:00.000Z" }, "project": { "id": "23C_ProductModel_PSP", "name": "23C - DX4C Product Model", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/23C_ProductModel_PSP" }, "lifecycleStatus": "In design", "promotionType": "DISCOUNT", "pattern": [ { "id": "pattern-404696233-166211715071", "name": "Mobile offer for kids", "priority": 1, "criteriaGroupLogicalRelationship": "AND", "criteriaGroup": [ { "id": "CG-1932535019-1662116959477", "groupName": "Mobile offer for kids", "criteriaLogicalRelationship": "AND", "criteria": [ { "id": "criteria-1556266441-1662116959", "valueType": "PRODUCT_OFFER", "criteriaValue": "Oracle_DW1YAVC9", "criteriaOperator": "EQUALS", "criteriaParameter": "Product Offering" }, { "id": "criteria-1835686338-1662361421", "valueType": "STRING", "criteriaValue": "NY", "criteriaOperator": "EQUALS", "criteriaParameter": "State" }, { "versionState": 0, "id": "criteria-59256234-166211700341", "valueType": "PRODUCT_LINE", "criteriaValue": "PL_1001", "criteriaOperator": "EQUALS", "criteriaParameter": "Product Line" } ] } ], "action": [ { "id": "action-2667852764-166211712640", "actionType": [ "DISCOUNT" ], "actionValue": "0.05", "actionValueObj": [ { "versionState": 0, "id": "pricealt-1910196940-1662117152", "name": "pricealt-1910196940-1662117152", "actionObjectType": "PRODUCT_OFFERING_PRICE", "@referredType": "ProductOfferPriceAlterationOracle", "appliesTo": "ALL", "maxQuantity": 1 } ], "eligibility": [ { "versionState": 0, "id": "PL_1001", "name": "Mobile Phones", "actionObjectType": "PRODUCTLINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" } ] } ], "active": true } ], "priceList": [ { "id": "US_PL_1", "name": "DX4C NA Pricelist", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/pricelist/US_PL_1", "version": "1.0", "versionState": 0, "@referredType": "PricelistOracle" } ], "customProfileSpec": [ { "id": "DX4CCustomProfileSpec", "name": "DX4CCustomProfileSpec", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customProfileSpecification/DX4CCustomProfileSpec", "version": "1.0", "versionState": 0, "@referredType": "CustomProfileSpecificationOracle" } ], "active": true } ]
Create promotion with multiple action type
cURL Command
curl -u username:password -H POST https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/promotion/v2/promotion/{PromotionId} -H "Content-Type: application/json" -D @put_promotionmultipletype.json | json_pp
Example of Request Body
The following shows an example of the request body.
{ "id": "myTradein00025", "name": "My Tradein00025", "description": "This is new trade-in program for Premium Phones.", "version": "1.0", "validFor": { "startDateTime": "2020-09-14T00:00:00.000Z", "endDateTime": "2021-01-25T00:00:00.000Z" }, "project": { "id": "christmasInitiative", "name": "Christmas Initiative", }, "lifecycleStatus": "In design", "promotionType": "TRADE_IN", "pattern": [ { "id": "10percentPattern", "name": "10 percent discount Price Pattern", "description": "trade-in value with 10 percent discount indevice", "validFor": { "startDateTime": "2020-09-14T00:00:00.000Z", "endDateTime": "2021-01-25T00:00:00.000Z" }, "priority": 5, "criteriaGroup": [ { "id": "CriteriaGroup1", "groupName": "trade-in value with 10 percent discountGroup", "relationTypeInGroup": "OR", "criteria": [ { "id": "Question 4", "description": "Activation Lock turned on,Screenhas bruised/dead pixels, Device is Unlocked.", "criteriaPara": "Is the activation lock turnedoff?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" } ], "@type": "PromotionCriteriaGroupOracle" } ], "action": [ { "id": "10PercentDiscountPriceAction", "actionType": [ "DISCOUNT", "VOUCHER" ], "actionValueObj": [ { "id": "PriceWith10PercentageDiscount", "name": "Price with 10 percent discount", "actionObjectType": "PRODUCT_OFFERING_PRICE", "@referredType": "ProductOfferPriceAlterationOracle", "@type": "ActionObjectRefOracle" } ], "eligibility": [ { "id": "ProductLine1", "name": "ProductLine 1", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "ProductLine2", "name": "ProductLine 2", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "TelecomProductlinexx22", "name": "TelecomProductlinexx22", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "SwissCommCategory_Y2021_001", "name": "SwissCommCategory_Y2021_001", "actionObjectType": "CATEGORY", "@referredType": "CategoryOracle", "@type": "ActionObjectRefOracle" } ], "@type": "PromotionActionOracle" } ], "@type": "PromotionPattern" }, { "id": "15percentPattern", "name": "15 percent discount Price Pattern", "description": "trade-in value with 15 percent discount indevice", "validFor": { "startDateTime": "2020-09-14T00:00:00.000Z", "endDateTime": "2021-01-25T00:00:00.000Z" }, "priority": 4, "criteriaGroup": [ { "id": "CriteriaGroup1", "groupName": "trade-in value with 15 percent discountGroup", "relationTypeInGroup": "OR", "criteria": [ { "id": "Question 3", "description": "Screen doesn't functionproperly,Screen has bruised/dead pixels, Device is Unlocked.", "criteriaPara": "Is the screen Functioningcorrectly and intact, free of any chips, bruised/dead pixels or burn-in?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" } ], "@type": "PromotionCriteriaGroupOracle" } ], "action": [ { "id": "15PercentDiscountPriceAction", "actionType": [ "DISCOUNT", "VOUCHER" ], "actionValueObj": [ { "id": "PriceWith15PercentageDiscount", "name": "Price with 15 percent discount", "actionObjectType": "PRODUCT_OFFERING_PRICE", "@referredType": "ProductOfferPriceAlterationOracle", "@type": "ActionObjectRefOracle" } ], "eligibility": [ { "id": "ProductLine1", "name": "ProductLine 1", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "ProductLine2", "name": "ProductLine 2", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "TelecomProductlinexx22", "name": "TelecomProductlinexx22", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "SwissCommCategory_Y2021_001", "name": "SwissCommCategory_Y2021_001", "actionObjectType": "CATEGORY", "@referredType": "CategoryOracle", "@type": "ActionObjectRefOracle" } ], "@type": "PromotionActionOracle" } ], "@type": "PromotionPattern" }, { "id": "25percentPattern", "name": "25 percent discount Price Pattern", "description": "trade-in value with 25 percent discount indevice", "validFor": { "startDateTime": "2020-09-14T00:00:00.000Z", "endDateTime": "2021-01-25T00:00:00.000Z" }, "priority": 3, "criteriaGroup": [ { "id": "CriteriaGroup1", "groupName": "trade-in value with 25 percent discountGroup", "relationTypeInGroup": "OR", "criteria": [ { "id": "Question 2", "description": "Device have physicalDamages,Device is Unlocked.", "criteriaPara": "Does the device have physicaldamages?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" } ], "@type": "PromotionCriteriaGroupOracle" } ], "action": [ { "id": "25PercentDiscountPriceAction", "actionType": [ "DISCOUNT", "VOUCHER" ], "actionValueObj": [ { "id": "PriceWith25PercentageDiscount", "name": "Price with 25 percent discount", "actionObjectType": "PRODUCT_OFFERING_PRICE", "@referredType": "ProductOfferPriceAlterationOracle", "@type": "ActionObjectRefOracle" } ], "eligibility": [ { "id": "ProductLine1", "name": "ProductLine 1", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "ProductLine2", "name": "ProductLine 2", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "TelecomProductlinexx22", "name": "TelecomProductlinexx22", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "SwissCommCategory_Y2021_001", "name": "SwissCommCategory_Y2021_001", "actionObjectType": "CATEGORY", "@referredType": "CategoryOracle", "@type": "ActionObjectRefOracle" } ], "@type": "PromotionActionOracle" } ], "@type": "PromotionPattern" }, { "id": "MinPricePattern", "name": "Minimum Price Pattern", "description": "Minimum value for trade-in device", "validFor": { "startDateTime": "2020-09-14T00:00:00.000Z", "endDateTime": "2021-01-25T00:00:00.000Z" }, "priority": 2, "criteriaGroup": [ { "id": "CriteriaGroup1", "groupName": "Minimum trade-in value Group", "relationTypeInGroup": "OR", "criteria": [ { "id": "Question 1", "description": "Device doesn't Turns On,There areScreen Damages,Device is locked.", "criteriaPara": "Does the device turns on?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" } ], "@type": "PromotionCriteriaGroupOracle" } ], "action": [ { "id": "MinPriceAction", "actionType": [ "DISCOUNT", "VOUCHER" ], "actionValue": -1, "eligibility": [ { "id": "ProductLine1", "name": "ProductLine 1", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "ProductLine2", "name": "ProductLine 2", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "TelecomProductlinexx22", "name": "TelecomProductlinexx22", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "SwissCommCategory_Y2021_001", "name": "SwissCommCategory_Y2021_001", "actionObjectType": "CATEGORY", "@referredType": "CategoryOracle", "@type": "ActionObjectRefOracle" } ], "@type": "PromotionAction" } ], "@type": "PromotionPattern" }, { "id": "NoReductionPattern", "name": "NoReductionPattern", "description": "No Reduction for trade-in device", "validFor": { "startDateTime": "2020-09-14T00:00:00.000Z", "endDateTime": "2021-01-25T00:00:00.000Z" }, "priority": 1, "criteriaGroup": [ { "id": "CriteriaGroup1", "groupName": "No Reduction Group", "relationTypeInGroup": "OR", "criteria": [ { "id": "Question 1", "description": "Device Turns On,No ScreenDamage,Device is Unlocked.", "criteriaPara": "Does the device turns on?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" }, { "id": "Question 2", "description": "No physical Damages,Device TurnsOn,Device is Unlocked.", "criteriaPara": "Does the device have physicaldamages?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" }, { "id": "Question 3", "description": "Sceen Functioning correctly,Nobruised/dead pixels on the screen,No burn-in on the screen.", "criteriaPara": "Is the screen Functioningcorrectly and intact, free of any chips, bruised/dead pixels or burn-in?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" }, { "id": "Question 4", "description": "Activation lock turned off,NoScreen Damage,Device is Unlocked.", "criteriaPara": "Is the activation lock turnedoff?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" } ], "@type": "PromotionCriteriaGroupOracle" } ], "action": [ { "id": "NoReductionAction", "actionType": [ "DISCOUNT", "VOUCHER" ], "actionValueObj": [ { "id": "noReductionPrice", "name": "No Reduction Price", "actionObjectType": "PRODUCT_OFFERING_PRICE", "@referredType": "ProductOfferPriceAlterationOracle", "@type": "ActionObjectRefOracle" } ], "eligibility": [ { "id": "ProductLine1", "name": "ProductLine 1", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "ProductLine2", "name": "ProductLine 2", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "TelecomProductlinexx22", "name": "TelecomProductlinexx22", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "SwissCommCategory_Y2021_001", "name": "SwissCommCategory_Y2021_001", "actionObjectType": "CATEGORY", "@referredType": "CategoryOracle", "@type": "ActionObjectRefOracle" } ], "@type": "PromotionActionOracle" } ], "@type": "PromotionPattern" } ], "customProfileSpec": [ { "id": "mycustomSpecification", "name": "Premium Phones Specification", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customProfileSpecification/mycustomSpecification", "version": "1.0", "@referredType": "CustomProfileSpecificationOracle", "profileType": "TRADE_IN" } ], "@type": "PromotionOracle", "attachment": [ { "description": "document", "id": "ReturnPolicy.docx", "url": "https://{FusionAppsHost}", "name": "ReturnPolicy.docx", "@type": "AttachmentOracle" }, { "description": "document", "id": "Terms_trade-in.pdf", "url": "https://{FusionAppsHost}/https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/v1/attachment/Terms_and_Conditions.docx?path=CatalogManagement/docs", "name": "Terms_trade-in.pdf", "@type": "AttachmentOracle" } ], "category": [ { "id": "SwissCommCategory_Y2021_001", "name": "SwissCommCategory_Y2021_001", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/SwissCommCategory_Y2021_001", "version": "1.0" } ] }
Example of Response Body
The following shows an example of the response body.
{ "lastUpdate": "2021-10-06T09:33:13.220Z", "lastUpdatedBy": "booth", "created": "2021-10-06T09:32:42.000Z", "createdBy": "booth", "id": "myTradein00025", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/promotion/v2/promotion/myTradein00025", "name": "My Tradein00025", "description": "This is new trade-in program for Premium Phones.", "version": "1.0", "validFor": { "startDateTime": "2020-09-14T00:00:00.000Z", "endDateTime": "2021-01-25T00:00:00.000Z" }, "project": { "id": "christmasInitiative", "name": "Christmas Initiative", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/christmasInitiative" }, "lifecycleStatus": "In design", "promotionType": "TRADE_IN", "pattern": [ { "id": "10percentPattern", "name": "10 percent discount Price Pattern", "description": "trade-in value with 10 percent discount indevice", "validFor": { "startDateTime": "2020-09-14T00:00:00.000Z", "endDateTime": "2021-01-25T00:00:00.000Z" }, "priority": 5, "criteriaGroup": [ { "id": "CriteriaGroup1", "groupName": "trade-in value with 10 percent discountGroup", "relationTypeInGroup": "OR", "criteria": [ { "id": "Question 4", "description": "Activation Lock turned on,Screenhas bruised/dead pixels, Device is Unlocked.", "criteriaPara": "Is the activation lock turnedoff?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" } ], "@type": "PromotionCriteriaGroupOracle" } ], "action": [ { "id": "10PercentDiscountPriceAction", "actionType": [ "DISCOUNT", "VOUCHER" ], "actionValueObj": [ { "id": "PriceWith10PercentageDiscount", "name": "Price with 10 percent discount", "actionObjectType": "PRODUCT_OFFERING_PRICE", "@referredType": "ProductOfferPriceAlterationOracle", "@type": "ActionObjectRefOracle" } ], "eligibility": [ { "id": "ProductLine1", "name": "ProductLine 1", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "ProductLine2", "name": "ProductLine 2", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "TelecomProductlinexx22", "name": "TelecomProductlinexx22", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "SwissCommCategory_Y2021_001", "name": "SwissCommCategory_Y2021_001", "actionObjectType": "CATEGORY", "@referredType": "CategoryOracle", "@type": "ActionObjectRefOracle" } ], "@type": "PromotionActionOracle" } ], "@type": "PromotionPattern" }, { "id": "15percentPattern", "name": "15 percent discount Price Pattern", "description": "trade-in value with 15 percent discount indevice", "validFor": { "startDateTime": "2020-09-14T00:00:00.000Z", "endDateTime": "2021-01-25T00:00:00.000Z" }, "priority": 4, "criteriaGroup": [ { "id": "CriteriaGroup1", "groupName": "trade-in value with 15 percent discountGroup", "relationTypeInGroup": "OR", "criteria": [ { "id": "Question 3", "description": "Screen doesn't functionproperly,Screen has bruised/dead pixels, Device is Unlocked.", "criteriaPara": "Is the screen Functioningcorrectly and intact, free of any chips, bruised/dead pixels or burn-in?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" } ], "@type": "PromotionCriteriaGroupOracle" } ], "action": [ { "id": "15PercentDiscountPriceAction", "actionType": [ "DISCOUNT", "VOUCHER" ], "actionValueObj": [ { "id": "PriceWith15PercentageDiscount", "name": "Price with 15 percent discount", "actionObjectType": "PRODUCT_OFFERING_PRICE", "@referredType": "ProductOfferPriceAlterationOracle", "@type": "ActionObjectRefOracle" } ], "eligibility": [ { "id": "ProductLine1", "name": "ProductLine 1", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "ProductLine2", "name": "ProductLine 2", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "TelecomProductlinexx22", "name": "TelecomProductlinexx22", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "SwissCommCategory_Y2021_001", "name": "SwissCommCategory_Y2021_001", "actionObjectType": "CATEGORY", "@referredType": "CategoryOracle", "@type": "ActionObjectRefOracle" } ], "@type": "PromotionActionOracle" } ], "@type": "PromotionPattern" }, { "id": "25percentPattern", "name": "25 percent discount Price Pattern", "description": "trade-in value with 25 percent discount indevice", "validFor": { "startDateTime": "2020-09-14T00:00:00.000Z", "endDateTime": "2021-01-25T00:00:00.000Z" }, "priority": 3, "criteriaGroup": [ { "id": "CriteriaGroup1", "groupName": "trade-in value with 25 percent discountGroup", "relationTypeInGroup": "OR", "criteria": [ { "id": "Question 2", "description": "Device have physicalDamages,Device is Unlocked.", "criteriaPara": "Does the device have physicaldamages?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" } ], "@type": "PromotionCriteriaGroupOracle" } ], "action": [ { "id": "25PercentDiscountPriceAction", "actionType": [ "DISCOUNT", "VOUCHER" ], "actionValueObj": [ { "id": "PriceWith25PercentageDiscount", "name": "Price with 25 percent discount", "actionObjectType": "PRODUCT_OFFERING_PRICE", "@referredType": "ProductOfferPriceAlterationOracle", "@type": "ActionObjectRefOracle" } ], "eligibility": [ { "id": "ProductLine1", "name": "ProductLine 1", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "ProductLine2", "name": "ProductLine 2", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "TelecomProductlinexx22", "name": "TelecomProductlinexx22", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "SwissCommCategory_Y2021_001", "name": "SwissCommCategory_Y2021_001", "actionObjectType": "CATEGORY", "@referredType": "CategoryOracle", "@type": "ActionObjectRefOracle" } ], "@type": "PromotionActionOracle" } ], "@type": "PromotionPattern" }, { "id": "MinPricePattern", "name": "Minimum Price Pattern", "description": "Minimum value for trade-in device", "validFor": { "startDateTime": "2020-09-14T00:00:00.000Z", "endDateTime": "2021-01-25T00:00:00.000Z" }, "priority": 2, "criteriaGroup": [ { "id": "CriteriaGroup1", "groupName": "Minimum trade-in value Group", "relationTypeInGroup": "OR", "criteria": [ { "id": "Question 1", "description": "Device doesn't Turns On,There areScreen Damages,Device is locked.", "criteriaPara": "Does the device turns on?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" } ], "@type": "PromotionCriteriaGroupOracle" } ], "action": [ { "id": "MinPriceAction", "actionType": [ "DISCOUNT", "VOUCHER" ], "actionValue": -1, "eligibility": [ { "id": "ProductLine1", "name": "ProductLine 1", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "ProductLine2", "name": "ProductLine 2", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "TelecomProductlinexx22", "name": "TelecomProductlinexx22", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "SwissCommCategory_Y2021_001", "name": "SwissCommCategory_Y2021_001", "actionObjectType": "CATEGORY", "@referredType": "CategoryOracle", "@type": "ActionObjectRefOracle" } ], "@type": "PromotionAction" } ], "@type": "PromotionPattern" }, { "id": "NoReductionPattern", "name": "NoReductionPattern", "description": "No Reduction for trade-in device", "validFor": { "startDateTime": "2020-09-14T00:00:00.000Z", "endDateTime": "2021-01-25T00:00:00.000Z" }, "priority": 1, "criteriaGroup": [ { "id": "CriteriaGroup1", "groupName": "No Reduction Group", "relationTypeInGroup": "OR", "criteria": [ { "id": "Question 1", "description": "Device Turns On,No ScreenDamage,Device is Unlocked.", "criteriaPara": "Does the device turns on?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" }, { "id": "Question 2", "description": "No physical Damages,Device TurnsOn,Device is Unlocked.", "criteriaPara": "Does the device have physicaldamages?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" }, { "id": "Question 3", "description": "Sceen Functioning correctly,Nobruised/dead pixels on the screen,No burn-in on the screen.", "criteriaPara": "Is the screen Functioningcorrectly and intact, free of any chips, bruised/dead pixels or burn-in?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" }, { "id": "Question 4", "description": "Activation lock turned off,NoScreen Damage,Device is Unlocked.", "criteriaPara": "Is the activation lock turnedoff?", "criteriaOperator": "EQUALS", "@type": "PromotionCriteria" } ], "@type": "PromotionCriteriaGroupOracle" } ], "action": [ { "id": "NoReductionAction", "actionType": [ "DISCOUNT", "VOUCHER" ], "actionValueObj": [ { "id": "noReductionPrice", "name": "No Reduction Price", "actionObjectType": "PRODUCT_OFFERING_PRICE", "@referredType": "ProductOfferPriceAlterationOracle", "@type": "ActionObjectRefOracle" } ], "eligibility": [ { "id": "ProductLine1", "name": "ProductLine 1", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "ProductLine2", "name": "ProductLine 2", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "TelecomProductlinexx22", "name": "TelecomProductlinexx22", "actionObjectType": "PRODUCT_LINE", "@referredType": "ProductLineOracle", "@type": "ActionObjectRefOracle" }, { "id": "SwissCommCategory_Y2021_001", "name": "SwissCommCategory_Y2021_001", "actionObjectType": "CATEGORY", "@referredType": "CategoryOracle", "@type": "ActionObjectRefOracle" } ], "@type": "PromotionActionOracle" } ], "@type": "PromotionPattern" } ], "customProfileSpec": [ { "id": "mycustomSpecification", "name": "Premium Phones Specification", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customProfileSpecification/mycustomSpecification", "version": "1.0", "@referredType": "CustomProfileSpecificationOracle", "profileType": "TRADE_IN" } ], "@type": "PromotionOracle", "attachment": [ { "description": "document", "id": "ReturnPolicy.docx", "url": "https://{FusionAppsHost}", "name": "ReturnPolicy.docx", "@type": "AttachmentOracle" }, { "description": "document", "id": "Terms_trade-in.pdf", "url": "https://{FusionAppsHost}/https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/v1/attachment/Terms_and_Conditions.docx?path=CatalogManagement/docs", "name": "Terms_trade-in.pdf", "@type": "AttachmentOracle" } ], "category": [ { "id": "SwissCommCategory_Y2021_001", "name": "SwissCommCategory_Y2021_001", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/SwissCommCategory_Y2021_001", "version": "1.0" } ] }