Update Currencies
post
/config/sim/v1/setup/updateCurrencies
Updates the currency. If currency is not found, it creates a new currency.
Request
Supported Media Types
- application/json
- multipart/form-data
Header Parameters
-
Simphony-AuditTrailRef: string
Detail that identifies, who made the change.
A request body
Root Schema : CUDCurrencyRequestBody
Type:
object
Model for Currency CUD Request
Show Source
-
abbreviation:
object abbreviation
The abbreviation for the currency record. For a long abbreviation, you may add a space in the end for good print format.
-
dataExtensions:
array dataExtensions
An array of data extensions
-
hierUnitId(required):
integer
Unique reference of the hierarchy unit where the Currency is configuredExample:
3599
-
name(required):
object name
Currency Name
-
numberOfDigits:
integer
The number of digits after the decimal point that each currency allows. Default value is 2.Values between 1-3.Example:
2
-
objectNum(required):
integer
Object number of the currency.Example:
1
-
options:
string
A string value of 0s & 1s of length 8 representing the enablement or disablement of the options associated with the currencyExample:
11010101
-
symbol:
string
The record symbol of the currency.Example:
$
Nested Schema : abbreviation
Type:
object
The abbreviation for the currency record. For a long abbreviation, you may add a space in the end for good print format.
Example:
{
"en-US":"USD"
}
Nested Schema : name
Type:
object
Currency Name
Example:
{
"en-US":"USD Dollar",
"de-DE":"USD-Dollar"
}
Nested Schema : items
Type:
Show Source
object
-
columnName:
string
Name of the extension fieldExample:
extension column 1
-
value:
string
Value of the extension fieldExample:
Value1
Response
Supported Media Types
- application/json
200 Response
Currency Updated or Added.
Root Schema : CUResponseBody
Type:
Show Source
object
-
hierUnitId:
integer
Unique hierarchy unit valueExample:
1
-
objectNum:
integer
Object number of the CurrencyExample:
1