Add the #DF24 Developer Keynote to your agenda. Join us in-person on 9/19 at 2:30 p.m. PT or on Salesforce+ at 5 p.m. PT for the must-see session built just for developers.

Retrieve OAuth Authorization

When the preceding steps are complete, run the SFDC OAuth Username Password API from the API collection. This step must be performed every time you start a new session or when the token expires.

The API executes a script that auto-populates a unique session token {{InitAccessToken}} in the environment variable. After executing, each call uses the token. If the token expires, simply rerun the API call.

To run the SFDC OAuth Username Password API:

  1. If necessary, start Postman on your computer.

  2. If necessary, load the Digital Commerce APIs collection.

  3. Select SFDC OAuth Username Password and click Send.