Interface Customer

Customer information

interface Customer {
    addresses: Address[];
    birthday?: string;
    code?: string;
    company?: string;
    created_on: string;
    default_address?: Address;
    email: string;
    first_name?: string;
    gender?: "male" | "female" | "other";
    id: number;
    last_name?: string;
    note?: string;
    orders_count: number;
    phone?: string;
    tags?: string;
    tax_exempt: boolean;
    total_spent: number;
    updated_on: string;
    verified_email: boolean;
}

Properties

addresses: Address[]

List of addresses

birthday?: string

Customer's birthday

code?: string

Customer code

company?: string

Customer's company

created_on: string

Creation timestamp

default_address?: Address

Customer's default address

email: string

Email address

first_name?: string

First name

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

Gender (male/female/other)

id: number

Unique identifier

last_name?: string

Last name

note?: string

Customer's note

orders_count: number

Total number of orders

phone?: string

Phone number

tags?: string

Customer tags

tax_exempt: boolean

Customer tax exemption status

total_spent: number

Total spent by customer

updated_on: string

Last update timestamp

verified_email: boolean

Whether customer verified their email