TheFork · Schema

Money

A monetary amount with currency.

RestaurantReservationsBookingDiningPoint Of SaleMarketplace

Properties

Name Type Description
amount integer Amount in the smallest currency unit (cents).
currency string ISO 4217 currency code.
View JSON Schema on GitHub

JSON Schema

thefork-pos-money-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thefork/main/json-schema/thefork-pos-money-schema.json",
  "title": "Money",
  "x-api-evangelist-source": "openapi/thefork-pos-openapi.yml",
  "type": "object",
  "description": "A monetary amount with currency.",
  "properties": {
    "amount": {
      "type": "integer",
      "description": "Amount in the smallest currency unit (cents).",
      "example": 12500
    },
    "currency": {
      "type": "string",
      "description": "ISO 4217 currency code.",
      "example": "EUR"
    }
  }
}