User
The User object represents a customer in your Fungies store.
A User object represents a customer who has made a purchase or registered in your store. Users store identity information including contact details, billing address, and custom identifiers. Each user is automatically created when a customer completes a checkout, or can be created manually via the API.
Users are central to the Fungies platform - they link to Orders, Payments, Subscriptions, and inventory items. You can use the API to create, retrieve, update, and manage user accounts.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /v0/users/list | List and filter users |
POST | /v0/users/create | Create a new user |
GET | /v0/users/{userId} | Retrieve a user |
PATCH | /v0/users/{userId}/update | Update user details |
PATCH | /v0/users/{userId}/archive | Archive a user |
PATCH | /v0/users/{userId}/unarchive | Restore an archived user |
GET | /v0/users/{userId}/inventory | Get user's inventory items |
The User object
objectstringObject type identifier. Always "user" for User objects.
idstringrequiredUnique identifier (UUID) for this user.
emailstring | nullThe user's email address. Used for transactional emails and account identification.
usernamestring | nullUsername of the user, if set. Can be used as an alternative identifier.
detailsobject | nullBilling and contact details for the user.
details properties
typestring | nullThe type of customer account. Possible values: "individual", "company"
firstNamestring | nullCustomer's first name.
lastNamestring | nullCustomer's last name.
phoneNumberstring | nullCustomer's phone number (without country dial code).
dialCodestring | nullInternational dial code for the phone number (e.g., "+1", "+44").
addressstring | nullPrimary street address line.
addressLine2string | nullSecondary address line (apartment, suite, unit, etc.).
citystring | nullCity or locality.
statestring | nullState, province, or region.
postalCodestring | nullPostal or ZIP code.
countryCodestring | nullTwo-letter ISO 3166-1 alpha-2 country code (e.g., "US", "GB", "DE").
companyNamestring | nullCompany or organization name. Typically set when type is "company".
taxIdstring | nullTax identification type or label.
taxNumberstring | nullTax identification number (VAT number, EIN, etc.).
internalIdstring | nullYour custom identifier for this user. Use this to link Fungies users to your own system's user records.
Example response
{
"status": "success",
"data": {
"user": {
"object": "user",
"id": "123e4567-e89b-12d3-a456-426614174000",
"email": "customer@example.com",
"username": "johndoe",
"details": {
"type": "individual",
"firstName": "John",
"lastName": "Doe",
"dialCode": "+1",
"phoneNumber": "5551234567",
"address": "123 Main Street",
"addressLine2": "Apt 4B",
"city": "New York",
"state": "NY",
"postalCode": "10001",
"countryCode": "US",
"companyName": null,
"taxId": null,
"taxNumber": null
},
"internalId": "usr_abc123"
}
}
}Related resources
Last updated