Visit Main Site
Join Partner Program
Login
     
Introduction
Authentication
Documentation
Category
GET
POST
PUT
DELETE
Products
GET
POST
PUT
DELETE
Carts
GET
POST
PATCH
DELETE
Variations
GET
POST
PUT
DELETE
Currency
GET
POST
PUT
DELETE
Tax
Tax Profile
GET
POST
PUT
DELETE
Tax Rule
GET
POST
PUT
DELETE
Tax Code
GET
POST
PUT
DELETE
Tax Zone
GET
POST
PUT
DELETE
Discount
GET
POST
PUT
DELETE
Shipping
Shipping Profile
GET
POST
PUT
DELETE
Shipping Rate
GET
POST
PUT
DELETE
Shipping Rules
GET
POST
PUT
DELETE
Customer
GET
POST
PUT
DELETE
Orders
GET
POST
PATCH
Blog
GET
POST
PUT
DELETE
Settings
GET
» Currency PUT API Documentation

Updating a Currency

Endpoint: PUT /admin/currencies/{currency_id}

Purpose

This 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.
JSON
{
    "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://{your_site_domain}/api/v4/admin/currencies/{currency_id}
Try It Out
JSON
{
    "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"
    }
}
Terms and Conditions
Privacy Policy

© 2024 WebCommander | All Rights Reserved

contact@webcommander.com
1300 797 571

WebCommander
About Us
Features
Pricing
Compare
Partners
Contact Us
Resource
Find a Partner
Help Centre
Community
Blog
Solutions
Inventory Management
Omnichannel Sales
Ecommerce Automation
B2B Ecommerce
Headless Commerce
Website Design and Performance