amount_ too_ precise
The amount has more decimal places than the asset supports.
On this page
HTTP status: 422 Unprocessable Entity. Retrying the same request unchanged fails the same way.
Why it happens
- USDC on most networks has 6 decimal places, so "1.0000001" is too precise.
- Nowgate never rounds amounts, in either direction.
What to do
Round the amount to the asset's decimals yourself. GET /v1/assets lists the decimals of every asset.
Example
The response is application/problem+json. Branch on code, never on title or detail. See errors for the format.
{
"type": "https://docs.nowgate.io/errors/amount_too_precise",
"title": "Unprocessable Entity",
"status": 422,
"detail": "What exactly was wrong, in a sentence.",
"instance": "/v1/payments",
"code": "amount_too_precise",
"request_id": "req_01jc3xb1n6f0q2w8e4r7t5y9v3"
}