Interface DonationAlertsCreateMerchandiseData

Data required to create a merchandise item.

interface DonationAlertsCreateMerchandiseData {
    currency: DonationAlertsInputCurrency;
    endTimestamp?: number;
    imageUrl?: string;
    isActive?: boolean;
    isPercentage?: boolean;
    merchandiseIdentifier: string;
    merchantIdentifier: string;
    priceService: number;
    priceUser: number;
    title: DonationAlertsCreateMerchandiseTitleData;
    url?: string;
}

Properties

The ISO 4217 currency code for the merchandise.

All revenue values are calculated based on this currency.

endTimestamp?: number

Unix timestamp indicating when the merchandise becomes inactive.

imageUrl?: string

URL to the merchandise's image (maximum length: 128 characters).

isActive?: boolean

Whether the merchandise is available for purchase. Defaults to false.

isPercentage?: boolean

Determines if priceService and priceUser represent percentages (true) or absolute values (false).

merchandiseIdentifier: string

A unique, merchant-defined merchandise ID (maximum length: 16 characters).

merchantIdentifier: string

Merchant's ID on DonationAlerts.

priceService: number

Revenue amount received by DonationAlerts per sale.

priceUser: number

Revenue amount received by the streamer per sale.

Localized titles for merchandise.

At least en_US is required

url?: string

URL to the merchandise web page.

This supports placeholders like {user_id} and {merchandise_promocode}, which are replaced dynamically in the UI.