{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nanocart-io/json-schema/nanocart-io-post-shop-storeid-admin-donations-campaigns-request-schema.json",
  "title": "PostShopStoreidAdminDonationsCampaignsRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/nanocart-io-openapi-generated.yml#/components/schemas/PostShopStoreidAdminDonationsCampaignsRequest",
  "type": "object",
  "properties": {
    "campaignId": {
      "type": "string",
      "description": "Public slug (max 41 chars), immutable"
    },
    "name": {
      "type": "string",
      "description": "Shown as the donate popup title (max 80)"
    },
    "description": {
      "type": "string",
      "description": "Campaign description"
    },
    "buttonText": {
      "type": "string",
      "description": "Button label"
    },
    "successUrl": {
      "type": "string",
      "description": "Redirect after successful donation"
    },
    "suggestedOneTime": {
      "type": "array",
      "description": "Array of suggested one‑time amounts (cents)"
    },
    "suggestedMonthly": {
      "type": "array",
      "description": "Array of suggested monthly amounts (cents)"
    },
    "allowCustomAmount": {
      "type": "boolean",
      "description": "One‑time \"other amount\" field"
    },
    "allowOneTime": {
      "type": "boolean",
      "description": "Enable one‑time donations"
    },
    "allowRecurring": {
      "type": "boolean",
      "description": "Enable recurring donations"
    },
    "defaultFrequency": {
      "type": "string",
      "description": "\"one_time\" or \"monthly\""
    },
    "goalAmountCents": {
      "type": "integer",
      "description": "Goal amount in cents"
    },
    "goalMetric": {
      "type": "string",
      "description": "Goal metric (month_total, mrr, all_time)"
    },
    "statsConfig": {
      "type": "object",
      "description": "Widget display options"
    },
    "hideBranding": {
      "type": "boolean",
      "description": "Pro/Expert only – hide NanoCart branding"
    },
    "status": {
      "type": "string",
      "description": "Campaign status"
    }
  },
  "required": [
    "campaignId",
    "name",
    "description",
    "buttonText",
    "successUrl"
  ]
}