Interface DiscountCodeListParams

Parameters for listing discount codes

interface DiscountCodeListParams {
    code_prefix?: string;
    created_on_max?: string;
    created_on_min?: string;
    fields?: string[];
    limit?: number;
    page?: number;
    price_rule_id?: number;
    updated_on_max?: string;
    updated_on_min?: string;
}

Hierarchy (view full)

Properties

code_prefix?: string

Filter by code prefix

created_on_max?: string

Filter by created date (end). ISO 8601 format: '2025-01-01T00:00:00Z'

created_on_min?: string

Filter by created date (start). ISO 8601 format: '2025-01-01T00:00:00Z'

fields?: string[]

Fields to include in the response. Use comma-separated values: 'id,name,created_on'

limit?: number

Number of items per page. Maximum value varies by endpoint.

page?: number

Page number (1-based).

price_rule_id?: number

Filter by price rule ID

updated_on_max?: string

Filter by updated date (end). ISO 8601 format: '2025-01-01T00:00:00Z'

updated_on_min?: string

Filter by updated date (start). ISO 8601 format: '2025-01-01T00:00:00Z'