Interface Product

Represents a product that can be purchased

interface Product {
    description?: string;
    id: string;
    metadata?: Record<string, any>;
    offers: Offer[];
    platform?: string;
    title: string;
    type: ProductType;
}

Properties

description?: string

Optional detailed description of the product

id: string

Unique identifier for the product

metadata?: Record<string, any>

Optional additional data associated with the product

This can be used to store custom data needed by your application

offers: Offer[]

Available purchase offers for this product

platform?: string

Optional platform identifier (e.g., 'stripe')

title: string

Display name of the product shown to customers

Type of the product (subscription, consumable, etc.)