Create a promotion
post
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/promotionManagement/v4/promotion
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : PromotionOracle
Title:
PromotionOracle
Match All
Show Source
-
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
Nested Schema : Promotion
Type:
object
Title:
Promotion
Discriminator: @type
Discriminator Values
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.
Show Source
-
@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
Nested Schema : type
Type:
Show Source
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
Nested Schema : agreement
Type:
Show Source
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.
Nested Schema : category
Type:
Show Source
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.
Nested Schema : customProfileSpec
Type:
Show Source
array
-
Array of:
object CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference.
Nested Schema : customProfSpecCharValueUse
Type:
Show Source
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.
Nested Schema : priceList
Type:
Show Source
array
-
Array of:
object PriceListRefOracle
Title:
PriceListRefOracle
Pricelist reference.
Nested Schema : ProjectRef
Type:
object
Title:
ProjectRef
Project Reference
Show Source
-
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
Nested Schema : Agreement
Type:
object
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.
Show Source
-
@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
Nested Schema : CategoryRef
Type:
object
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.
Show Source
-
@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
Nested Schema : CustomProfileSpecRefOracle
Type:
object
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference.
Show Source
-
@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
Nested Schema : CustomProfSpecCharValueUse
Type:
object
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.
Show Source
-
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
Nested Schema : customProfileSpecCharValue
Type:
Show Source
array
-
Array of:
object CustomProfileSpecCharValue
Title:
CustomProfileSpecCharValue
A number or text that can be assigned to a CustomProfileSpecCharacteristic.
Nested Schema : TimePeriodOracle
Type:
object
Title:
TimePeriodOracle
Validity period of the related party
Show Source
-
endDateTime: string
(date-time)
An instant of time, ending at the TimePeriod.
-
startDateTime: string
(date-time)
An instant of time, starting at the TimePeriod
Nested Schema : CustomProfileSpecCharValue
Type:
object
Title:
CustomProfileSpecCharValue
A number or text that can be assigned to a CustomProfileSpecCharacteristic.
Show Source
-
@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
Nested Schema : value
A discrete value that the characteristic can take on. the value type is defined by 'valueType' characteristic
Match One Schema
Show Source
Nested Schema : value-oneOf[1]
Type:
object
Nested Schema : value-oneOf[4]
Type:
array
Nested Schema : PriceListRefOracle
Type:
object
Title:
PriceListRefOracle
Pricelist reference.
Show Source
-
@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
Supported Media Types
- application/json
201 Response
Your request is successful and a new resource has been created.
Root Schema : PromotionOracle
Title:
PromotionOracle
Match All
Show Source
-
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
Nested Schema : Promotion
Type:
object
Title:
Promotion
Discriminator: @type
Discriminator Values
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.
Show Source
-
@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
Nested Schema : type
Type:
Show Source
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
Nested Schema : agreement
Type:
Show Source
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.
Nested Schema : category
Type:
Show Source
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.
Nested Schema : customProfileSpec
Type:
Show Source
array
-
Array of:
object CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference.
Nested Schema : customProfSpecCharValueUse
Type:
Show Source
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.
Nested Schema : priceList
Type:
Show Source
array
-
Array of:
object PriceListRefOracle
Title:
PriceListRefOracle
Pricelist reference.
Nested Schema : ProjectRef
Type:
object
Title:
ProjectRef
Project Reference
Show Source
-
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
Nested Schema : Agreement
Type:
object
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.
Show Source
-
@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
Nested Schema : CategoryRef
Type:
object
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.
Show Source
-
@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
Nested Schema : CustomProfileSpecRefOracle
Type:
object
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference.
Show Source
-
@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
Nested Schema : CustomProfSpecCharValueUse
Type:
object
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.
Show Source
-
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
Nested Schema : customProfileSpecCharValue
Type:
Show Source
array
-
Array of:
object CustomProfileSpecCharValue
Title:
CustomProfileSpecCharValue
A number or text that can be assigned to a CustomProfileSpecCharacteristic.
Nested Schema : TimePeriodOracle
Type:
object
Title:
TimePeriodOracle
Validity period of the related party
Show Source
-
endDateTime: string
(date-time)
An instant of time, ending at the TimePeriod.
-
startDateTime: string
(date-time)
An instant of time, starting at the TimePeriod
Nested Schema : CustomProfileSpecCharValue
Type:
object
Title:
CustomProfileSpecCharValue
A number or text that can be assigned to a CustomProfileSpecCharacteristic.
Show Source
-
@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
Nested Schema : value
A discrete value that the characteristic can take on. the value type is defined by 'valueType' characteristic
Match One Schema
Show Source
Nested Schema : value-oneOf[1]
Type:
object
Nested Schema : value-oneOf[4]
Type:
array
Nested Schema : PriceListRefOracle
Type:
object
Title:
PriceListRefOracle
Pricelist reference.
Show Source
-
@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
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 : Error
Type:
object
Title:
Show Source
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
401 Response
Your request isn't authorized. The authentication credentials included with this request are missing or invalid.
Root Schema : Error
Type:
object
Title:
Show Source
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
Your request includes a resource URI that doesn't exist.
Root Schema : Error
Type:
object
Title:
Show Source
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
HTTP action specified in the request (DELETE, GET, POST, PUT) isn't supported for this request URI.
Root Schema : Error
Type:
object
Title:
Show Source
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
The server encountered something unexpected that prevented it from completing the request.
Root Schema : Error
Type:
object
Title:
Show Source
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 a promotion by submitting a POST request on the REST resource using cURL.
Create a promotion
cURL Command
curl -H 'Authorization: Bearer <accessToken> -H POST https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/promotion/v4/promotion/{PromotionId} -H "Content-Type: application/json" -D @post_promotion.json | json_pp
Example of Request Body
The following shows an example of the request body.
{ "lastUpdate": "2023-03-02T12:25:19.584Z", "lastUpdatedBy": "booth", "created": "2023-03-01T08:26:52.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 promo for kidsx", "@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" } ] } ] } ], "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", "profileType": "DEVICE_SPEC" } ] }
Example of Response Body
The following shows an example of the response body.{FusionAppsHost}
{ "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 promo for kidsx", "@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 }