{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nanocart-io/json-schema/nanocart-io-post-shop-storeid-admin-coupons-request-schema.json",
  "title": "PostShopStoreidAdminCouponsRequest",
  "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/PostShopStoreidAdminCouponsRequest",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "Coupon code (auto-uppercased)"
    },
    "type": {
      "type": "string",
      "description": "percent_off, fixed_amount, or free_shipping"
    },
    "value": {
      "type": "integer",
      "description": "Percentage (1-100) or cents amount"
    },
    "minOrderAmount": {
      "type": "integer",
      "description": "Minimum subtotal in cents"
    },
    "maxUses": {
      "type": "integer",
      "description": "Max number of times coupon can be used"
    },
    "expiresAt": {
      "type": "string",
      "description": "ISO datetime when coupon expires"
    },
    "status": {
      "type": "string",
      "description": "active or other status"
    }
  },
  "required": [
    "code",
    "type",
    "value"
  ]
}