{ "$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 } } }