When working with the Money object, applications might get an EXPECTED_INTEGER
error code because the specified amount
value is invalid. It indicates that Square was expecting information as an integer but was sent something else (for example, a string or a float). To resolve this error:
- Make sure the
amount
value is specified in the smallest denomination of the currency used. For example, the smallest currency denomination for USD is cents. - Make sure the
amount
value is specified as a positive integer. - Make sure the
amount
value is greater than, or equal to, the valid minimum amount. Valid minimums are determined by theLocation.country
associated with the account:-
The United States and Canada.
amount
values must be integers greater than or equal to 1. -
Australia, Japan, and the United Kingdom.
amount
values must be integers greater than or equal to 100.
-
The United States and Canada.