Skip to main content

currency_unsupported

HTTP 422, type invalid_request_error.

The currency you sent is not a three-letter currency code.

Why it happened​

Every amount is paired with a currency, and the currency has to be a three-letter ISO 4217 code in upper case, such as USD. This code is about the shape of the value: a lower-case code, a number, or a string of any other length is refused with it.

How to fix it​

Send the currency as an uppercase three-letter code.

{ "amount": "1250", "currency": "USD" }

Retrying: retry only after fixing currency, to an uppercase three-letter code. This request is refused before its Idempotency-Key is claimed, so send the corrected request with the same Idempotency-Key.