User
User
Get full account information for a logged-in user. This will return information for all tenants the user has access to.
Authorizations
Responses
200
User account response
application/json
get
GET /v2/account HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
User account response
{
"globalRoles": [
"text"
],
"defaultTenantUid": "text",
"tenants": [
{
"accountType": "FULL",
"createdAt": "2025-07-30T17:54:35.757Z",
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastAccessed": "2025-07-30T17:54:35.757Z",
"lastModifiedAt": "2025-07-30T17:54:35.757Z",
"lastname": "text",
"mobile": "text",
"status": "PENDING_INVITE",
"storeAccess": [
{
"createdAt": "2025-07-30T17:54:35.757Z",
"lastModifiedAt": "2025-07-30T17:54:35.757Z",
"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
Authorizations
Body
passwordstringRequired
userCodestringRequired
Responses
200
Example response
application/json
post
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"
}
200
Example response
{
"accessToken": "text",
"tenantUser": {
"accountType": "FULL",
"createdAt": "2025-07-30T17:54:35.757Z",
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastAccessed": "2025-07-30T17:54:35.757Z",
"lastModifiedAt": "2025-07-30T17:54:35.757Z",
"lastname": "text",
"mobile": "text",
"status": "PENDING_INVITE",
"storeAccess": [
{
"createdAt": "2025-07-30T17:54:35.757Z",
"lastModifiedAt": "2025-07-30T17:54:35.757Z",
"storeAccessUid": "text",
"storeUid": "text",
"storeRole": "ADMIN"
}
],
"tenantUid": "text",
"tenantRole": "ACCESS",
"tenantUserUid": "text",
"userCode": "text",
"languageCode": "text"
}
}
Update global information about logged in user
Authorizations
Body
defaultTenantUidstringRequiredPattern:
^[A-Za-z0-9-_]+
Responses
200
User account response
application/json
put
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"
}
200
User account response
{
"globalRoles": [
"text"
],
"defaultTenantUid": "text",
"tenants": [
{
"accountType": "FULL",
"createdAt": "2025-07-30T17:54:35.757Z",
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastAccessed": "2025-07-30T17:54:35.757Z",
"lastModifiedAt": "2025-07-30T17:54:35.757Z",
"lastname": "text",
"mobile": "text",
"status": "PENDING_INVITE",
"storeAccess": [
{
"createdAt": "2025-07-30T17:54:35.757Z",
"lastModifiedAt": "2025-07-30T17:54:35.757Z",
"storeAccessUid": "text",
"storeUid": "text",
"storeRole": "ADMIN"
}
],
"tenantUid": "text",
"tenantRole": "ACCESS",
"tenantUserUid": "text",
"userCode": "text",
"languageCode": "text"
}
]
}
Get tenant information about logged-in user
Authorizations
Path parameters
tenantUidstringRequiredPattern:
Reference to a tenant.
^[A-Za-z0-9-_]+
Responses
200
Tenant user respose
application/json
get
GET /v2/tenants/{tenantUid}/account HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
Tenant user respose
{
"accountType": "FULL",
"createdAt": "2025-07-30T17:54:35.757Z",
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastAccessed": "2025-07-30T17:54:35.757Z",
"lastModifiedAt": "2025-07-30T17:54:35.757Z",
"lastname": "text",
"mobile": "text",
"status": "PENDING_INVITE",
"storeAccess": [
{
"createdAt": "2025-07-30T17:54:35.757Z",
"lastModifiedAt": "2025-07-30T17:54:35.757Z",
"storeAccessUid": "text",
"storeUid": "text",
"storeRole": "ADMIN"
}
],
"tenantUid": "text",
"tenantRole": "ACCESS",
"tenantUserUid": "text",
"userCode": "text",
"languageCode": "text"
}
Generate access token from auth token
Authorizations
Path parameters
tenantUidstringRequiredPattern:
Reference to a tenant.
^[A-Za-z0-9-_]+
Responses
200
Tenant user respose
application/json
post
POST /v2/tenants/{tenantUid}/account HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
Tenant user respose
{
"accountType": "FULL",
"createdAt": "2025-07-30T17:54:35.757Z",
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastAccessed": "2025-07-30T17:54:35.757Z",
"lastModifiedAt": "2025-07-30T17:54:35.757Z",
"lastname": "text",
"mobile": "text",
"status": "PENDING_INVITE",
"storeAccess": [
{
"createdAt": "2025-07-30T17:54:35.757Z",
"lastModifiedAt": "2025-07-30T17:54:35.757Z",
"storeAccessUid": "text",
"storeUid": "text",
"storeRole": "ADMIN"
}
],
"tenantUid": "text",
"tenantRole": "ACCESS",
"tenantUserUid": "text",
"userCode": "text",
"languageCode": "text"
}
Update information about logged in user
Authorizations
Path parameters
tenantUidstringRequiredPattern:
Reference to a tenant.
^[A-Za-z0-9-_]+
Body
Update the tenant account
defaultStoreUidstringOptionalPattern:
^[A-Za-z0-9-_]*
displayNamestringOptional
emailstringOptional
firstnamestringOptional
lastnamestringOptional
mobilestringOptional
passwordstringOptional
languageCodestringOptional
ISO 639-1 code for language
Responses
200
Tenant user respose
application/json
put
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"
}
200
Tenant user respose
{
"accountType": "FULL",
"createdAt": "2025-07-30T17:54:35.757Z",
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastAccessed": "2025-07-30T17:54:35.757Z",
"lastModifiedAt": "2025-07-30T17:54:35.757Z",
"lastname": "text",
"mobile": "text",
"status": "PENDING_INVITE",
"storeAccess": [
{
"createdAt": "2025-07-30T17:54:35.757Z",
"lastModifiedAt": "2025-07-30T17:54:35.757Z",
"storeAccessUid": "text",
"storeUid": "text",
"storeRole": "ADMIN"
}
],
"tenantUid": "text",
"tenantRole": "ACCESS",
"tenantUserUid": "text",
"userCode": "text",
"languageCode": "text"
}
Get information about invitation to a tenant
Header parameters
x-invite-tokenstringRequired
invite token
Responses
200
Example response
application/json
get
GET /v2/account/invite HTTP/1.1
Host: api.flowretail.com
x-invite-token: text
Accept: */*
200
Example response
{
"tenant": {
"name": "text"
},
"user": {
"displayName": "text",
"email": "text",
"firstname": "text",
"lastname": "text",
"mobile": "text",
"status": "text"
}
}
Accept invitation to a tenant
Authorizations
Body
Accept an invitation
inviteTokenstringRequired
Responses
200
Tenant user respose
application/json
put
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"
}
200
Tenant user respose
{
"accountType": "FULL",
"createdAt": "2025-07-30T17:54:35.757Z",
"defaultStoreUid": "text",
"displayName": "text",
"email": "text",
"externalId": "text",
"firstname": "text",
"lastAccessed": "2025-07-30T17:54:35.757Z",
"lastModifiedAt": "2025-07-30T17:54:35.757Z",
"lastname": "text",
"mobile": "text",
"status": "PENDING_INVITE",
"storeAccess": [
{
"createdAt": "2025-07-30T17:54:35.757Z",
"lastModifiedAt": "2025-07-30T17:54:35.757Z",
"storeAccessUid": "text",
"storeUid": "text",
"storeRole": "ADMIN"
}
],
"tenantUid": "text",
"tenantRole": "ACCESS",
"tenantUserUid": "text",
"userCode": "text",
"languageCode": "text"
}
Was this helpful?