Crevio · Schema

DiscountRequest

Business FormationWebsite BuilderPaymentsCRM

Properties

Name Type Description
code string
status string `inactive` turns the code off at once and checkout rejects it; `active` turns it back on. Leaves `redeem_by` and the code's products unchanged.
discount_type string
amount_off integernull
percent_off numbernull
currency stringnull
duration string
duration_in_months integernull
starts_at stringnull When the code becomes usable. Checkout rejects it before this time; omit it to make the code usable right away. For a sale that starts later, create the discount now with `starts_at` set rather than s
redeem_by stringnull When the code stops being usable. Must be after `starts_at` and in the future whenever it is set. To end a code now, set `status` to `inactive`.
max_redemptions integernull How many live orders can use the code, across all customers. Test purchases don't count. The limit set at creation also stays on the Stripe coupon, so raising it later has no effect past that number.
minimum_amount integernull Smallest order subtotal, in cents before the discount, that can use the code. Requires `currency`; an order in another currency can't use the code. `null` removes it.
once_per_customer boolean Each customer can use the code on one live order.
first_order_only boolean Only customers with no earlier live paid order from this business can use the code. Free orders and test purchases don't count as earlier orders.
price_variants array
View JSON Schema on GitHub

JSON Schema

crevio-co-discount-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crevio-co/json-schema/crevio-co-discount-request-schema.json",
  "title": "DiscountRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crevio-co-discounts-api-openapi.yml#/components/schemas/DiscountRequest",
  "type": "object",
  "properties": {
    "code": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "inactive"
      ],
      "description": "`inactive` turns the code off at once and checkout rejects it; `active` turns it back on. Leaves `redeem_by` and the code's products unchanged."
    },
    "discount_type": {
      "type": "string",
      "enum": [
        "percentage",
        "fixed"
      ]
    },
    "amount_off": {
      "type": [
        "integer",
        "null"
      ]
    },
    "percent_off": {
      "type": [
        "number",
        "null"
      ]
    },
    "currency": {
      "type": [
        "string",
        "null"
      ]
    },
    "duration": {
      "type": "string",
      "enum": [
        "forever",
        "once",
        "repeating"
      ]
    },
    "duration_in_months": {
      "type": [
        "integer",
        "null"
      ]
    },
    "starts_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the code becomes usable. Checkout rejects it before this time; omit it to make the code usable right away. For a sale that starts later, create the discount now with `starts_at` set rather than scheduling its creation."
    },
    "redeem_by": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the code stops being usable. Must be after `starts_at` and in the future whenever it is set. To end a code now, set `status` to `inactive`."
    },
    "max_redemptions": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "description": "How many live orders can use the code, across all customers. Test purchases don't count. The limit set at creation also stays on the Stripe coupon, so raising it later has no effect past that number."
    },
    "minimum_amount": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "description": "Smallest order subtotal, in cents before the discount, that can use the code. Requires `currency`; an order in another currency can't use the code. `null` removes it."
    },
    "once_per_customer": {
      "type": "boolean",
      "description": "Each customer can use the code on one live order."
    },
    "first_order_only": {
      "type": "boolean",
      "description": "Only customers with no earlier live paid order from this business can use the code. Free orders and test purchases don't count as earlier orders."
    },
    "price_variants": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}

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/crevio-co-discount-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.