Before you begin
- Ensure that the user is signed into the store with appropriate seller permissions.
Get the authentication realm for accounts.
For more information, see the Get Account Authentication Settings section.
Add an OpenID Connect Profile to the account realm.
Additionally, you might have to modify other settings, such as set a redirect link. 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.
Only the users registered to the authentication realm can be registered as account members. User must log in using the OpenID Connect Profile that you created in the step 2 to register a user to the authentication realm. After the registration, you can add 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 an existing user to the account membership.
For more information, see the Create an Account Membership section.
After setting a user as an account member through an account and an account membership, the user can shop on behalf of the account.
Buy on behalf of an account
Log in through OpenID Connect.
The authorization code is saved and passed to the Account Member Authentication API.
From the list of accounts, select an account to use.
You can use the
account-management-authentication-tokento 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.