Skip to main content

Amounts and Currency Units

Learn how monetary amounts are stored in Nautical's API.

Specifying amounts

When working with Money values, such as retrieving product prices and order totals, amounts are stored in the baseAmount integer field.

Values stored in the baseAmount field are represented in the smallest unit of the currency, expressed in full with its minor units. For instance, instead of $1.00 USD, the value is stored as 100.

Most currencies have two decimals, some have three decimals, and some do not have decimals at all. For example, consider the following cases:

  • Two decimals: For currencies that support 2 decimal places, such as USD, $12.45 is represented as "baseAmount": 1245.
  • Three decimals: For currencies that support 3 decimal places, such as KWD, KD 5.124 is represented as "baseAmount": 5124.
  • No decimals: For currencies that do not support decimal places, such as JPY, ¥500 is represented as "baseAmount": 500.

Currency codes and decimals

Refer to the following table for the decimal places supported by each currency:

CodeCurrencyDecimals
AEDUnited Arab Emirates Dirham2
AFNAfghan Afghani2
ALLAlbanian Lek2
AMDArmenian Dram2
ANGNetherlands Antillean Guilder2
AOAAngolan Kwanza2
ARSArgentine Peso2
AUDAustralian Dollar2
AWGAruban Florin2
AZNAzerbaijani Manat2
BAMBosnia-Herzegovina Convertible Mark2
BBDBarbadian Dollar2
BDTBangladeshi Taka2
BGNBulgarian Lev2
BHDBahraini Dinar3
BIFBurundian Franc0
BMDBermudan Dollar2
BNDBrunei Dollar2
BOBBolivian Boliviano2
BRLBrazilian Real2
BSDBahamian Dollar2
BTNBhutanese Ngultrum2
BWPBotswanan Pula2
BYNBelarusian Ruble2
BYRBelarusian Ruble (pre-2016)0
BZDBelize Dollar2
CADCanadian Dollar2
CDFCongolese Franc2
CHFSwiss Franc2
CLPChilean Peso0
CNHChinese Yuan (Offshore)2
CNYChinese Yuan2
COPColombian Peso2
CRCCosta Rican Colón2
CUCCuban Convertible Peso2
CUPCuban Peso2
CVECape Verdean Escudo2
CZKCzech Republic Koruna2
DJFDjiboutian Franc0
DKKDanish Krone2
DOPDominican Peso2
DZDAlgerian Dinar2
EEKEstonian Kroon2
EGPEgyptian Pound2
ERNEritrean Nakfa2
ETBEthiopian Birr2
EUREuro2
FJDFijian Dollar2
FKPFalkland Islands Pound2
GBPBritish Pound Sterling2
GELGeorgian Lari2
GGPGuernsey Pound2
GHSGhanaian Cedi2
GIPGibraltar Pound2
GMDGambian Dalasi2
GNFGuinean Franc0
GTQGuatemalan Quetzal2
GYDGuyanaese Dollar2
HKDHong Kong Dollar2
HNLHonduran Lempira2
HRKCroatian Kuna2
HTGHaitian Gourde2
HUFHungarian Forint2
IDRIndonesian Rupiah0
ILSIsraeli New Sheqel2
IMPManx pound2
INRIndian Rupee2
IQDIraqi Dinar3
IRRIranian Rial0
ISKIcelandic Króna2
JEPJersey Pound2
JMDJamaican Dollar2
JODJordanian Dinar3
JPYJapanese Yen0
KESKenyan Shilling2
KGSKyrgystani Som2
KHRCambodian Riel2
KMFComorian Franc0
KPWNorth Korean Won2
KRWSouth Korean Won0
KWDKuwaiti Dinar3
KYDCayman Islands Dollar2
KZTKazakhstani Tenge2
LAKLaotian Kip2
LBPLebanese Pound2
LKRSri Lankan Rupee2
LRDLiberian Dollar2
LSLLesotho Loti2
LYDLibyan Dinar3
MADMoroccan Dirham2
MDLMoldovan Leu2
MGAMalagasy Ariary2
MKDMacedonian Denar2
MMKMyanma Kyat2
MNTMongolian Tugrik2
MOPMacanese Pataca2
MROMauritanian Ouguiya (pre-2018)0
MRUMauritanian Ouguiya2
MTLMaltese Lira2
MURMauritian Rupee2
MVRMaldivian Rufiyaa2
MWKMalawian Kwacha2
MXNMexican Peso2
MYRMalaysian Ringgit2
MZNMozambican Metical2
NADNamibian Dollar2
NGNNigerian Naira2
NIONicaraguan Córdoba2
NOKNorwegian Krone2
NPRNepalese Rupee2
NZDNew Zealand Dollar2
OMROmani Rial3
PABPanamanian Balboa2
PENPeruvian Nuevo Sol2
PGKPapua New Guinean Kina2
PHPPhilippine Peso2
PKRPakistani Rupee2
PLNPolish Zloty2
PYGParaguayan Guarani0
QARQatari Rial2
RONRomanian Leu2
RSDSerbian Dinar2
RUBRussian Ruble2
RWFRwandan Franc0
SARSaudi Riyal2
SBDSolomon Islands Dollar2
SCRSeychellois Rupee2
SDGSudanese Pound2
SEKSwedish Krona2
SGDSingapore Dollar2
SHPSaint Helena Pound2
SLLSierra Leonean Leone2
SOSSomali Shilling2
SRDSurinamese Dollar2
SSPSouth Sudanese Pound2
STDSão Tomé and Príncipe Dobra (pre-2018)0
STNSão Tomé and Príncipe Dobra2
SVCSalvadoran Colón2
SYPSyrian Pound2
SZLSwazi Lilangeni2
THBThai Baht2
TJSTajikistani Somoni2
TMTTurkmenistani Manat2
TNDTunisian Dinar3
TOPTongan Paʻanga2
TRYTurkish Lira2
TTDTrinidad and Tobago Dollar2
TWDNew Taiwan Dollar2
TZSTanzanian Shilling2
UAHUkrainian Hryvnia2
UGXUgandan Shilling0
USDUnited States Dollar2
UYUUruguayan Peso2
UZSUzbekistan Som2
VESVenezuelan Bolívar Soberano2
VNDVietnamese Dong0
VUVVanuatu Vatu0
WSTSamoan Tala2
XAFCFA Franc BEAC0
XCDEast Caribbean Dollar2
XOFCFA Franc BCEAO0
XPFCFP Franc0
YERYemeni Rial2
ZARSouth African Rand2
ZMKZambian Kwacha (pre-2013)0
ZMWZambian Kwacha2

Conversion rates and fees

Currency conversions are handled with an integrated currency exchange app, such as Open Exchange.

See Operating in Multiple Currencies for information on exchange rates and accepting multi-currency payments.

Was this page helpful?