User

A full reference to user type for different Liquid Commerce APIs.

UserType

Attribute
Description

id: string

user's identifier

email: string

user's email address

firstName: string

user's first name

lastName: string

user's last name

phone: string

user's phone number

company: string

user's company

profileImage: string

url to user's profile image

birthDate: string

users's birth date

createdAt: Date

account creation timestamp

updatedAt: Date

last update timestamp

addresses: Array<UserAddress>

user's saved addresses

savedPayments: Array<UserPayment>

user's saved payment methods

UserAddress

Attribute
Description

id: string

user address identifier

placesId: string

google places identifier

one: string

the primary street address or neighborhood

two: string

the secondary address information, such as apt or suit number

city: string

the name of the city

state: string

the name of the state or region

zip: string

the postal code

country: Date

the name of the country

lat: number

the latitude coordinate of the address

long: number

the longitude coordinate of the address

createdAt: Date

account creation timestamp

updatedAt: Date

last update timestamp

isDefault: boolean

whether this is the default address

UserPayment

Attribute
Description

id: string

user payment identifier

type: string

payment method type (e.g., credit card, paypal)

isDefault: boolean

whether this is the default payment method

card: SavedCard [optional]

card details if payment method is a card

createdAt: Date

payment method creation timestamp

SavedCard

Attribute
Description

brand: string

card brand (Visa, Mastercard, etc.)

country: string

card issuing country

expMonth: number

expiration month

expYear: number

expiration year

last4: string

last 4 digits of card number

funding: string

funding type (credit, debit, etc.)

Sample user

chevron-rightUser Objecthashtag

Last updated