Swoogo · Schema

discountResponse

The discount payload returned by every read endpoint. Reflects `Discount::fields()` exactly — every property is always present in the response (values may be `null`).

Event ManagementEvent RegistrationEventSessionsSpeakersAttendeesSoftware-as-a-Service

Properties

Name Type Description
id integer
parent_id integernull ID of the primary discount when this row is an alternate code; `null` (or `0`) for primary codes.
event_id integer
code string
type string
capacity integer Maximum number of times this discount can be used. `0` means unlimited.
min_group_size integer
registrants_per_use integer
sold_out_message stringnull
percentage_discount number
absolute_discount number
applicable_line_items arraynull
apply_to_all integer Returned as `0` or `1` (not a JSON boolean), even though the request accepts a boolean.
custom_fees objectnull Merged set of line-item-specific fees for `specific` discounts. Outer key is the line-item type (`reg_type`, `package`, `session`), inner key is the line-item ID (numeric string), value is the fee as
notes stringnull
created_at string Timestamp when the discount was created. Formatted as `YYYY-MM-DD HH:MM:SS`.
updated_at string Timestamp when the discount was last updated. Formatted as `YYYY-MM-DD HH:MM:SS`.
View JSON Schema on GitHub

JSON Schema

swoogo-discount-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swoogo/json-schema/swoogo-discount-response-schema.json",
  "title": "discountResponse",
  "description": "The discount payload returned by every read endpoint. Reflects `Discount::fields()` exactly —\nevery property is always present in the response (values may be `null`).\n",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/swoogo-openapi.yml#/components/schemas/discountResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "parent_id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "ID of the primary discount when this row is an alternate code; `null` (or `0`) for primary codes."
    },
    "event_id": {
      "type": "integer"
    },
    "code": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "percentage",
        "absolute",
        "specific"
      ]
    },
    "capacity": {
      "type": "integer",
      "description": "Maximum number of times this discount can be used. `0` means unlimited."
    },
    "min_group_size": {
      "type": "integer"
    },
    "registrants_per_use": {
      "type": "integer"
    },
    "sold_out_message": {
      "type": [
        "string",
        "null"
      ]
    },
    "percentage_discount": {
      "type": "number",
      "format": "float"
    },
    "absolute_discount": {
      "type": "number",
      "format": "float"
    },
    "applicable_line_items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "apply_to_all": {
      "type": "integer",
      "enum": [
        0,
        1
      ],
      "description": "Returned as `0` or `1` (not a JSON boolean), even though the request accepts a boolean."
    },
    "custom_fees": {
      "type": [
        "object",
        "null"
      ],
      "description": "Merged set of line-item-specific fees for `specific` discounts. Outer key is the line-item\ntype (`reg_type`, `package`, `session`), inner key is the line-item ID (numeric string), value\nis the fee as a string. Populated by `custom_fees_update` on write.\n",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {
          "type": "string"
        }
      }
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "description": "Timestamp when the discount was created. Formatted as `YYYY-MM-DD HH:MM:SS`."
    },
    "updated_at": {
      "type": "string",
      "description": "Timestamp when the discount was last updated. Formatted as `YYYY-MM-DD HH:MM:SS`."
    }
  }
}

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/swoogo-discount-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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