Moov · Schema

Amount

A monetary amount with currency denomination.

BankingEmbedded FinanceFinancial InfrastructureMoney MovementPaymentsTransfers

Properties

Name Type Description
currency string ISO 4217 three-letter currency code.
value integer Amount in the smallest currency unit (e.g., cents for USD).
View JSON Schema on GitHub

JSON Schema

moov-amount-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Amount",
  "title": "Amount",
  "type": "object",
  "description": "A monetary amount with currency denomination.",
  "properties": {
    "currency": {
      "type": "string",
      "description": "ISO 4217 three-letter currency code.",
      "default": "USD",
      "minLength": 3,
      "maxLength": 3
    },
    "value": {
      "type": "integer",
      "description": "Amount in the smallest currency unit (e.g., cents for USD).",
      "minimum": 0
    }
  }
}