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;
};
/** ProductVideo */
}OpenAPI Schema
json
{
"title": "ProductSubscription",
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/ProductSubscription",
"description": "API reference for the ProductSubscription schema"
},
"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"
],
"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": []
}Auto-generated from OpenAPI spec and TypeScript definitions