Swoogo · Schema

discountUpdateRequest

All fields are optional on update. `event_id` cannot be changed — discounts are bound to their original event. To create an alternate code under an existing discount, pass `parent_id` to the create endpoint. The clone endpoint always creates a new primary code.

Event ManagementEvent RegistrationEventSessionsSpeakersAttendeesSoftware-as-a-Service

Properties

Name Type Description
code string Unique code for the discount within the event. May not contain `<`, `>`, `\`, or `"`.
type string The type of discount being applied.
percentage_discount number
absolute_discount number
apply_to_all boolean
capacity integer
min_group_size integer
registrants_per_use integer
all_registrants_in_group boolean
applicable_line_items array
custom_fees_update object New entries to merge into the stored `custom_fees`. See `discountCreateRequest` for shape.
autopopulate_attributes array
notes string
sold_out_message string
View JSON Schema on GitHub

JSON Schema

swoogo-discount-update-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swoogo/json-schema/swoogo-discount-update-request-schema.json",
  "title": "discountUpdateRequest",
  "description": "All fields are optional on update. `event_id` cannot be changed — discounts are bound to their\noriginal event. To create an alternate code under an existing discount, pass `parent_id` to the create endpoint. The clone endpoint always creates a new primary code.\n",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/swoogo-openapi.yml#/components/schemas/discountUpdateRequest",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "maxLength": 255,
      "description": "Unique code for the discount within the event. May not contain `<`, `>`, `\\`, or `\"`."
    },
    "type": {
      "type": "string",
      "enum": [
        "percentage",
        "absolute",
        "specific"
      ],
      "description": "The type of discount being applied."
    },
    "percentage_discount": {
      "type": "number",
      "format": "float",
      "minimum": 0,
      "maximum": 100
    },
    "absolute_discount": {
      "type": "number",
      "format": "float"
    },
    "apply_to_all": {
      "type": "boolean"
    },
    "capacity": {
      "type": "integer"
    },
    "min_group_size": {
      "type": "integer",
      "minimum": 2
    },
    "registrants_per_use": {
      "type": "integer",
      "minimum": 2
    },
    "all_registrants_in_group": {
      "type": "boolean"
    },
    "applicable_line_items": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "custom_fees_update": {
      "type": "object",
      "description": "New entries to merge into the stored `custom_fees`. See `discountCreateRequest` for shape.",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {
          "type": "string"
        }
      }
    },
    "autopopulate_attributes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "attribute": {
            "type": "string"
          },
          "value": {}
        }
      }
    },
    "notes": {
      "type": "string"
    },
    "sold_out_message": {
      "type": "string",
      "maxLength": 255
    }
  }
}

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-update-request"
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.