AgentaOS · Schema
CreateDiscountCodeRequest
PaymentsBillingSoftware-as-a-ServiceFreelancersArtificial Intelligence
Properties
| Name | Type | Description |
|---|---|---|
| code | string | What the buyer types. Letters, numbers, dashes and underscores. |
| name | string | Your own label for the code, shown back to you on the single-code route. Not allowed on a code that carries no discount. |
| percentOff | number | Percentage off the first invoice. A code cannot take the whole price off — set up a free trial for that. |
| amountOffMinor | integer | Integer minor units. The currency is the plan's, or your settlement currency when the code is not tied to a plan. It comes off the total the buyer pays, VAT included. |
| maxRedemptions | integer | |
| expiresAt | string | Must be in the future. |
| linkId | string | Restrict the code to one subscription plan. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/agentaos-ai/json-schema/agentaos-ai-create-discount-code-request-schema.json",
"title": "CreateDiscountCodeRequest",
"x-generated": "2026-11-04",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/agentaos-ai-discount-codes-api-openapi.yml#/components/schemas/CreateDiscountCodeRequest",
"type": "object",
"properties": {
"code": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "What the buyer types. Letters, numbers, dashes and underscores."
},
"name": {
"type": "string",
"maxLength": 120,
"description": "Your own label for the code, shown back to you on the single-code route. Not allowed on a code that carries no discount."
},
"percentOff": {
"type": "number",
"minimum": 0.01,
"maximum": 99,
"description": "Percentage off the first invoice. A code cannot take the whole price off — set up a free trial for that."
},
"amountOffMinor": {
"type": "integer",
"minimum": 1,
"description": "Integer minor units. The currency is the plan's, or your settlement currency when the code is not tied to a plan. It comes off the total the buyer pays, VAT included."
},
"maxRedemptions": {
"type": "integer",
"minimum": 1
},
"expiresAt": {
"type": "string",
"format": "date-time",
"description": "Must be in the future."
},
"linkId": {
"type": "string",
"format": "uuid",
"description": "Restrict the code to one subscription plan."
}
},
"required": [
"code"
]
}
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/agentaos-ai-create-discount-code-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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.