When you log in as an individual user (either a shopper or an internal user such as admin), there is no application key, so you must instead supply the user login and password in the body of the request. The following example illustrates logging in as a shopper on the storefront server:

POST /ccstore/v1/login HTTP/1.1
Content-Type: application/x-www-form-urlencoded

grant_type=password&username=johndoe@example.com&password=g4dEj3w1

The following example shows the server’s JSON response, which includes the access token to be used in subsequent requests:

{
"access_token": "<access_token>",
"token_type": "bearer"
}

Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices