Skip to content

How to configure Postman to use iCommerce API

Hieu Ngo edited this page Jul 7, 2020 · 1 revision
  • Access iCommerce API Documentation
  • Click "Run in Postman" to import Postman Collection to your Postman on your local machine.
  • Right click to "iCommerce" in your Collections and choose Edit.
  • Choose Authorization tab, choose OAuth 2.0 for Type and click Get New Access Token.
  • In the new dialog, input following:

Postman Config

 - Callback URL: http://localhost:8080/
 - Auth URL: https://dev-773085.okta.com/oauth2/default/v1/authorize
 - Access Token URL: https://dev-773085.okta.com/oauth2/default/v1/token
 - Client ID: 0oajcrkz7RBysKlr84x6
 - Client Secret: mxpwz_sbeVcAcKpYBv0O0u1T1_AdITHCT0oZYboQ
 - Scope: openid
 - State: 123456
 - Client Authentication: Send client credentials in body
  • Click Request Token, enter credentials (we provided 2 demo users in <username>: <password> format):
    • captain@avengers.com: Ic123456
    • thor@avengers.com: Ic123456
  • After you successfully signed in, you will get Access Token, then click Use Token in Postman.
  • Now you could use all prepared request in iCommerce Collection to use iCommerce API.
Clone this wiki locally