CM.com · Schema
handler.createDiscountResponse
CompanyCPaaSMessagingSMSVoicePaymentsVerificationTicketing
Properties
| Name | Type | Description |
|---|---|---|
| currency_id | string | |
| discount_campaign_products | array | Only present for PRODUCT campaigns. |
| discount_code | string | The code customers enter at checkout. For ORDER campaigns this is the code you supplied; for PRODUCT campaigns it is generated for you. |
| discount_type | string | |
| id | string | |
| max_usage | integer | |
| name | string | |
| online_from | string | |
| online_till | string | |
| rate | number | Only present for ORDER campaigns. |
| rate_type | string |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/cm-com/main/json-schema/cm-com-handler-create-discount-response-schema.json",
"title": "handler.createDiscountResponse",
"x-generated": "2026-10-13",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/cm-com-live-event-ticketing-v1-openapi.yml#/components/schemas/handler.createDiscountResponse",
"properties": {
"currency_id": {
"type": "string"
},
"discount_campaign_products": {
"description": "Only present for PRODUCT campaigns.",
"items": {
"$ref": "#/$defs/handler.createDiscountResponseProduct"
},
"type": "array",
"uniqueItems": false
},
"discount_code": {
"description": "The code customers enter at checkout. For ORDER campaigns this is the code you\nsupplied; for PRODUCT campaigns it is generated for you.",
"type": "string"
},
"discount_type": {
"type": "string"
},
"id": {
"type": "string"
},
"max_usage": {
"type": "integer"
},
"name": {
"type": "string"
},
"online_from": {
"type": "string"
},
"online_till": {
"type": "string"
},
"rate": {
"description": "Only present for ORDER campaigns.",
"type": "number"
},
"rate_type": {
"type": "string"
}
},
"type": "object",
"$defs": {
"handler.createDiscountResponseProduct": {
"properties": {
"currency_id": {
"type": "string"
},
"id": {
"type": "integer"
},
"max_usage": {
"type": "integer"
},
"product_uuid": {
"type": "string"
},
"rate": {
"type": "number"
},
"rate_type": {
"type": "string"
}
},
"type": "object"
}
}
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cm-com-handler-create-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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.