Welcome to Albato Help

Method for Getting a User Profile


IN THIS ARTICLE

This method retrieves the profile parameters of an existing user.

 

Authorization

Call this method with the partner's master account token.

 

Request

POST https://api.albato.com/wl/partner-name/get-user-profile?expand=transactions

Where partner-name is your company name (partner name) in Albato.

 

Request Parameters

  • id — An alphanumeric user ID that the partner passes when creating a new user. In most cases, this is the user’s nickname, the part of the email address before @your-domain (for example, john.smith from john.smith@your-domain). Use the same value consistently and insert it into the id field.
 

Response Parameters

  • success — Request success indicator. Available values: true or false
  • data.id — An existing user's ID (in Albato)
  • data.email — An existing user's email
  • data.language — An existing user's interface language
  • data.timezoneOffset — An existing user's time zone
  • data.planId – An existing user's plan ID; returned only if billing plans are enabled
  • data.trxLimit – Remaining user transaction limit; returned only if billing plans are enabled
 

Request Example Using curl

curl --header "Content-type: application/json"
--header "Accept: application/json"
--header "Authorization: Basic cEFJjGffUSkV6WFFyWUhBM1RzS2hRHg7iKgReghUiijBfrdTY6"
--request POST
--data '{"id":"test"}'
"https://api.albato.com/wl/partner-name/get-user-profile?expand=transactions"

 

Response Example

Billing plans are enabled in this example. All user data is sample data.

{
    "success": true,
    "data": {
        "id": 1357,
        "workspaceId": 1357,
        "email": "test@example.com",
        "language": "pl",
        "country": "pl",
        "timezoneOffset": 120,
        "groupId": null,
        "sessionToken": null,
        "sessionTokenValidUntil": null,
        "permanentToken": null,
        "planId": 1423,
        "trxLimit": 10000,
        "externalPlanId": null
    }
}

Did this answer your question?