Salesforce Commerce Cloud · Schema
UrlMapping
The URL mapping information for a URL that a shopper clicked or typed in.
CommerceE-CommerceHeadless CommerceSalesforceB2C CommerceB2B CommerceDemandware
Properties
| Name | Type | Description |
|---|---|---|
| resourceType | string | The type of resource that corresponds to the requested URL. If you set up a URL redirect in Business Manager, resourceType returns the corresponding destination type value from the redirect. If there' |
| resourceSubType | string | If the resourceType is CONTENT_ASSET, this field tells you whether the resource is a standard content asset or a Page Designer content asset. This output is available from B2C Commerce version 24.2. |
| resourceId | string | The identifier for the resource that corresponds to the requested URL. If you set up a URL redirect in Business Manager, resourceId returns the corresponding destination ID value from the redirect. If |
| refinements | object | The refinement filters that correspond to the URL and resourceType. Refinements are returned only if all of these conditions are met - a) the resourceType is CATEGORY, b) refinements are included in t |
| statusCode | integer | This field is populated only if you set up a URL redirect in Business Manager. It specifies whether the redirect is temporary (302 or 307) or permanent (301). See [Create a Redirect from a B2C Commerc |
| destinationUrl | string | This field is populated if the urlSegment resolves to a redirect. Specifies the URL you want to redirect to as an absolute or relative URL. The destinationUrl is based on your configuration in Busines |
| copySourceParams | boolean | This field is populated only if you set up a URL redirect in Business Manager. It’s a flag that shows whether the parameters of the source URL have been copied to the destination URL. This parameter i |
| additionalUrlParams | string | This field is populated only if you set up a URL redirect in Business Manager. It returns the parameters you want to add to the end of the URL. This parameter is available from B2C Commerce version 24 |
| productCategoryId | string | This field is populated only if you set up a URL redirect in Business Manager. It identifies the destination product's category ID. This field is returned only when the destination type is product. Th |
| onlineFrom | stringnull | The date and time from which the URL redirect is active. If null, the redirect has no start date constraint. This field is populated only if you set up a URL redirect in Business Manager. This paramet |
| onlineTo | stringnull | The date and time until which the URL redirect is active. If null, the redirect has no end date constraint. This field is populated only if you set up a URL redirect in Business Manager. This paramete |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-url-mapping-schema.json",
"title": "UrlMapping",
"description": "The URL mapping information for a URL that a shopper clicked or typed in.",
"x-generated": "2026-11-25",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/salesforce-commerce-cloud-shopper-seo-api-openapi.yml#/components/schemas/UrlMapping",
"type": "object",
"properties": {
"resourceType": {
"minLength": 1,
"type": "string",
"maxLength": 256,
"description": "The type of resource that corresponds to the requested URL. If you set up a URL redirect in Business Manager, \nresourceType returns the corresponding destination type value from the redirect. If there's a URI redirect, resourceType isn't returned. \nThe URL redirect feature is available from B2C Commerce version 24.3.",
"enum": [
"CATEGORY",
"PRODUCT",
"CONTENT_ASSET"
]
},
"resourceSubType": {
"minLength": 1,
"type": "string",
"maxLength": 256,
"description": "If the resourceType is CONTENT_ASSET, this field tells you whether the resource is a standard content asset or a Page Designer content asset. \nThis output is available from B2C Commerce version 24.2.",
"enum": [
"STANDARD_CONTENT_ASSET",
"PAGE_DESIGNER_CONTENT_ASSET"
]
},
"resourceId": {
"minLength": 1,
"type": "string",
"maxLength": 256,
"description": "The identifier for the resource that corresponds to the requested URL. If you set up a URL redirect in Business Manager, \nresourceId returns the corresponding destination ID value from the redirect. \nIf there's a URI redirect, resourceId isn't returned. The URL redirect feature is available from B2C Commerce version 24.3."
},
"refinements": {
"description": "The refinement filters that correspond to the URL and resourceType. \nRefinements are returned only if all of these conditions are met - a) the resourceType is CATEGORY, b) refinements are included in the urlSegment, and c) the refinements are configured in Business Manager. \nThis field returns a key-value pair of refinement name and refinement value. If there’s a matching URL redirect for the requested URL. the refinements output isn’t returned.\nThe URL redirect feature is available from B2C Commerce version 24.3.",
"type": "object",
"additionalProperties": true
},
"statusCode": {
"format": "int32",
"description": "This field is populated only if you set up a URL redirect in Business Manager. It specifies whether the redirect is temporary (302 or 307) or permanent (301). \nSee [Create a Redirect from a B2C Commerce URL.](https://help.salesforce.com/s/articleView?id=cc.b2c_creating_a_redirect_from_a_digital_url.htm&type=5) \nThis parameter is available from B2C Commerce version 24.3.",
"type": "integer"
},
"destinationUrl": {
"minLength": 1,
"maxLength": 2048,
"description": "This field is populated if the urlSegment resolves to a redirect. Specifies the URL you want to redirect to as an absolute or relative URL. \nThe destinationUrl is based on your configuration in Business Manager. It's either a calculated value indicating the Commerce Cloud object (product, category, or content asset) URL or your specified URL. \nNote that an object's path may not necessarily match your headless storefront URLs but can be used as a reference for calculating the destinationUrl. \nSee [Create a Redirect from a B2C Commerce URL.](https://help.salesforce.com/s/articleView?id=cc.b2c_creating_a_redirect_from_a_digital_url.htm&type=5). \nAvailable from B2C Commerce 24.3.",
"type": "string"
},
"copySourceParams": {
"description": "This field is populated only if you set up a URL redirect in Business Manager. \nIt’s a flag that shows whether the parameters of the source URL have been copied to the destination URL. \nThis parameter is available from B2C Commerce version 24.3.",
"type": "boolean"
},
"additionalUrlParams": {
"minLength": 1,
"maxLength": 2048,
"description": "This field is populated only if you set up a URL redirect in Business Manager. \nIt returns the parameters you want to add to the end of the URL. \nThis parameter is available from B2C Commerce version 24.3.",
"type": "string"
},
"productCategoryId": {
"minLength": 1,
"type": "string",
"maxLength": 256,
"description": "This field is populated only if you set up a URL redirect in Business Manager.\nIt identifies the destination product's category ID. This field is returned only when the destination type is product.\nThis parameter is available from B2C Commerce version 24.3."
},
"onlineFrom": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "The date and time from which the URL redirect is active. If null, the redirect has no start date constraint.\nThis field is populated only if you set up a URL redirect in Business Manager.\nThis parameter is available from B2C Commerce version 26.8."
},
"onlineTo": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "The date and time until which the URL redirect is active. If null, the redirect has no end date constraint.\nThis field is populated only if you set up a URL redirect in Business Manager.\nThis parameter is available from B2C Commerce version 26.8."
}
}
}
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/salesforce-commerce-cloud-url-mapping"
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.