Create or update an array of balance elements
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/balanceElements
Request
There are no request parameters for this operation.
- application/json
array150-
Array of:
object BalanceElementOracle
Title:
BalanceElementOracleThe balance element represents the currency and non currency units used in Pricing.
objectBalanceElementOracle-
@baseType: string
The base type of the balance element.
-
@schemaLocation: string
The URI of the schema that defines the balance element.
-
@type(required): string
The class type of the balance element.
-
applicationName: string
The name of the application associated with the balance element.
-
balanceElementType: string
Allowed Values:
[ "COUNTER", "ALLOWANCE", "CURRENCY", "CRYPTO", "PSEUDO" ]The type or classification of the balance element. Valid values are COUNTER, ALLOWANCE, CURRENCY, CRYPTO, and PSEUDO. -
code: string
The currency code, using the three-letter ISO 4217 code for currency balance elements or a user-defined code for non-currency balance elements.
-
consumptionRule: string
Allowed Values:
[ "NONE", "EST", "LST", "EET", "LET", "ESTLET", "ESTEET", "LSTEET", "LSTLET", "EETEST", "LETEST", "LETLST" ]The consumption Rule of Balance Element. Valid values are NONE, EST, LST, EET, LET, ESTLET, ESTEET, LSTEET, LSTLET, EETEST, LETEST, and LETLST. -
created: string
(date-time)
The date and time of the creation.
-
createdBy: string
The name of the person who created item.
-
decimalPlaces: string
The allowed decimal places.
-
description: string
The description of balance element.
-
externalId: string
The ID of the external associated with the balance element.
-
href: string
The hyperlink reference to the balance element.
-
id: string
Maximum Length:
30The ID of the balance element. -
lastUpdate: string
(date-time)
The date and time when the balance element was last updated.
-
lastUpdatedBy: string
The name of the person who updated item.
-
lifecycleStatus: string
The status of the balance element.
-
name: string
The name of the balance element.
-
numericCode: number
The unique numeric code, using the ISO 4217 numeric code for currency balance elements or an autogenerated value greater than 1000 for non-currency balance elements.
-
project: object
ProjectRef
Title:
ProjectRefThe project reference resource. - relatedParty: array relatedParty
-
roundingMethod: string
The default rounding applicable to the balance element.
-
symbol: string
The symbol of the currency or pseudo currency.
-
validFor: object
TimePeriod
Title:
TimePeriodThe period for which the productOffering is valid. -
version: string
The balance element version.
-
versionState: number
The version state of the balance element.
objectProjectRef-
href: string
The hyperlink reference to the project reference.
-
id(required): string
The ID of the project reference.
-
name: string
The name of the project reference.
-
version: string
The version of the project.
objectTimePeriod-
endDateTime: string
(date-time)
The end date and time of the time period.
-
startDateTime: string
(date-time)
The start date and time of the time period.
objectRelatedParty-
@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'.
arrayResponse
- application/json
200 Response
array-
Array of:
object BalanceElementOracle
Title:
BalanceElementOracleThe balance element represents the currency and non currency units used in Pricing.
objectBalanceElementOracle-
@baseType: string
The base type of the balance element.
-
@schemaLocation: string
The URI of the schema that defines the balance element.
-
@type(required): string
The class type of the balance element.
-
applicationName: string
The name of the application associated with the balance element.
-
balanceElementType: string
Allowed Values:
[ "COUNTER", "ALLOWANCE", "CURRENCY", "CRYPTO", "PSEUDO" ]The type or classification of the balance element. Valid values are COUNTER, ALLOWANCE, CURRENCY, CRYPTO, and PSEUDO. -
code: string
The currency code, using the three-letter ISO 4217 code for currency balance elements or a user-defined code for non-currency balance elements.
-
consumptionRule: string
Allowed Values:
[ "NONE", "EST", "LST", "EET", "LET", "ESTLET", "ESTEET", "LSTEET", "LSTLET", "EETEST", "LETEST", "LETLST" ]The consumption Rule of Balance Element. Valid values are NONE, EST, LST, EET, LET, ESTLET, ESTEET, LSTEET, LSTLET, EETEST, LETEST, and LETLST. -
created: string
(date-time)
The date and time of the creation.
-
createdBy: string
The name of the person who created item.
-
decimalPlaces: string
The allowed decimal places.
-
description: string
The description of balance element.
-
externalId: string
The ID of the external associated with the balance element.
-
href: string
The hyperlink reference to the balance element.
-
id: string
Maximum Length:
30The ID of the balance element. -
lastUpdate: string
(date-time)
The date and time when the balance element was last updated.
-
lastUpdatedBy: string
The name of the person who updated item.
-
lifecycleStatus: string
The status of the balance element.
-
name: string
The name of the balance element.
-
numericCode: number
The unique numeric code, using the ISO 4217 numeric code for currency balance elements or an autogenerated value greater than 1000 for non-currency balance elements.
-
project: object
ProjectRef
Title:
ProjectRefThe project reference resource. - relatedParty: array relatedParty
-
roundingMethod: string
The default rounding applicable to the balance element.
-
symbol: string
The symbol of the currency or pseudo currency.
-
validFor: object
TimePeriod
Title:
TimePeriodThe period for which the productOffering is valid. -
version: string
The balance element version.
-
versionState: number
The version state of the balance element.
objectProjectRef-
href: string
The hyperlink reference to the project reference.
-
id(required): string
The ID of the project reference.
-
name: string
The name of the project reference.
-
version: string
The version of the project.
objectTimePeriod-
endDateTime: string
(date-time)
The end date and time of the time period.
-
startDateTime: string
(date-time)
The start date and time of the time period.
objectRelatedParty-
@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'.
array400 Response
array-
Array of:
object Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "Error":"#/components/schemas/Error", "BulkError":"#/components/schemas/BulkError" } }
401 Response
objectError-
@schemaLocation: string
The URI of the schema that defines the error.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list).
-
message: string
The text that provides more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
The text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
The URL pointing to documentation describing the error.
-
status: string
The status of the error.
404 Response
objectError-
@schemaLocation: string
The URI of the schema that defines the error.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list).
-
message: string
The text that provides more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
The text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
The URL pointing to documentation describing the error.
-
status: string
The status of the error.
405 Response
objectError-
@schemaLocation: string
The URI of the schema that defines the error.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list).
-
message: string
The text that provides more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
The text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
The URL pointing to documentation describing the error.
-
status: string
The status of the error.
500 Response
objectError-
@schemaLocation: string
The URI of the schema that defines the error.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list).
-
message: string
The text that provides more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
The text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
The URL pointing to documentation describing the error.
-
status: string
The status of the error.
Examples
The following example shows how to create or update an array of balance element 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/productCatalogReferenceManagement/v1/balanceElement -H 'Content-Type: application/json' -D @put_balanceElements.json | json_pp
Example of Request Body
The following shows an example of the request body in JSON format.
[
{
"id": "BalanceElementType_001",
"name": "BalanceElementType_001",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/balanceElement/Oracle_DC38N0KA",
"version": "1.0",
"lifecycleStatus": "In design",
"@type": "BalanceElementOracle",
"validFor": {
"startDateTime": "2020-09-29T03:50:48.000Z"
},
"project": {
"id": "BulkDocProject",
"name": "Bulk Doc Project"
},
"relatedParty": [
{
"id": "party001",
"name": "Party N1"
},
{
"id": "party002",
"name": "Party N2"
},
{
"id": "party003",
"name": "Party N3"
}
],
"consumptionRule": "ESTEET",
"balanceElementType": "PSEUDO",
"roundingMethod": "CALC",
"decimalPlaces": "4",
"symbol": "%"
},
{
"id": "USACurrency",
"name": "USA Currency",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/balanceElement/USACurrency",
"version": "1.0",
"lifecycleStatus": "In design",
"@type": "BalanceElementOracle",
"consumptionRule": "EST",
"balanceElementType": "CURRENCY",
"roundingMethod": "CALC",
"decimalPlaces": "2",
"symbol": "$",
"code": "USD"
},
{
"id": "BalanceElementType_002",
"name": "BalanceElementType_002",
"description": "Balance Element service spec detail",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/balanceElement/Oracle_EX0Y6VXX",
"version": "1.0",
"lifecycleStatus": "In design",
"@type": "BalanceElementOracle",
"validFor": {
"startDateTime": "2020-09-29T03:50:48.000Z"
},
"project": {
"id": "BulkDocProject",
"name": "Bulk Doc Project"
},
"relatedParty": [
{
"id": "party001",
"name": "Party N1"
},
{
"id": "party002",
"name": "Party N2"
},
{
"id": "party003",
"name": "Party N3"
}
],
"consumptionRule": "ESTLET",
"balanceElementType": "COUNTER",
"roundingMethod": "CALC",
"decimalPlaces": "4",
"symbol": "%"
}
]
Example of Response Body
The following shows an example of the response body in JSON format.
[
{
"id": "BalanceElementType_001",
"name": "BalanceElementType_001",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/balanceElements/BalanceElementType_001",
"version": "1.0",
"lifecycleStatus": "In design",
"created": "2021-09-15T06:51:28.131Z",
"createdBy": "anonymous",
"lastUpdate": "2021-09-15T06:51:29.179Z",
"lastUpdatedBy": "booth",
"@type": "BalanceElementOracle",
"validFor": {
"startDateTime": "2020-09-29T03:50:48.000Z"
},
"project": {
"id": "BulkDocProject",
"name": "Bulk Doc Project",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/BulkDocProject"
},
"relatedParty": [
{
"id": "party001",
"name": "Party N1"
},
{
"id": "party002",
"name": "Party N2"
},
{
"id": "party003",
"name": "Party N3"
}
],
"consumptionRule": "ESTEET",
"balanceElementType": "PSEUDO",
"roundingMethod": "CALC",
"decimalPlaces": "4",
"symbol": "%"
},
{
"id": "USACurrency",
"name": "USA Currency",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/balanceElements/USACurrency",
"version": "1.0",
"lifecycleStatus": "In design",
"created": "2021-03-17T05:20:22.001Z",
"createdBy": "booth",
"lastUpdate": "2021-09-15T06:51:29.343Z",
"lastUpdatedBy": "booth",
"@type": "BalanceElementOracle",
"consumptionRule": "EST",
"balanceElementType": "CURRENCY",
"roundingMethod": "CALC",
"decimalPlaces": "2",
"symbol": "$",
"code": "USD"
},
{
"id": "BalanceElementType_002",
"name": "BalanceElementType_002",
"description": "Balance Element service spec detail",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/balanceElements/BalanceElementType_002",
"version": "1.0",
"lifecycleStatus": "In design",
"created": "2021-09-15T06:51:28.001Z",
"createdBy": "anonymous",
"lastUpdate": "2021-09-15T06:51:28.978Z",
"lastUpdatedBy": "booth",
"@type": "BalanceElementOracle",
"validFor": {
"startDateTime": "2020-09-29T03:50:48.000Z"
},
"project": {
"id": "BulkDocProject",
"name": "Bulk Doc Project",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/BulkDocProject"
},
"relatedParty": [
{
"id": "party001",
"name": "Party N1"
},
{
"id": "party002",
"name": "Party N2"
},
{
"id": "party003",
"name": "Party N3"
}
],
"consumptionRule": "ESTLET",
"balanceElementType": "COUNTER",
"roundingMethod": "CALC",
"decimalPlaces": "4",
"symbol": "%"
}
]