invalid_amount
Invalid amount
BetaAPI v2 is in public beta: endpoints, fields and behaviour can change before general availability. See the changelog
Last updated
API v2
stoqapp.comAbout STOQContactPrivacy policyHelp center
Invalid amount
Section titled “Invalid amount”Code: invalid_amount · HTTP status: usually 422
The amount is not a positive decimal with at most 2 places.
How to fix
Section titled “How to fix”Send amount as a string such as “20.00”.
Example response
Section titled “Example response”{ "code": "invalid_amount", "type": "https://docs.stoqapp.com/v2/docs/api-v2/errors/invalid-amount/", "title": "Invalid amount", "status": 422, "detail": "amount must be a positive decimal with at most 2 places. Send `amount` as a string such as \"20.00\".", "errors": [ "amount must be a positive decimal with at most 2 places" ], "details": [ { "code": "invalid_amount", "message": "amount must be a positive decimal with at most 2 places", "path": null, "value": null, "expected": null } ]}Every API v2 and MCP failure carries code and a type link to its page here. See Errors & Responses for the full envelope.
Was this page helpful?
Thanks for letting us know.
Still stuck? Ask Quinn or chat with support