updateCurrency
put
                    /ccadmin/v1/currencies/{id}
Update Currency. Endpoint for updating Currency which doesn't has a PriceListGroup.
                Request
Supported Media Types
                - application/json
Path Parameters
                - 
                    id: string
                    
                    Currency ID corresponding to the currency to be updated.
Header Parameters
                - 
                        X-CCAsset-Language(optional): string
                        
                        The asset language of the request. E.g., en,de,fr_CA.
Root Schema : updateCurrency_request
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            currencyCode(optional): 
            string
            Non ISO 4217 Standard currency code and must be unique. Space is not allowed.
- 
            displayName(optional): 
            string
            Readable name of the Currency.
- 
            fractionalDigits(optional): 
            integer
            Number of digits to the right of the decimal point. Must greater than or equal to zero.
- 
            symbol(optional): 
            string
            The currency symbol. Space is not allowed.
Example:
    
    
{
    "symbol":"POINTS"
}Response
Supported Media Types
                - application/json
200 Response
Following model is returned when operation succeeds.
                
                
                    Root Schema : updateCurrency_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            currencyCode(optional): 
            string
            currency code of Currency
- 
            currencyType(optional): 
            string
            Type of Currency.
- 
            deleted(optional): 
            boolean
            Indicates whether Currency is deleted
- 
            displayName(optional): 
            string
            Readable name of the Currency
- 
            fractionalDigits(optional): 
            integer
            fractionalDigits of Currency
- 
            numericCode(optional): 
            string
            Numeric currency code of Currency
- 
            repositoryId(optional): 
            string
            repositoryId of Currency
- 
            symbol(optional): 
            string
            The currency symbol of Currency
Example Response (application/json)
                    {
    "currencyType":"loyaltyPoints",
    "symbol":"POINTS",
    "deleted":false,
    "displayName":"PTS",
    "repositoryId":"points",
    "fractionalDigits":2,
    "currencyCode":"PTS",
    "numericCode":null
}Default Response
The error response.
 The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|80210|You can not update the currency {0} as Price List Group exists for it.|
|80011|The requested currency could not be found.|
|80203|The request to update the currency could not be performed.|
|80206|Format for {0} is incorrect. Please check the API documentation for more details.|
|80010|The request for currency was not valid.|
                
                
                    Root Schema : errorModel
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            devMessage(optional): 
            string
            An optional non-localized message containing technical information for developers
- 
            errorCode(optional): 
            string
            The numerical code identifying the error
- 
            errors(optional): 
            array  errors
            
            An optional list of errors if multiple errors were encountered
- 
            message(optional): 
            string
            The localized message describing the error
- 
            moreInfo(optional): 
            string
            An optional non-localized message with more information
- 
            o:errorPath(optional): 
            string
            An optional machine readable description of where the error occurred
- 
            status(optional): 
            string
            The HTTP status code
- 
            type(optional): 
            string
            The URI to the HTTP state code definition
Nested Schema : errors
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayAn optional list of errors if multiple errors were encountered
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            devMessage(optional): 
            string
            An optional non-localized message containing technical information for developers
- 
            errorCode(optional): 
            string
            The numerical code identifying the error
- 
            message(optional): 
            string
            The localized message describing the error
- 
            moreInfo(optional): 
            string
            An optional non-localized message with more information
- 
            o:errorPath(optional): 
            string
            An optional machine readable description of where the error occurred
- 
            status(optional): 
            string
            The HTTP status code