> For the complete documentation index, see [llms.txt](https://docs.liquidcommerce.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.liquidcommerce.cloud/types/user.md). Agents can also search and read this documentation through its [MCP server](https://docs.liquidcommerce.cloud/~gitbook/mcp).

# User

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

### UserType

<table><thead><tr><th width="345">Attribute</th><th>Description</th></tr></thead><tbody><tr><td><strong>id: </strong><mark style="color:blue;"><strong>string</strong></mark></td><td>user's identifier</td></tr><tr><td><strong>email: </strong><mark style="color:blue;"><strong>string</strong></mark></td><td>user's email address</td></tr><tr><td><strong>firstName</strong>: <mark style="color:blue;"><strong>string</strong></mark></td><td>user's first name</td></tr><tr><td><strong>lastName</strong>: <mark style="color:blue;"><strong>string</strong></mark></td><td>user's last name</td></tr><tr><td><strong>phone</strong>: <mark style="color:blue;"><strong>string</strong></mark></td><td>user's phone number</td></tr><tr><td><strong>company</strong>: <mark style="color:blue;"><strong>string</strong></mark></td><td>user's company</td></tr><tr><td><strong>profileImage</strong>: <mark style="color:blue;"><strong>string</strong></mark></td><td>url to user's profile image</td></tr><tr><td><strong>birthDate</strong>: <mark style="color:blue;"><strong>string</strong></mark></td><td>users's birth date</td></tr><tr><td><strong>createdAt</strong>: <mark style="color:blue;"><strong>Date</strong></mark></td><td>account creation timestamp</td></tr><tr><td><strong>updatedAt</strong>: <mark style="color:blue;"><strong>Date</strong></mark></td><td>last update timestamp</td></tr><tr><td><strong>addresses</strong>: <mark style="color:purple;"><strong>Array&#x3C;</strong></mark><a href="#useraddress"><mark style="color:blue;"><strong>UserAddress</strong></mark></a><mark style="color:purple;"><strong>></strong></mark></td><td>user's saved addresses</td></tr><tr><td><strong>savedPayments</strong>: <mark style="color:purple;"><strong>Array&#x3C;</strong></mark><a href="#userpayment"><mark style="color:blue;"><strong>UserPayment</strong></mark></a><mark style="color:purple;"><strong>></strong></mark></td><td>user's saved payment methods</td></tr></tbody></table>

### UserAddress

<table><thead><tr><th width="345">Attribute</th><th>Description</th></tr></thead><tbody><tr><td><strong>id: </strong><mark style="color:blue;"><strong>string</strong></mark></td><td>user address identifier</td></tr><tr><td><strong>placesId: </strong><mark style="color:blue;"><strong>string</strong></mark></td><td>google places identifier</td></tr><tr><td><strong>one</strong>: <mark style="color:blue;"><strong>string</strong></mark></td><td>the primary street address or neighborhood</td></tr><tr><td><strong>two</strong>: <mark style="color:blue;"><strong>string</strong></mark></td><td>the secondary address information, such as apt or suit number</td></tr><tr><td><strong>city</strong>: <mark style="color:blue;"><strong>string</strong></mark></td><td>the name of the city</td></tr><tr><td><strong>state</strong>: <mark style="color:blue;"><strong>string</strong></mark></td><td>the name of the state or region</td></tr><tr><td><strong>zip</strong>: <mark style="color:blue;"><strong>string</strong></mark></td><td>the postal code</td></tr><tr><td><strong>country</strong>: <mark style="color:blue;"><strong>Date</strong></mark></td><td>the name of the country</td></tr><tr><td><strong>lat</strong>: <mark style="color:blue;"><strong>number</strong></mark></td><td>the latitude coordinate of the address</td></tr><tr><td><strong>long</strong>: <mark style="color:blue;"><strong>number</strong></mark></td><td>the longitude coordinate of the address</td></tr><tr><td><strong>createdAt</strong>: <mark style="color:blue;"><strong>Date</strong></mark></td><td>account creation timestamp</td></tr><tr><td><strong>updatedAt</strong>: <mark style="color:blue;"><strong>Date</strong></mark></td><td>last update timestamp</td></tr><tr><td><strong>isDefault</strong>: <mark style="color:blue;"><strong>boolean</strong></mark></td><td>whether this is the default address</td></tr></tbody></table>

### UserPayment

<table><thead><tr><th width="345">Attribute</th><th>Description</th></tr></thead><tbody><tr><td><strong>id: </strong><mark style="color:blue;"><strong>string</strong></mark></td><td>user payment identifier</td></tr><tr><td><strong>type: </strong><mark style="color:blue;"><strong>string</strong></mark></td><td>payment method type (e.g., credit card, paypal)</td></tr><tr><td><strong>isDefault</strong>: <mark style="color:blue;"><strong>boolean</strong></mark></td><td>whether this is the default payment method</td></tr><tr><td><strong>card</strong>: <a href="#savedcard"><mark style="color:blue;"><strong>SavedCard</strong></mark></a> <mark style="color:orange;"><strong>[optional]</strong></mark></td><td>card details if payment method is a card</td></tr><tr><td><strong>createdAt</strong>: <mark style="color:blue;"><strong>Date</strong></mark></td><td>payment method creation timestamp</td></tr></tbody></table>

### SavedCard

<table><thead><tr><th width="345">Attribute</th><th>Description</th></tr></thead><tbody><tr><td><strong>brand: </strong><mark style="color:blue;"><strong>string</strong></mark></td><td>card brand (Visa, Mastercard, etc.)</td></tr><tr><td><strong>country</strong>: <mark style="color:blue;"><strong>string</strong></mark></td><td>card issuing country</td></tr><tr><td><strong>expMonth</strong>: <mark style="color:blue;"><strong>number</strong></mark></td><td>expiration month</td></tr><tr><td><strong>expYear</strong>: <mark style="color:blue;"><strong>number</strong></mark></td><td>expiration year</td></tr><tr><td><strong>last4: </strong><mark style="color:blue;"><strong>string</strong></mark></td><td>last 4 digits of card number</td></tr><tr><td><strong>funding</strong>: <mark style="color:blue;"><strong>string</strong></mark></td><td>funding type (credit, debit, etc.)</td></tr></tbody></table>

### Sample user

<details>

<summary>User Object</summary>

```json
{
        "id": "userId_123abc12_123abc12",
        "email": "john@liquidcommerce.com",
        "firstName": "John",
        "company": "Liquid Commerce",
        "lastName": "Doe",
        "phone": "+1234567890",
        "profileImage": "https://example.com/profiles/sarah.jpg",
        "birthDate": "1990-05-15",
        "createdAt": "2024-09-15T10:30:25.123Z",
        "updatedAt": "2024-11-12T16:45:32.891Z",
        "addresses": [
            {
                "id": "8d4e5f6g-7h8i-9j0k-lm12-34567890nopq",
                "type": "shipping",
                "one": "100 Madison Ave",
                "two": "Floor 23",
                "city": "New York",
                "state": "NY",
                "zip": "10166",
                "country": "US",
                "placesId": "ChIJKxDbe7lZwokRVf__________",
                "lat": 40.754542,
                "long": -73.976929,
                "isDefault": true,
                "createdAt": "2024-10-01T09:22:15.432Z",
                "updatedAt": "2024-11-10T11:15:44.789Z"
            }
        ],
        "savedPayments": [
            {
                "id": "pm_paymentId_123abc12",
                "type": "card",
                "isDefault": true,
                "card": {
                    "brand": "visa",
                    "country": "US",
                    "expMonth": 12,
                    "expYear": 20**,
                    "last4": "****",
                    "funding": "credit"
                },
                "createdAt": "2024-10-15T14:30:20.555Z"
            }
        ],
        "session": {
            "key": "pk_test_51AbCdEfGhIjKl_________",
            "secret": "seti_1AbCdEfGhIjKlM_________",
            "createdAt": "2024-11-12T16:45:32.891Z"
        }
    }
```

</details>
