subotiz-com · Schema
GetDiscountResponse
Query discount response
PaymentsArtificial IntelligenceBillingSoftware-as-a-ServiceFintechCompany
Properties
| Name | Type | Description |
|---|---|---|
| code | string | error code |
| message | string | error message |
| data | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/subotiz-com/json-schema/subotiz-com-get-discount-response-schema.json",
"title": "GetDiscountResponse",
"description": "Query discount response",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/subotiz-com-discount-api-openapi.yml#/components/schemas/GetDiscountResponse",
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "error code"
},
"message": {
"type": "string",
"description": "error message"
},
"data": {
"$ref": "#/$defs/GetDiscountResponse_Data"
}
},
"$defs": {
"GetDiscountResponse_Data": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The unique ID of the discount object"
},
"discount_name": {
"type": "string",
"description": "The name of the discount"
},
"status": {
"type": "string",
"description": "Discount status:\n - draft: The discount has been created but is not active or visible to users yet.\n - not_started: The discount is defined, but its start time has not yet arrived.\n - ongoing: The discount is currently active and available for use.\n - completed: The discount has ended and is no longer available for use."
},
"discount_code": {
"type": "string",
"description": "Discount code to be applied at checkout"
},
"discount_method": {
"type": "string",
"description": "Discount method: Only when set to \"discount_code\" can a discount code be used:\n - discount_code: Discount by discount code"
},
"starts_at": {
"type": "string",
"description": "Discount start time in UTC format, An empty string means no restriction"
},
"ends_at": {
"type": "string",
"description": "Discount end time in UTC format, An empty string means no restriction"
},
"created_at": {
"type": "string",
"description": "Creation time, UTC formatted string"
},
"updated_at": {
"type": "string",
"description": "Last update time, UTC formatted string"
}
},
"description": "Query discount response"
}
}
}
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/subotiz-com-get-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.