User
User
Get full account information for a logged-in user. This will return information for all tenants the user has access to.
User account response
GET /v2/account HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
User account response
{
"globalRoles": [
"text"
],
"defaultTenantUid": "text",
"tenants": [
{
"accountType": "FULL",
"createdAt": "2025-09-12T13:26:18.678Z",
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastAccessed": "2025-09-12T13:26:18.678Z",
"lastModifiedAt": "2025-09-12T13:26:18.678Z",
"lastname": "text",
"mobile": "text",
"status": "PENDING_INVITE",
"storeAccess": [
{
"createdAt": "2025-09-12T13:26:18.678Z",
"lastModifiedAt": "2025-09-12T13:26:18.678Z",
"storeAccessUid": "text",
"storeUid": "text",
"storeRole": "ADMIN"
}
],
"tenantUid": "text",
"tenantRole": "ACCESS",
"tenantUserUid": "text",
"userCode": "text",
"languageCode": "text"
}
]
}
Login as a tenant user
Requires a valid deviceToken
Example response
POST /v2/account HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"password": "text",
"userCode": "text"
}
Example response
{
"accessToken": "text",
"tenantUser": {
"accountType": "FULL",
"createdAt": "2025-09-12T13:26:18.678Z",
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastAccessed": "2025-09-12T13:26:18.678Z",
"lastModifiedAt": "2025-09-12T13:26:18.678Z",
"lastname": "text",
"mobile": "text",
"status": "PENDING_INVITE",
"storeAccess": [
{
"createdAt": "2025-09-12T13:26:18.678Z",
"lastModifiedAt": "2025-09-12T13:26:18.678Z",
"storeAccessUid": "text",
"storeUid": "text",
"storeRole": "ADMIN"
}
],
"tenantUid": "text",
"tenantRole": "ACCESS",
"tenantUserUid": "text",
"userCode": "text",
"languageCode": "text"
}
}
Update global information about logged in user
^[A-Za-z0-9-_]+
User account response
PUT /v2/account HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"defaultTenantUid": "text"
}
User account response
{
"globalRoles": [
"text"
],
"defaultTenantUid": "text",
"tenants": [
{
"accountType": "FULL",
"createdAt": "2025-09-12T13:26:18.678Z",
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastAccessed": "2025-09-12T13:26:18.678Z",
"lastModifiedAt": "2025-09-12T13:26:18.678Z",
"lastname": "text",
"mobile": "text",
"status": "PENDING_INVITE",
"storeAccess": [
{
"createdAt": "2025-09-12T13:26:18.678Z",
"lastModifiedAt": "2025-09-12T13:26:18.678Z",
"storeAccessUid": "text",
"storeUid": "text",
"storeRole": "ADMIN"
}
],
"tenantUid": "text",
"tenantRole": "ACCESS",
"tenantUserUid": "text",
"userCode": "text",
"languageCode": "text"
}
]
}
Get tenant information about logged-in user
Reference to a tenant.
^[A-Za-z0-9-_]+
Tenant user respose
GET /v2/tenants/{tenantUid}/account HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Tenant user respose
{
"accountType": "FULL",
"createdAt": "2025-09-12T13:26:18.678Z",
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastAccessed": "2025-09-12T13:26:18.678Z",
"lastModifiedAt": "2025-09-12T13:26:18.678Z",
"lastname": "text",
"mobile": "text",
"status": "PENDING_INVITE",
"storeAccess": [
{
"createdAt": "2025-09-12T13:26:18.678Z",
"lastModifiedAt": "2025-09-12T13:26:18.678Z",
"storeAccessUid": "text",
"storeUid": "text",
"storeRole": "ADMIN"
}
],
"tenantUid": "text",
"tenantRole": "ACCESS",
"tenantUserUid": "text",
"userCode": "text",
"languageCode": "text"
}
Generate access token from auth token
Reference to a tenant.
^[A-Za-z0-9-_]+
Tenant user respose
POST /v2/tenants/{tenantUid}/account HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Tenant user respose
{
"accountType": "FULL",
"createdAt": "2025-09-12T13:26:18.678Z",
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastAccessed": "2025-09-12T13:26:18.678Z",
"lastModifiedAt": "2025-09-12T13:26:18.678Z",
"lastname": "text",
"mobile": "text",
"status": "PENDING_INVITE",
"storeAccess": [
{
"createdAt": "2025-09-12T13:26:18.678Z",
"lastModifiedAt": "2025-09-12T13:26:18.678Z",
"storeAccessUid": "text",
"storeUid": "text",
"storeRole": "ADMIN"
}
],
"tenantUid": "text",
"tenantRole": "ACCESS",
"tenantUserUid": "text",
"userCode": "text",
"languageCode": "text"
}
Update information about logged in user
Reference to a tenant.
^[A-Za-z0-9-_]+
Update the tenant account
^[A-Za-z0-9-_]*
ISO 639-1 code for language
Tenant user respose
PUT /v2/tenants/{tenantUid}/account HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 155
{
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"firstname": "text",
"lastname": "text",
"mobile": "text",
"password": "text",
"languageCode": "text"
}
Tenant user respose
{
"accountType": "FULL",
"createdAt": "2025-09-12T13:26:18.678Z",
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastAccessed": "2025-09-12T13:26:18.678Z",
"lastModifiedAt": "2025-09-12T13:26:18.678Z",
"lastname": "text",
"mobile": "text",
"status": "PENDING_INVITE",
"storeAccess": [
{
"createdAt": "2025-09-12T13:26:18.678Z",
"lastModifiedAt": "2025-09-12T13:26:18.678Z",
"storeAccessUid": "text",
"storeUid": "text",
"storeRole": "ADMIN"
}
],
"tenantUid": "text",
"tenantRole": "ACCESS",
"tenantUserUid": "text",
"userCode": "text",
"languageCode": "text"
}
Get information about invitation to a tenant
invite token
Example response
GET /v2/account/invite HTTP/1.1
Host: api.flowretail.com
x-invite-token: text
Accept: */*
Example response
{
"tenant": {
"name": "text"
},
"user": {
"displayName": "text",
"email": "text",
"firstname": "text",
"lastname": "text",
"mobile": "text",
"status": "text"
}
}
Accept invitation to a tenant
Accept an invitation
Tenant user respose
PUT /v2/account/invite HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"inviteToken": "text"
}
Tenant user respose
{
"accountType": "FULL",
"createdAt": "2025-09-12T13:26:18.678Z",
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastAccessed": "2025-09-12T13:26:18.678Z",
"lastModifiedAt": "2025-09-12T13:26:18.678Z",
"lastname": "text",
"mobile": "text",
"status": "PENDING_INVITE",
"storeAccess": [
{
"createdAt": "2025-09-12T13:26:18.678Z",
"lastModifiedAt": "2025-09-12T13:26:18.678Z",
"storeAccessUid": "text",
"storeUid": "text",
"storeRole": "ADMIN"
}
],
"tenantUid": "text",
"tenantRole": "ACCESS",
"tenantUserUid": "text",
"userCode": "text",
"languageCode": "text"
}
Was this helpful?