Mews · Schema

Voucher code

HospitalityHotelsPMSProperty Management

Properties

Name Type Description
Id string Unique identifier of the voucher code.
VoucherId string Unique identifier of `Voucher` the code belongs to.
Value string Value of voucher code used by customers.
ValidityStartUtc string If specified, marks the beginning of interval in which the code can be used.
ValidityEndUtc string If specified, marks the end of interval in which the code can be used.
CreatedUtc string Creation date and time of the voucher in UTC timezone in ISO 8601 format.
UpdatedUtc string Last update date and time of the voucher in UTC timezone in ISO 8601 format.
ActivityState object Whether voucher code is active or deleted. Deleted Active
IsActive boolean Whether the voucher code is still active.
View JSON Schema on GitHub

JSON Schema

mews-vouchercode-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/VoucherCode",
  "title": "Voucher code",
  "required": [
    "ActivityState",
    "Id",
    "IsActive",
    "VoucherId"
  ],
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "Unique identifier of the voucher code.",
      "format": "uuid"
    },
    "VoucherId": {
      "type": "string",
      "description": "Unique identifier of `Voucher` the code belongs to.",
      "format": "uuid"
    },
    "Value": {
      "type": "string",
      "description": "Value of voucher code used by customers.",
      "nullable": true
    },
    "ValidityStartUtc": {
      "type": "string",
      "description": "If specified, marks the beginning of interval in which the code can be used.",
      "nullable": true
    },
    "ValidityEndUtc": {
      "type": "string",
      "description": "If specified, marks the end of interval in which the code can be used.",
      "nullable": true
    },
    "CreatedUtc": {
      "type": "string",
      "description": "Creation date and time of the voucher in UTC timezone in ISO 8601 format.",
      "nullable": true
    },
    "UpdatedUtc": {
      "type": "string",
      "description": "Last update date and time of the voucher in UTC timezone in ISO 8601 format.",
      "nullable": true
    },
    "ActivityState": {
      "title": "Activity state",
      "allOf": [
        {
          "$ref": "#/components/schemas/ActivityStateEnum"
        }
      ],
      "description": "Whether voucher code is active or deleted.\n\nDeleted\n\nActive",
      "deprecated": true,
      "x-enumNames": [
        "Deleted",
        "Active"
      ],
      "x-enumDescriptions": [
        "",
        ""
      ],
      "x-deprecatedMessage": "Use `IsActive` instead."
    },
    "IsActive": {
      "type": "boolean",
      "description": "Whether the voucher code is still active."
    }
  },
  "additionalProperties": false,
  "x-schema-id": "VoucherCode"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/mews-vouchercode"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.