{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/logbrew/json-schema/logbrew-billing-checkout-request-schema.json",
  "title": "BillingCheckoutRequest",
  "description": "Fixed-price checkout request.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/logbrew-billing-api-openapi.yml#/components/schemas/BillingCheckoutRequest",
  "additionalProperties": false,
  "properties": {
    "locale": {
      "$ref": "#/$defs/BillingLocale",
      "description": "User-visible locale preserved through return navigation."
    },
    "request_id": {
      "description": "Caller-owned retry identity.",
      "format": "uuid",
      "type": "string"
    },
    "tier": {
      "$ref": "#/$defs/BillingTier",
      "description": "Only `team` (Pro) or `business` is accepted."
    }
  },
  "required": [
    "tier",
    "locale",
    "request_id"
  ],
  "type": "object",
  "$defs": {
    "BillingLocale": {
      "description": "Supported Website locale.",
      "oneOf": [
        {
          "const": "en",
          "description": "English.",
          "type": "string"
        },
        {
          "const": "tr",
          "description": "Turkish.",
          "type": "string"
        },
        {
          "const": "de",
          "description": "German.",
          "type": "string"
        },
        {
          "const": "es",
          "description": "Spanish.",
          "type": "string"
        },
        {
          "const": "ja",
          "description": "Japanese.",
          "type": "string"
        }
      ]
    },
    "BillingTier": {
      "description": "Canonical subscription tier.",
      "oneOf": [
        {
          "const": "developer",
          "description": "Free individual plan.",
          "type": "string"
        },
        {
          "const": "team",
          "description": "Fixed $25 monthly plan.",
          "type": "string"
        },
        {
          "const": "business",
          "description": "Fixed $80 monthly plan.",
          "type": "string"
        },
        {
          "const": "enterprise",
          "description": "Quoted contract.",
          "type": "string"
        }
      ]
    }
  }
}