Adding Accounts and Account Members
Before you begin
Ensure that the user is signed into the store with appropriate seller permissions.
Procedure
Get the authentication realm for accounts.
For more information, see the Get Account Authentication Settings section.
To specify the login process for users, add a profile to the account realm.
You can choose to set up a Password Profile or an OpenID Connect Profile. However, you might have to modify other settings, such as redirect link settings, to use an OpenID Connect Profile. For more information, see the Create an OpenID Connect Profile section.
Create one or more accounts.
For more information, see the Create an Account section.
Register account members.
Seller admin can register users to an the account realm by following the instructions in the Creating a User Authentication Info section. After creating the user authentication info, seller admin can associate the user to a login profile by following the instructions in one of the following sections:
- Create a User Authentication OpenID Connect Profile Info
- Create a User Authentication Password Profile
noteAfter the registration, you can view the user as an account member through the account member APIs. For more information, see the Account Members section.
Get the ID of the account member to add to the account using the Get All Account Members API endpoint.
Add the selected account member to the account membership.
For more information, see the Create an Account Membership section.
After an account member is listed in an account membership, the user can shop on behalf of the account.
Buy on behalf of an account
Authenticate the account member using the selected profile.
Authenticate an account member by following the instructions in one of the following sections:
- Account member authentication API using OpenID Connect section for OpenID Connect Profiles.
- Account member authentication API using username and password section for password profiles.
From the list of accounts, select an account to use.
You can use the
account-management-authentication-token
to check out on behalf of an account.From the store, select products and add to the cart.
Checkout the cart and make the payment on behalf of the account.
For more information, see the Account Checkout section.
Sellers can use the buyer account ID and account member ID to search and filter the completed orders.