{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["openapiLink","admonition"]},"type":"markdown"},"seo":{"title":"Tutorial: Manage new user accounts","description":"Tilia Wallet Developer Documentation","siteUrl":"https://thunes-tilia-docs.redocly.app/","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"tutorial-manage-new-user-accounts","__idx":0},"children":["Tutorial: Manage new user accounts"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This tutorial demonstrates how to create and locate user accounts."," ","It also creates or recalls the user account IDs that the tutorials use to demonstrate other Tilia services."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Allow about 15 minutes to complete this tutorial."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"api-operations-in-this-tutorial","__idx":1},"children":["API operations in this tutorial"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Tutorial interaction"},"children":["Tutorial interaction"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"API operation used"},"children":["API operation used"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Scope"},"children":["Scope"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Environment variables initialized"},"children":["Environment variables initialized"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"#create-new-users"},"children":["Create new users"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"OpenapiLink","attributes":{"link":"accounts/openapi/other/registeraccounthandlerfor","text":"Register account"},"children":[]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["write_registrations"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payers_account_id"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"code","attributes":{},"children":["recipients_account_id"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"code","attributes":{},"children":["creators_account_id"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"#recall-existing-users"},"children":["Recall existing users"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"OpenapiLink","attributes":{"link":"accounts/openapi/other/searchuserinfo","text":"Search by username"},"children":[]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["search_accounts"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payers_account_id"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"code","attributes":{},"children":["recipients_account_id"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"code","attributes":{},"children":["creators_account_id"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This tutorial uses the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["_Manage user accounts"]}," collection from the"," ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://www.postman.com/tilia-docs-testing/workspace/get-started-using-tilia-services/overview"},"children":["shared workspace"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To complete this tutorial successfully:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Make sure the software described in ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/tutorials/tutorial_get_started"},"children":["Get started with the tutorials"]}," ","has been installed on your system and configured."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In Postman:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Open the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Tilia tutorial workspace"]}," you created in ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/tutorials/tutorial_get_started"},"children":["Get started with the tutorials"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Make sure you have the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["_Manage user accounts"]}," collection forked to your ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Tilia tutorial workspace"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Make sure that you've selected the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Tilia Client Info"]}," environment and confirmed that it has:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your Tilia developer credentials."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The usernames and email addresses for your users: payer, recipient,"," ","and creator, if you're creating new users; or usernames for your users if you are recalling existing accounts."]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In your ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Tilia tutorial workspace"]},", open the list of ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Collections"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the list of ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Collections"]},", expand the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["_Manage user accounts"]}," collection."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If it's been more than an hour since you last got an access token for this collection,"," ","get a new one as described in ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"#"},"children":["Tutorial: User accounts overview"]},","," ","and then return to continue here."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"create-new-users","__idx":2},"children":["Create new users"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This exercise creates new user accounts for the users described in the environment variables."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["These requests create new user accounts and are found in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["_Manage user accounts"]}," collection,"," ","in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create new users"]}," folder:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add payer's user account"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add recipient's user account"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add creator's user account"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The requests are identical with the exception of the request body, which is specific to the user being added."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note about the payer"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your payer can use regular payment methods in their Tilia transactions, or the payer"," ","can use an ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/guides/external-payment-platforms"},"children":["external payment platform"]},"."," ","You must decide which, at the time you create their user account."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If your payer is using:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Regular payment methods"]},", continue in this exercise and skip"," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create payer from an external platform"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["An external payment platform"]},", use this exercise to create only the recipient and creator accounts,"," ","and then skip to ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"#create-the-payers-account-from-an-external-payment-platform"},"children":["Create the payer's account from an external payment platform"]}," ","and continue on from there."]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Repeat this procedure for each user account to add."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["For each user account to add, in Postman:"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["_Manage user accounts"]}," collection, in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create new users"]}," folder, open the request to add the user,"," ","and then choose the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Body"]}," tab."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the request ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Body"]}," tab, shown here, notice that the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["username"]}," and"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email.address"]}," properties use the environment variables"," ","you edited when getting started."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"username\": \"{{users_username}}\",\n    \"email\": { \n        \"address\": \"{{users_email}}\"\n    }\n}\n","lang":"json"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Choose ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Send"]}," to create a new user account."," ","A typical response body looks like the following."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"status\": \"Success\",\n   \"message\":[],\n   \"codes\":[],\n   \"payload\": {\n        \"account_id\": \"acct_2ZB8jw5SS0NATzMDvn7NcG4XtVT\",\n        \"username\": \"user_602\"\n    }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If successful, the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Current value"]}," of the user's account ID environment variable"," ","is updated with the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["account_id"]}," from the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payload"]}," of the response body."]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"create-the-payers-account-from-an-external-payment-platform","__idx":3},"children":["Create the payer's account from an external payment platform"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This exercise demonstrates how to add a user account for the payer when the payer is a user from one"," ","of Tilia's supported external payment platforms."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tilia can collect funds from external payment platforms to use in Tilia transactions."," ","This gives your users access to Tilia transactions from apps that must process payments through a vendor's app store."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Such user accounts must provide the user account information from the external payment platform when"," ","their Tilia user account is created."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The account created by this exercise replaces any existing payer account in the Postman environment."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["To create the payer's account from an external payment platform:"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["_Manage user accounts"]}," collection, in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Payer from external platform"]}," folder,"," ","open the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add payer from external platform"]}," request, and then choose the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Body"]}," tab."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the request ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Body"]}," tab, shown here, notice that the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["username"]}," and"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_platforms"]}," properties use the environment variables"," ","you edited when getting started."," ","Also notice that instead of an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]},", the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["external_platforms"]}," property is used to identify the user."," ","For this exercise, the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payers_email"]}," is used as the user's ID in the external payment platform."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"username\": \"{{payers_username}}\",\n    \"external_platforms\": {\n        \"apple\": {\n            \"user_id\": \"{{payers_email}}\"\n        }\n    }\n}\n","lang":"json"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Choose ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Send"]}," to create a new user account."," ","A typical response body looks like the following."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"status\": \"Success\",\n   \"message\":[],\n   \"codes\":[],\n   \"payload\": {\n        \"account_id\": \"acct_2ZB8jw5SS0NATzMDvn7NcG4XtVT\",\n        \"username\": \"user_602\"\n    }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If successful, the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Current value"]}," of the user's account ID environment variable"," ","is updated with the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["account_id"]}," from the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payload"]}," of the response body."]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The payer already has a payment method defined that uses the external payment platform."," ","With this, you can skip to the"," ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/tutorials/user-accounts/tutorial_user_buy_tokens#get-payers-payment-methods"},"children":["Get payer's payment method"]}," procedure and"," ","run the procedure for payers from external platforms."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"recall-existing-users","__idx":4},"children":["Recall existing users"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This exercise recalls existing user accounts whose usernames are described in the environment variables."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you just added the users in the previous exercise, this exercise is not required."," ","However, you still run it to see how the ",{"$$mdtype":"Tag","name":"OpenapiLink","attributes":{"link":"accounts/openapi/other/searchuserinfo","text":"Search by username"},"children":[]}," operation"," ","works without any problems."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["These requests search for existing user accounts by looking up the username, and are"," ","found in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["_Manage user accounts"]}," collection, in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Recall existing users"]}," folder."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Recall payer's user account"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Recall recipient's user account"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Recall creator's user account"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Each request is identical to the other, with the exception of the username parameter,"," ","which is specific to the user being recalled."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Repeat this procedure for each user request in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Recall existing users"]}," folder."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["For each existing user to look up by using the user's username, in Postman:"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["_Manage user accounts"]}," collection, in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Recall existing users"]}," folder, open the request to add the user,"," ","and then choose the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Params"]}," tab."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Params"]}," tab, notice that the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["username"]}," parameter uses the environment variable with the user's username."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the request, choose ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Send"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After the response returns, below the request, open the response ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Body"]}," tab to review details of the response body."]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A typical response body looks like the following."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"status\": \"Success\",\n    \"message\": [],\n    \"codes\": [],\n    \"payload\": {\n        \"account_id\": \"acct_2ZB8jw5SS0NATzMDvn7NcG4XtVT\",\n        \"username\": \"payer_602\",\n        \"email\": \"payer_602@example.com\",\n        \"is_blocked\": false,\n        \"blocked_capabilities\": {},\n        \"integrator\": \"tilia-test\",\n        \"tags\": [],\n        \"created\": \"2023-12-06T17:37:30.68692Z\"\n    }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If successful, a script runs after the response returns to save the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["account_id"]}," in"," ","the user's account ID environment variable."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A status of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["404"]}," and a response body similar to this one means that an account wasn't found"," ","with the username you entered in the environment variables for that user."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"status\": \"Failure\",\n    \"message\": [\n        \"failed to get account\"\n    ],\n    \"codes\": [\n        \"ACCOUNT_GET_ERROR\"\n    ],\n    \"payload\": null\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To correct this, correct the username in the environment variables or"," ","create a new user."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next-steps","__idx":5},"children":["Next steps"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To get information about a user's account when you already have their account ID,"," ","the ",{"$$mdtype":"Tag","name":"OpenapiLink","attributes":{"link":"accounts/openapi/other/getuserinfo","text":"Get account profile"},"children":[]}," operation"," ","returns the same payload as the ",{"$$mdtype":"Tag","name":"OpenapiLink","attributes":{"link":"accounts/openapi/other/searchuserinfo","text":"Search by username"},"children":[]}," operation."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["With the user accounts initialized, your next step is ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/tutorials/user-accounts/tutorial_user_buy_tokens"},"children":["Buy tokens"]}," ","so the payer has tokens to use in future transactions."]}]},"headings":[{"value":"Tutorial: Manage new user accounts","id":"tutorial-manage-new-user-accounts","depth":1},{"value":"API operations in this tutorial","id":"api-operations-in-this-tutorial","depth":3},{"value":"Create new users","id":"create-new-users","depth":2},{"value":"Create the payer's account from an external payment platform","id":"create-the-payers-account-from-an-external-payment-platform","depth":2},{"value":"Recall existing users","id":"recall-existing-users","depth":2},{"value":"Next steps","id":"next-steps","depth":2}],"frontmatter":{"seo":{"title":"Tutorial: Manage new user accounts"}},"lastModified":"2026-02-05T18:12:30.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/tutorials/user-accounts/tutorial_user_new_users","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}