Set Up Postman, Import the Files, and Get the Token

You've configured your environment file and set up a connected app. The next task is to set up Postman and use it to get the session token from the org.

  1. Go to www.postman.com/downloads.

  2. Click Try the Web Version.

  3. Enter an Email, Username, and Password, then click Create free account.

  4. Type your name, then click Continue twice.

  5. From the Home page, click Create New, then click HTTP Request.

  6. Click Import, drag your collection file into the Import window, and click Import in the window.

  7. Click Import, drag your environment file into the Import window, and click Import in the window.

  8. Click Collections, expand Vlocity Digital Commerce APIs Collection, and click SFDC OAuth Username Password.

  9. Change No Environment to the name of the environment you uploaded.

  10. Click Send. The response looks something like this:

Note: If you create your org in Summer ’23 or later, the OAuth 2.0 username-password flow is blocked by default. To enable the username-password flow, from Setup, select OAuth and OpenID Connect Settings, and select Allow OAuth Username-Password Flows.

  1. Save the access_token value for use in a subsequent task. Use the access_token for the session locally.

Make Sure Your IDE Is Configured for Java