WorldFirst DocsWorldFirst Docs

Usage rules of the Amount object

Smallest unit of the currency

The actual value in the value field of the amount field is represented in the smallest unit of the currency. WorldFirst follows the ISO 4217 standard for the definition of the smallest unit of a currency. For example:

Currency Code

Smallest Unit (Number of the Digits after Decimal)

Value in the Amount

AUD

cent (2)

1.00 AUD needs to be set as "value:100"

BDT

cent (2)

1.00 BDT needs to be set as "value: 100"

BRL

cent (2)

1.00 BRL needs to be set as "value: 100"

CAD

cent (2)

1.00 CAD needs to be set as "value: 100"

CLP

peso (0)

1 CLP needs to be set as "value:1"

CNY

cent (2)

1.00 CNY needs to be set as "value: 100"

EUR

cent (2)

1.00 EUR needs to be set as "value:100"

GBP

penny (2)

1.00 GBP needs to be set as "value:100"

HKD

cent (2)

1.00 HKD needs to be set as "value: 100"

IDR

cent (2)

1.00 IDR needs to be set as "value:100"

JPY

yen (0)

1 JPY needs to be set as "value:1"

KRW

yuan (0)

1 KRW needs to be set as "value:1"

MXN

cent (2)

1.00 MYR needs to be set as "value:100"

MYR

cent (2)

1.00 MYR needs to be set as "value: 100"

NZD

cent (2)

1.00 NZD needs to be set as "value:100"

PEN

cent (2)

1.00 PEN needs to be set as "value:100"

PHP

cent (2)

1.00 PHP needs to be set as "value:100"

PKR

cent (2)

1.00 PKR needs to be set as "value: 100"

PLN

grosz (2)

1.00 PKR needs to be set as "value: 100"

SGD

cent (2)

1.00 SGD needs to be set as "value: 100"

THB

cent (2)

1.00 THB needs to be set as "value: 100"

TWD

cent (2)

1.00 TWD needs to be set as "value: 100"

USD

cent (2)

1.00 USD needs to be set as "value:100"

VND

hao (0)

1 VND needs to be set as "value:1"

Table 1. Currency smallest units