Retrieve user
const url = 'https://acme.mykreezalid.com/api/v1/users/1';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://acme.mykreezalid.com/api/v1/users/1 \ --header 'Authorization: Basic <credentials>'Retrieves a user from its unique identifier.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Unique identifier of the user
Query Parameters
Section titled “Query Parameters”Comma-separated list of the fields to return, e.g. id,email,group.
Responses
Section titled “Responses”The user
object
A member of your marketplace, customer or vendor, as the Admin API returns it.
object
User’s unique identifier
Your own identifier for this user
Two-letter country code
Values of the user’s custom profile fields
object
Absolute URL of the profile image
Company or organization name
Whether the user’s group may publish listings
Whether the user’s group goes through onboarding
Company details. Absent when account_type is individual.
object
Company registration number
Sign-up date, YYYY-MM-DD HH:MM:SS
object
Group’s unique identifier
Identifier of the user’s group. Deprecated in responses: read group.id.
Read group.name.
Read group.alias.
Language code
Number of the user’s listings
Number of the user’s listings, whatever their status
Same value as lang
The user’s metafields, when they are loaded; null otherwise
A custom value you attach to a resource, identified by its namespace and title.
object
Group the metafield belongs to
Name of the metafield, unique within its namespace
Value of the metafield. Usually a string; it can be returned as a number or a JSON value depending on how the metafield was defined.
Two-letter country code
Average rating from the reviews the user received
Absolute URL of the user’s public profile
Name shown publicly, following your display settings
Account status
Whether the user completed their identity details
Number of reviews the user received
Example
{ "user": { "id": 545353, "object": "User", "external_id": "ABCdef123456", "account_type": "individual", "address_city": "New-York City", "address_country": "US", "address_line1": "253 W 42nd St", "address_line2": null, "address_state": "NY", "address_zipcode": "10036", "attributes": { "profession": "Web developer" }, "birthday": "1990-05-17", "business_name": "ACME", "company": { "object": "Company", "name": "ACME" }, "created_at": "2024-03-18 09:41:05", "email": "jane@example.com", "first_name": "Jane", "group": { "object": "Group", "id": 784568, "name": "VIP Customers", "alias": "vip-customers" }, "group_id": 784568, "lang": "en", "last_name": "Doe", "listing_count": 12, "listing_count_any_status": 14, "locale": "en", "metafields": [ { "namespace": "erp", "title": "warehouse_code", "value": "WH-42" } ], "nationality": "US", "average_rating": 4.5, "phone_country_code": "+1", "phone_number": "212-398-2600", "profile_url": "https://acme.mykreezalid.com/shop/a1b2c3d/jane-doe", "public_name": "Jane Doe", "status": "enabled", "identity_status": "not_completed", "review_count": 3, "timezone": "America/New_York", "username": "janedoe" }}No user has this identifier.