error.code.
Currencies and payment methods
Currencies marked “on request” are enabled per account; contact support.
GET /payment-methods returns the methods enabled for your account; use it instead of hard-coding this table. SEK and NOK are not supported.
Amounts
Discounts are spread across the line items, so the customer sees discounted line amounts, never a negative line.
Decimals per currency
amountMinor is always an integer in the currency’s minor unit: 10.50 EUR is 1050, 1050 JPY is 1050.
The deprecated major-unit field
amount follows the same rule and is never rounded. A value with more decimals than the currency allows is rejected, so 1.005 EUR or 12.5 JPY fails instead of being silently changed. JavaScript sums such as 0.1 + 0.2 send 0.30000000000000004 and are rejected too. Send amountMinor as an integer instead.