Create or update a balance element
put
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/balanceElement/{id}
Request
Path Parameters
-
id(required): string
The unique identifier of the resource item.
Supported Media Types
- application/json
Root Schema : BalanceElementOracle
Type:
object
Title:
BalanceElementOracle
Balance element represenst the currency and non currency units units used in Pricing
Show Source
-
@baseType: string
Immediate base (class) type of the object
-
@schemaLocation: string
A link to the schema describing this object
-
@type(required): 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
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 : TimePeriod
Type:
object
Title:
TimePeriod
The period for which the productOffering is valid
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 : RelatedParty
Type:
object
Title:
RelatedParty
RelatedParty reference. A related party defines party or party role linked to a specific entity.
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type(required): string
When sub-classing, this defines the sub-class Extensible name.
-
partyOrPartyRole(required):
partyOrPartyRole
-
role: string
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'.
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : BalanceElementOracle
Type:
object
Title:
BalanceElementOracle
Balance element represenst the currency and non currency units units used in Pricing
Show Source
-
@baseType: string
Immediate base (class) type of the object
-
@schemaLocation: string
A link to the schema describing this object
-
@type(required): 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
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 : TimePeriod
Type:
object
Title:
TimePeriod
The period for which the productOffering is valid
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 : RelatedParty
Type:
object
Title:
RelatedParty
RelatedParty reference. A related party defines party or party role linked to a specific entity.
Show Source
-
@baseType: string
When sub-classing, this defines the super-class.
-
@schemaLocation: string
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type(required): string
When sub-classing, this defines the sub-class Extensible name.
-
partyOrPartyRole(required):
partyOrPartyRole
-
role: string
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'.
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 or update a balance element by submitting a put request on the REST resource using cURL.
curl -H 'Authorization: Bearer <accessToken> -H PUT https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/balanceElement/{id}
Example of Request Header
The following shows an example of the request header in JSON format.
{ "id": "USDCurrency", "name": "USD Currency", "version": "1.0", "lifecycleStatus": "In design", "@type": "BalanceElementOracle", "validFor": { "startDateTime": "2023-09-29T03:50:48.000Z" }, "versionState": 0, "consumptionRule": "LST", "balanceElementType": "CURRENCY", "code": "USD", "numericCode": 840, "symbol": "$", "roundingMethod": "CALC", "decimalPlaces": "2", "project": { "id": "DBE_RI_ProdModel_PreSeed_PSP", "name": "DBE RI Product Model Preseed", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/project/DBE_RI_ProdModel_PreSeed_PSP", "version": "1.0" }, "relatedParty": [ { "role": "ROLE1", "@type": "RelatedPartyRefOrPartyRoleRef", "partyOrPartyRole": { "id": "PartyRoleID", "name": "PartyRoleName", "partyId": "partyid123", "partyName": "partyName", "@referredType": "PartyRole", "@type": "PartyRoleRef" } } ] }
Example of Response Body
The following example shows the contents of the response body in JSON format:
{ "id": "USDCurrency", "name": "USD Currency", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/balanceElement/USDCurrency", "version": "1.0", "lifecycleStatus": "In design", "created": "2025-01-03T08:36:43.001Z", "createdBy": "booth", "lastUpdate": "2025-02-18T06:59:43.031Z", "lastUpdatedBy": "booth", "@type": "BalanceElementOracle", "validFor": { "startDateTime": "2023-09-29T03:50:48.000Z" }, "project": { "id": "DBE_RI_ProdModel_PreSeed_PSP", "name": "DBE RI Product Model Preseed", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/project/DBE_RI_ProdModel_PreSeed_PSP", "version": "1.0", "@referredType": "ProjectOracle" }, "consumptionRule": "LST", "balanceElementType": "CURRENCY", "code": "USD", "numericCode": 840, "symbol": "$", "roundingMethod": "CALC", "decimalPlaces": "2", "relatedParty": [ { "role": "ROLE1", "partyOrPartyRole": { "id": "PartyRoleID", "name": "PartyRoleName", "partyId": "partyid123", "partyName": "partyName", "@referredType": "PartyRole", "@type": "PartyRoleRef" }, "@type": "RelatedPartyRefOrPartyRoleRef" } ] }