Bolt · Schema

amount

A monetary amount, i.e. a base unit amount and a supported currency.

CheckoutPaymentseCommerceOne-Click CheckoutShopper NetworkFraud Protection

Properties

Name Type Description
currency string A supported currency.
units integer A monetary amount, represented in its base units (e.g. USD/EUR cents).
View JSON Schema on GitHub

JSON Schema

amount.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api.bolt.com/schemas/amount",
  "title": "amount",
  "type": "object",
  "description": "A monetary amount, i.e. a base unit amount and a supported currency.",
  "required": [
    "currency",
    "units"
  ],
  "properties": {
    "currency": {
      "type": "string",
      "description": "A supported currency.",
      "enum": [
        "AUD",
        "CAD",
        "EUR",
        "GBP",
        "USD"
      ],
      "example": "USD"
    },
    "units": {
      "type": "integer",
      "description": "A monetary amount, represented in its base units (e.g. USD/EUR cents).",
      "format": "int64",
      "example": 900
    }
  }
}