Interface CreateCustomerData

Data for creating a new customer

interface CreateCustomerData {
    addresses?: Partial<Address>[];
    birthday?: string;
    code?: string;
    company?: string;
    email: string;
    first_name?: string;
    gender?: "male" | "female" | "other";
    last_name?: string;
    note?: string;
    phone?: string;
    tags?: string;
    tax_exempt?: boolean;
}

Properties

addresses?: Partial<Address>[]

Customer addresses

birthday?: string

Birthday (YYYY-MM-DD)

code?: string

Customer code

company?: string

Company name

email: string

Email address

first_name?: string

First name

gender?: "male" | "female" | "other"

Gender

last_name?: string

Last name

note?: string

Customer's note

phone?: string

Phone number

tags?: string

Tags (comma-separated)

tax_exempt?: boolean

Tax exemption status