Retrieving User Information

There may be times you wish to retrieve information for a specific account. Using the Tilia Pay account ID, you can check details such as the user's registered email address and the account's block status.

The Account ID is returned during user registration. We recommend storing this in your system and associating it with your user's account. Refer to Registering Users for more information.

To retrieve user information

Retrieving user information requires an API token with the scope search_accounts.

To fetch user information, submit a GET request with the account_id to the /user-info endpoint.

curl --location --request GET https://accounts.tilia-inc.com/v1/{account_id}/user-info \
--header 'Authorization: Bearer <Access_Token>' \
--header 'Content-Type: application/json' \

Sample response

Copy
Copied
{
    "status": "Success",
    "message": [],
    "codes": [],
    "payload": {
        "account_id": "ebcbc9c4-7c1b-47df-9ec4-1bcfa48e0344",
        "username": "jessica.pley@gmail.com",
        "email": "jessica.pley@gmail.com",
        "is_blocked": false,
        "integrator": "acme",
        "created": "2020-07-03T01:05:59.49468Z"
    }
}