Create or update an array of balance element
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/balanceElements
Request
There are no request parameters for this operation.
- application/json
array
1
50
-
Array of:
object BalanceElementOracle
Title:
BalanceElementOracle
Balance element represenst the currency and non currency units units used in Pricing
object
BalanceElementOracle
-
@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 Balance element
-
applicationName: string
Name of the external application
-
balanceElementType: string
Allowed Values:
[ "COUNTER", "ALLOWANCE", "CURRENCY", "CRYPTO", "PSEUDO" ]
Type of relationship such as migration, substitution, dependency, exclusivity -
code: string
Currency (ISO4217 norm uses 3 letters to define the currency and user define code for non currency)
-
consumptionRule: string
Allowed Values:
[ "NONE", "EST", "LST", "EET", "LET", "ESTLET", "ESTEET", "LSTEET", "LSTLET", "EETEST", "ESTLET", "LETEST", "LETLST" ]
Consumption Rule of Balance Element -
created: string
(date-time)
Date and time of the creation
-
createdBy: string
Name of the person who created item
-
decimalPlaces: string
Allowed decimal places
-
description: string
Description of Balance element
-
externalId: string
id of the external application
-
href: string
Hypertext Reference of the Balance element.
-
id: string
Maximum Length:
30
Unique identifier of the Balance element -
lastUpdate: string
(date-time)
Latest update date of Balance element
-
lastUpdatedBy: string
Name of the person who updated item
-
lifecycleStatus: string
Status of Balance element
-
name: string
Name of Balance element
-
numericCode: number
Unique numeric code (ISO 4217 numeric code for currency and auto generated value greater than 1000 for non currency)
-
project: object
ProjectRef
Title:
ProjectRef
Project Reference - relatedParty: array relatedParty
-
roundingMethod: string
Default rounding applicable to the balance element
-
symbol: string
Symbol of the currency or pseudo currency
-
validFor: object
TimePeriod
Title:
TimePeriod
The period for which the productOffering is valid -
version: string
BalanceElement version
-
versionState: number
Version state of the balance element
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
TimePeriod
-
endDateTime: string
(date-time)
An instant of time, ending at the TimePeriod.
-
startDateTime(required): string
(date-time)
An instant of time, starting at the TimePeriod
object
RelatedParty
-
@baseType: string
The immediate base class type of the RelatedParty
-
@referredType: string
The class type of referred party/party role reference
-
@schemaLocation: string
A link to the schema describing this RelatedParty entity
-
@type: string
the class type of the RelatedParty
-
href: string
Reference of the related party, could be a party reference or a party role reference
-
id(required): string
Unique identifier of a related party
-
name: string
Name of the related party
-
role: string
Role of the related party.
Response
- application/json
200 Response
array
-
Array of:
object BalanceElementOracle
Title:
BalanceElementOracle
Balance element represenst the currency and non currency units units used in Pricing
object
BalanceElementOracle
-
@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 Balance element
-
applicationName: string
Name of the external application
-
balanceElementType: string
Allowed Values:
[ "COUNTER", "ALLOWANCE", "CURRENCY", "CRYPTO", "PSEUDO" ]
Type of relationship such as migration, substitution, dependency, exclusivity -
code: string
Currency (ISO4217 norm uses 3 letters to define the currency and user define code for non currency)
-
consumptionRule: string
Allowed Values:
[ "NONE", "EST", "LST", "EET", "LET", "ESTLET", "ESTEET", "LSTEET", "LSTLET", "EETEST", "ESTLET", "LETEST", "LETLST" ]
Consumption Rule of Balance Element -
created: string
(date-time)
Date and time of the creation
-
createdBy: string
Name of the person who created item
-
decimalPlaces: string
Allowed decimal places
-
description: string
Description of Balance element
-
externalId: string
id of the external application
-
href: string
Hypertext Reference of the Balance element.
-
id: string
Maximum Length:
30
Unique identifier of the Balance element -
lastUpdate: string
(date-time)
Latest update date of Balance element
-
lastUpdatedBy: string
Name of the person who updated item
-
lifecycleStatus: string
Status of Balance element
-
name: string
Name of Balance element
-
numericCode: number
Unique numeric code (ISO 4217 numeric code for currency and auto generated value greater than 1000 for non currency)
-
project: object
ProjectRef
Title:
ProjectRef
Project Reference - relatedParty: array relatedParty
-
roundingMethod: string
Default rounding applicable to the balance element
-
symbol: string
Symbol of the currency or pseudo currency
-
validFor: object
TimePeriod
Title:
TimePeriod
The period for which the productOffering is valid -
version: string
BalanceElement version
-
versionState: number
Version state of the balance element
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
TimePeriod
-
endDateTime: string
(date-time)
An instant of time, ending at the TimePeriod.
-
startDateTime(required): string
(date-time)
An instant of time, starting at the TimePeriod
object
RelatedParty
-
@baseType: string
The immediate base class type of the RelatedParty
-
@referredType: string
The class type of referred party/party role reference
-
@schemaLocation: string
A link to the schema describing this RelatedParty entity
-
@type: string
the class type of the RelatedParty
-
href: string
Reference of the related party, could be a party reference or a party role reference
-
id(required): string
Unique identifier of a related party
-
name: string
Name of the related party
-
role: string
Role of the related party.
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 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": "%" } ]