For the complete documentation index, see llms.txt. This page is also available as Markdown.

Access Tokens

Request OAuth 2.0 access tokens from ESW STS using client credentials. Includes required parameters, token endpoint, and code examples

Request OAuth 2.0 access tokens from the ESW Security Token Service (STS).

Most integrations use:

  • grant_type=client_credentials

  • one or more space-separated scope values

Token endpoint

spinner

Parameters

Include these fields in the request body:

  • grant_type: OAuth 2.0 grant type. Use client_credentials.

  • scope: Space-separated scopes. Example: checkout.preorder.api.all, pricing.advisor.api.all

  • client_id: Client identifier provided by ESW.

  • client_secret: Client secret provided by ESW.

Examples

curl --location --request POST "https://security-sts.<environment>.eshopworld.com/connect/token" \
  --header "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "grant_type=client_credentials" \
  --data-urlencode "scope=<space-separated-scopes>" \
  --data-urlencode "client_id=<client_id>" \
  --data-urlencode "client_secret=<client_secret>"

See the Postman collection for working sandbox examples.

Access Token Response

STS returns the access token and the token type (usually Bearer).

Use the token

Send the token on API requests:

For the full flow, see Authentication.

Last updated

Was this helpful?