» Currency PUT API Documentation

Updating a Currency

Endpoint: PUT /admin/currencies

Purpose

The /admin/currencies endpoint is used to update an existing currency’s details in the system. It allows modifications to attributes such as the currency name, ISO code, associated country, symbol, rounding method, precision, and activation status. Upon successful update, the response returns the modified currency details, including a timestamp of the last update.

Path Parameters

No path parameters for this endpoint.

Query Parameters

This endpoint does not have any query parameters.

Use Case

This endpoint is useful when an organization needs to modify currency settings due to changes in financial regulations, business operations, or system updates. It ensures that currency information remains accurate and reflects the latest configurations for transactions, pricing, and reporting.

Request Body

ParameterTypeDescription
namestringThe updated full name of the currency.
codestringThe three-letter ISO currency code.
countrystringThe updated name of the country associated with the currency.
countryCodestringThe two-letter country code.
symbolstringThe updated symbol representing the currency.
activebooleanDetermines if the currency remains active (true) or inactive (false).
roundingstringSpecifies the rounding rule.
precisionintegerNumber of decimal places for transactions.
{
    "NAME": "CURRENCY_NAME",
    "CODE": "CURRENCY_CODE",
    "COUNTRY": "COUNTRY_NAME",
    "COUNTRYCODE": "COUNTRY_CODE",
    "SYMBOL": "CURRENCY_SYMBOL",
    "ACTIVE": "IS_ACTIVE",
    "ROUNDING": "ROUNDING_TYPE",
    "PRECISION": "DECIMAL_PRECISION"
}

Response

The response contains a currency object that includes the updated currency details, such as its ID, name, code, symbol, country, and last update timestamp.

PUT
https://wcapi.mywebcommander.com/api/v4/admin/currencies
Try It Out
{
    "CURRENCY": {
        "ID": "CURRENCY_ID",
        "NAME": "CURRENCY_NAME",
        "CODE": "CURRENCY_CODE",
        "COUNTRY": {
            "ID": "COUNTRY_ID",
            "NAME": "COUNTRY_NAME",
            "CODE": "COUNTRY_CODE"
        },
        "SYMBOL": "CURRENCY_SYMBOL",
        "ACTIVE": "IS_ACTIVE",
        "ROUNDING": "ROUNDING_TYPE",
        "PRECISION": "DECIMAL_PRECISION",
        "UPDATED_AT": "LAST_UPDATED_TIMESTAMP"
    }
}