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 POST API Documentation

Creating a Currency

Endpoint: POST /admin/currencies

Purpose

The /admin/currencies endpoint is used to create a new currency in the system. It requires details such as the currency name, ISO code, associated country, symbol, rounding method, precision, and activation status. Upon successful creation, the response returns the newly added currency with a unique ID and associated metadata.

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 adding a new currency to the system for financial operations, pricing, or transaction processing. Businesses operating in multiple countries can use this to configure currency settings dynamically. The API ensures that all necessary currency attributes are stored correctly and can be retrieved later for financial transactions and reporting.

Request Body

Parameter Type Description
name string The full name of the currency
code string Three-letter ISO currency code.
country string The name of the country associated with the currency.
countryCode string Two-letter country code.
symbol string The symbol representing the currency.
active boolean Determines if the currency is active (true) or inactive (false).
rounding string Specifies the rounding rule.
precision integer Number 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 newly created currency's details, such as its ID, name, code, symbol, country, and last update timestamp.

POST
https://{your_site_domain}/api/v4/admin/currencies
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