Represents an amount of money. Money fields can be signed or unsigned. The amount is specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents).
{
"$id": "https://github.com/api-evangelist/square/blob/main/json-schema/money.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Square Money",
"description": "Represents an amount of money. Money fields can be signed or unsigned. The amount is specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents).",
"type": "object",
"properties": {
"amount": {
"type": "integer",
"format": "int64",
"description": "The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents."
},
"currency": {
"type": "string",
"description": "The type of currency, in ISO 4217 format. For example, the currency code for US dollars is USD.",
"minLength": 3,
"maxLength": 3
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.