Get Multiple End Users
GET
https://api.sfox.com/v1/enterprise/users
Returns a list of all your end users.
Request
Query Parameters
accountRole
string
Filters the users included in the response by their account_role . Possible values: client , advisor
Example Requests
#Retrieve all end users
curl -H "Authorization: Bearer ${ENTERPRISE_API_TOKEN}" \
'https://api.sfox.com/v1/enterprise/users'
#Retrieve all end users with account_role = client
curl -H "Authorization: Bearer ${ENTERPRISE_API_TOKEN}" \
'https://api.sfox.com/v1/enterprise/users?accountRole=client'
#Retrieve all end users with account_role = advisor
curl -H "Authorization: Bearer ${ENTERPRISE_API_TOKEN}" \
'https://api.sfox.com/v1/enterprise/users?accountRole=advisor'//Retrieve all end users
const axios = require('axios');
const config = {
method: 'get',
url: 'https://api.sfox.com/v1/enterprise/users',
headers: {
'Authorization': `Bearer ${process.env.ENTERPRISE_API_KEY}`
}
}
axios(config)
.then(response => {
console.log(response.status)
console.log(respones.data)
}).catch(err => {
console.error(err.response.status)
console.error(err.response.data)
});
//Retrieve all end users with account_role = client
const axios = require('axios');
const config = {
method: 'get',
url: 'https://api.sfox.com/v1/enterprise/users?accountRole=client',
headers: {
'Authorization': `Bearer ${process.env.ENTERPRISE_API_KEY}`
}
}
axios(config)
.then(response => {
console.log(response.status)
console.log(respones.data)
}).catch(err => {
console.error(err.response.status)
console.error(err.response.data)
});
//Retrieve all end users with account_role = advisor
const axios = require('axios');
const config = {
method: 'get',
url: 'https://api.sfox.com/v1/enterprise/users?accountRole=advisor',
headers: {
'Authorization': `Bearer ${process.env.ENTERPRISE_API_KEY}`
}
}
axios(config)
.then(response => {
console.log(response.status)
console.log(respones.data)
}).catch(err => {
console.error(err.response.status)
console.error(err.response.data)
});Response
Returns a data array of end user objects with the following fields.
Response Fields
account_type
string
The end user's account type.
Possible values: individual, corporation
account_role
string
The end user's role.
Possible values: Client, Advisor
user_id
string
End user's unique ID, defined by you.
advisor_user_id
nullable, string
user_id of the end user's, if applicable.
email
string
Email address of the user.
first_name
string
First name of the user.
last_name
string
Last name of the user.
phone_number
string
Phone number of the user in E.164 format (e.g. +14155552671).
account_purpose string
Primary purpose or use case for the account.
account_purpose_other string
The account purpose free text entry when account_purpose = other.
source_of_funds string
Primary source of end user's funds transferred to their account.
source_of_funds_other string
Source of funds free text entry when source_of_funds = other
id string
This ID is provided by the sFOX system and should be used as a unique ID for this individual in other endpoints.
phone_country_code string
The ISO 3166-1 alpha-2 country code of the phone number.
intermediary_status string
Will the end user be receiving or sending funds on behalf of someone other than themselves.
expected_transfer_volume string
Expected monthly USD notional volume of transfers (sent and received).
expected_trade_volume string
Expected monthly USD notional volume of trading (buys and sells).
individual object
The user's identity information provided during registration.
status
string
Verification status of the user’s sFOX account.
Possible values: PENDING, VERIFIED, UNSUPPORTED
requirements
object
The remaining requirements to complete account verification.
Responses
Last updated