Skip to content

ProductSubscription ​

Type: schema

TypeScript Definition ​

typescript
ProductSubscription: {{
            /** @description Stored subscription plan ID; null for older search entries without one. */
            subscription_plan_id: string | null;
            subscription_plan: string;
            /** Format: double */
            subscription_price: number;
            /** @description Billing interval determines the frequency for which the customer is charged for the subscription itself. */
            billing_interval: number;
            /**
             * @example Monthly
             * @enum {string}
             */
            billing_frequency: "Weekly" | "Bimonthly" | "Monthly" | "Quarterly" | "Semiannually" | "Annually";
            /** @description `null` means unlimited billing cycles. */
            billing_limit: number | null;
            /** @default false */
            fulfill_separately: boolean;
            /** @description order interval defines the frequency of when the subscription sends customers the product */
            order_interval: number | null;
            /**
             * @example Monthly
             * @enum {string|null}
             */
            order_frequency: "Weekly" | "Bimonthly" | "Monthly" | "Quarterly" | "Semiannually" | "Annually" | null;
            /** @description `null` means unlimited fulfillment cycles. */
            order_limit: number | null;
            /** @description The quantity of the plan to which the customer should be subscribed */
            minimum_quantity: number;
            /** @description Use in digital product only for trial period */
            billing_trial_days: number;
        };
        /**
         * ProductType
         * @description Type of product
         * @enum {string}
         */
}

OpenAPI Schema ​

json
{
  "type": "object",
  "properties": {
    "subscription_plan_id": {
      "description": "Stored subscription plan ID; null for older search entries without one.",
      "type": [
        "string",
        "null"
      ]
    },
    "subscription_plan": {
      "type": "string"
    },
    "subscription_price": {
      "type": "number",
      "format": "double"
    },
    "billing_interval": {
      "description": "Billing interval determines the frequency for which the customer is charged for the subscription itself.",
      "type": "integer"
    },
    "billing_frequency": {
      "type": "string",
      "enum": [
        "Weekly",
        "Bimonthly",
        "Monthly",
        "Quarterly",
        "Semiannually",
        "Annually"
      ],
      "examples": [
        "Monthly"
      ]
    },
    "billing_limit": {
      "description": "`null` means unlimited billing cycles.",
      "type": [
        "integer",
        "null"
      ]
    },
    "fulfill_separately": {
      "type": "boolean",
      "default": false
    },
    "order_interval": {
      "description": "order interval defines the frequency of when the subscription sends customers the product",
      "type": [
        "integer",
        "null"
      ]
    },
    "order_frequency": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "Weekly",
        "Bimonthly",
        "Monthly",
        "Quarterly",
        "Semiannually",
        "Annually",
        null
      ],
      "examples": [
        "Monthly"
      ]
    },
    "order_limit": {
      "description": "`null` means unlimited fulfillment cycles.",
      "type": [
        "integer",
        "null"
      ]
    },
    "minimum_quantity": {
      "description": "The quantity of the plan to which the customer should be subscribed",
      "type": "integer"
    },
    "billing_trial_days": {
      "description": "Use in digital product only for trial period",
      "type": "integer"
    }
  },
  "examples": [],
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/ProductSubscription"
  },
  "required": [
    "subscription_plan_id",
    "subscription_plan",
    "subscription_price",
    "billing_interval",
    "billing_frequency",
    "billing_limit",
    "fulfill_separately",
    "order_interval",
    "order_frequency",
    "order_limit",
    "minimum_quantity",
    "billing_trial_days"
  ],
  "title": "ProductSubscription"
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: