# Amounts and currencies

Amounts are integers in the currency's smallest unit, and every payment is in the currency of one of your currency accounts.

## Amounts

Every amount in the API is an integer in the smallest unit of its currency. There are no decimals and no floating point numbers, in requests or in responses.

| Currency | Code | Decimals | `amount` | Means |
|---|---|---|---|---|
| Singapore dollar | `SGD` | 2 | `1300` | SGD 13.00 |
| Thai baht | `THB` | 2 | `89000` | THB 890.00 |
| Malaysian ringgit | `MYR` | 2 | `6200` | MYR 62.00 |
| Philippine peso | `PHP` | 2 | `25000` | PHP 250.00 |
| Cambodian riel | `KHR` | 2 | `2000000` | KHR 20,000.00 |
| Lao kip | `LAK` | 2 | `5000000` | LAK 50,000.00 |
| Brunei dollar | `BND` | 2 | `1300` | BND 13.00 |
| US dollar | `USD` | 2 | `1000` | USD 10.00 |
| Myanmar kyat | `MMK` | 0 | `15200` | MMK 15,200 |
| Vietnamese dong | `VND` | 0 | `250000` | VND 250,000 |
| Indonesian rupiah | `IDR` | 0 | `150000` | IDR 150,000 |

To show an amount to a person, divide by 10 to the power of the decimals and format it yourself. Keep the integer for everything else: storing, comparing with your order, and sending back to the API.

> [!WARNING]
> Compare the `amount` and `currency` of a paid payment with your order before you fulfil it. `1300` in `SGD` and `1300` in `MMK` are very different sums.

## Currencies

`currency` is a three-letter ISO 4217 code in upper case. One payment is in one currency; its refunds, fees and payout are in the same currency.

## Currency accounts

Each currency has its own account with its own settlement bank account. You open currency accounts in the dashboard under **Currencies**.

- Live payments work only in a currency whose account is **Active**. A live request in another currency returns `403 currency_not_active`.
- Your balance and your payouts are kept per currency. A payout pays the balance of one currency to that currency's settlement bank account.
- The payment methods a customer can use depend on the currency. K-LINK sets up the methods for each of your currency accounts.

```json title="HTTP 403"
{
  "error": {
    "code": "currency_not_active",
    "message": "Your SGD account isn't active for live payments yet",
    "param": "currency"
  }
}
```

## Related

- [Payments](/api/payments.md)
- [Balance](/api/balance.md)
- [Payouts](/api/payouts.md)
- [Errors](/concepts/errors.md)
