iglooX DocsDevelopers

Schema

Money

Represents a monetary amount, in the lowest-possible currency unit. For example, the lowest currency unit in SGD is cents, so an amount of 123 alongside a currency of SGD represents $1.23.

  • Models

Overview

object · 2 properties · 2 required

Properties

amount

integer Required

The monetary amount in the lowest unit permitted by the associated currency.

Example 123

currency

string Required

The ISO 4217 alpha-3 currency code associated with the monetary amount.

Example SGD
Min length 3
Max length 3

Used by

Raw YAML
Download source
title: Money
type: object
x-tags:
  - Models
description: |-
  Represents a monetary amount, in the lowest-possible currency unit.


  For example, the lowest currency unit in SGD is cents, so an `amount` of `123` alongside a `currency` of `SGD` represents `$1.23`.
required:
  - amount
  - currency
properties:
  amount:
    type: integer
    example: 123
    description: The monetary amount in the lowest unit permitted by the associated currency.
  currency:
    type: string
    minLength: 3
    maxLength: 3
    example: SGD
    description: The ISO 4217 alpha-3 currency code associated with the monetary amount.

Search documentation

Search across this documentation site.