Every amount is a decimal string: a dot as the decimal point, no thousands separator and no currency symbol, such as "1234.50". Request bodies, responses, webhook payloads and CSV files all use this form. The currency is a separate field next to the amount, currency_code, unless the amount is always in one known currency such as the store's base currency. Calculate with a decimal type, because floating-point numbers lose precision.
Each currency has its own number of decimal places: two for USD and IDR, three for KWD and none for KRW. IDR uses two even though rupiah prices are usually shown without decimals. If an amount has more decimal places than its currency allows, the request fails with a validation error; Tringify does not round it for you. Amounts given per currency, such as a cash-on-delivery fee, an order minimum or a fee-waiver threshold, follow each currency's rule: {"KWD": "1.234", "KRW": "1234", "USD": "12.34"}.
Responses and webhook payloads write an amount with exactly its currency's decimal places, such as "49.00" for USD and "4900" for KRW. An amount saved with more places keeps them rather than being rounded, so parse amounts as decimals instead of comparing them as text. The decimals value in List currencies is display precision and can differ from the places an amount accepts: IDR is shown without decimals but accepts two.
Fields named formatted_*, such as formatted_price_min, hold the amount as display text in the currency's format, for example ₹623.80. Use them to show an amount, and use the decimal field beside them for any calculation. In a right-to-left interface, wrap a formatted amount so it stays in one piece.
Addresses and phone numbers have their own rules: see Addresses and Phone numbers.