Demandware · Schema
TokenResponse
CompanyCommerceE-CommerceRetailCommerce CloudStorefrontShopperCatalogOrderSoftware-as-a-ServiceSalesforce
Properties
| Name | Type | Description |
|---|---|---|
| access_token | string | Short term shopper JWT that can be used to access Shopper APIs. Valid for 30 minutes. A trusted agent shopper JWT is valid for 15 min. |
| id_token | string | User ID token. Valid for 30 minutes. |
| refresh_token | string | Long term refresh token that can be used to refresh an access token. Valid for 30 days. The refresh_token will not be returned for trusted agents JWTs. A JWT for trusted agents expires after 15 minute |
| expires_in | integer | Remaining access token expiry time, in seconds. |
| refresh_token_expires_in | number | Remaining refresh token expiry time, in seconds. |
| token_type | object | |
| usid | string | The unique shopper ID. Returned when using the `client_credentials` grant type. |
| customer_id | string | Customer's ID |
| enc_user_id | string | MD5 Hashed B2C Commerce user ID in uppercase. |
| idp_access_token | string | This is the access token that is returned from the IDP. The IDP access token is returned to be able to make calls into the IDP outside of SLAS. |
| idp_refresh_token | string | This is the refresh token that is returned from the IDP. The IDP refresh token is returned to be able to make calls into the IDP outside of SLAS. |
| dnt | string | Do not track |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/demandware/json-schema/demandware-token-response-schema.json",
"title": "TokenResponse",
"x-generated": "2026-11-25",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/demandware-auth-v1-openapi.yml#/components/schemas/TokenResponse",
"required": [
"access_token",
"customer_id",
"enc_user_id",
"expires_in",
"id_token",
"idp_access_token",
"refresh_token",
"refresh_token_expires_in",
"token_type",
"usid"
],
"type": "object",
"properties": {
"access_token": {
"type": "string",
"description": "Short term shopper JWT that can be used to access Shopper APIs. Valid for 30 minutes.\n\nA trusted agent shopper JWT is valid for 15 min."
},
"id_token": {
"type": "string",
"description": "User ID token. Valid for 30 minutes."
},
"refresh_token": {
"type": "string",
"description": "Long term refresh token that can be used to refresh an access token. Valid for 30 days. \n\nThe refresh_token will not be returned for trusted agents JWTs. A JWT for trusted agents expires after 15 minutes and is not refreshable. When expired, then app must restart the authorization flow and make another request to the /trusted-agent/authorize endpoint."
},
"expires_in": {
"type": "integer",
"description": "Remaining access token expiry time, in seconds."
},
"refresh_token_expires_in": {
"type": "number",
"description": "Remaining refresh token expiry time, in seconds."
},
"token_type": {
"$ref": "#/$defs/TokenType"
},
"usid": {
"type": "string",
"description": "The unique shopper ID. Returned when using the `client_credentials` grant type."
},
"customer_id": {
"type": "string",
"description": "Customer's ID"
},
"enc_user_id": {
"type": "string",
"description": "MD5 Hashed B2C Commerce user ID in uppercase."
},
"idp_access_token": {
"maxLength": 8192,
"type": "string",
"description": "This is the access token that is returned from the IDP. The IDP access token is returned to be able to make calls into the IDP outside of SLAS."
},
"idp_refresh_token": {
"maxLength": 128,
"type": "string",
"description": "This is the refresh token that is returned from the IDP. The IDP refresh token is returned to be able to make calls into the IDP outside of SLAS."
},
"dnt": {
"maxLength": 5,
"type": "string",
"description": "Do not track"
}
},
"$defs": {
"TokenType": {
"type": "string",
"description": "Token Type",
"enum": [
"Bearer"
]
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/demandware-token-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.