Retrieves the user's own profile as requested by the user.
Profile retrieved.
id | string <= 50 characters ID of the user. |
string <email> <= 100 characters Email address of the user. | |
firstName | string User's first name. |
lastName | string User's last name. |
businessPhone | string User's business phone number. |
mobilePhone | string User's mobile phone number. |
Array of objects (Membership) Organization memberships. | |
Array | |
availableCurrencies | Array of strings Array of reporting currencies that are enabled for the merchant. |
reportingCurrency | string User's currency code in ISO 4217 format. This value is used for reports. |
totpRequired | boolean Deprecated Specifies if two-factor authentification is enabled for the user. |
totpSecret | string Deprecated User's Time-based One-Time Password (TOTP) key for the authentification application, if TOTP is enabled. |
totpUrl | string <url> Deprecated QR-code link that redirects the user to the authentification application, if TOTP is enabled. |
oneTimePassword | string^[0-9]{6}$ Deprecated One-time password generated by Google Authenticator. This value is required when enabling or disabling 2FA. This field must use digits only. |
country | string User's country of residence in ISO 3166 alpha-2 country code. For examples, see ISO.org. |
preferences | object User preferences, such as: timezone, language, and more. This is an object with custom properties. |
hasPermissionsEmulation | boolean Specifies if the current user session has permissions emulation enabled. |
displayName | string User's full display name. |
hash | string Unique hash value that represents the user. |
Unauthorized access. Invalid credentials used.
Access forbidden.
Resource not found.
const profile = await api.profile.get(); console.log(profile.fields.email);
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "email": "user@example.com",
- "firstName": "string",
- "lastName": "string",
- "businessPhone": "string",
- "mobilePhone": "string",
- "memberships": [
- {
- "organization": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "name": "string",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z"
}, - "user": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "name": "string"
}, - "allowedIps": [
- "153.12.32.33",
- "201.54.122.0/24",
- "76.*.*.*",
- "2001:0db8:abcd:0012:0000:0000:0000:ffff",
- "2001:db8:abcd:12::0/64"
], - "permissions": [
- "PostFile",
- "StorefrontGetAccount",
- "StorefrontGetWebsite",
- "StorefrontGetKycDocumentCollection",
- "StorefrontGetKycDocument",
- "StorefrontPostKycDocument"
], - "isOwner": true,
- "isDefault": true,
- "roleIds": [
- "string"
], - "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}
], - "availableCurrencies": [
- "string"
], - "reportingCurrency": "string",
- "totpRequired": true,
- "totpSecret": "string",
- "totpUrl": "string",
- "oneTimePassword": "123456",
- "country": "string",
- "preferences": { },
- "hasPermissionsEmulation": true,
- "displayName": "string",
- "hash": "string"
}