@salesforce/b2c-tooling-sdk 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/guides/enrichment.json +291 -0
- package/data/guides/index.json +426 -37
- package/data/schemas/dw.schema.json +590 -0
- package/data/tooling/index.json +18 -9
- package/dist/esm/cli/base-command.d.ts +20 -1
- package/dist/esm/cli/base-command.js +61 -11
- package/dist/esm/cli/base-command.js.map +1 -1
- package/dist/esm/cli/cartridge-command.js +2 -1
- package/dist/esm/cli/cartridge-command.js.map +1 -1
- package/dist/esm/cli/command-search.d.ts +85 -0
- package/dist/esm/cli/command-search.js +147 -0
- package/dist/esm/cli/command-search.js.map +1 -0
- package/dist/esm/cli/config.d.ts +10 -1
- package/dist/esm/cli/config.js +18 -9
- package/dist/esm/cli/config.js.map +1 -1
- package/dist/esm/cli/hooks.d.ts +13 -0
- package/dist/esm/cli/hooks.js +11 -0
- package/dist/esm/cli/hooks.js.map +1 -1
- package/dist/esm/cli/index.d.ts +2 -0
- package/dist/esm/cli/index.js +2 -0
- package/dist/esm/cli/index.js.map +1 -1
- package/dist/esm/cli/instance-command.d.ts +1 -0
- package/dist/esm/cli/instance-command.js +2 -1
- package/dist/esm/cli/instance-command.js.map +1 -1
- package/dist/esm/cli/mrt-command.d.ts +3 -2
- package/dist/esm/cli/mrt-command.js +4 -4
- package/dist/esm/cli/mrt-command.js.map +1 -1
- package/dist/esm/cli/oauth-command.d.ts +1 -0
- package/dist/esm/cli/ods-command.d.ts +1 -0
- package/dist/esm/cli/webdav-command.d.ts +1 -0
- package/dist/esm/clients/custom-apis.d.ts +36 -2
- package/dist/esm/clients/custom-apis.js +57 -4
- package/dist/esm/clients/custom-apis.js.map +1 -1
- package/dist/esm/clients/index.d.ts +1 -1
- package/dist/esm/clients/index.js +1 -1
- package/dist/esm/clients/index.js.map +1 -1
- package/dist/esm/clients/scapi-backend-utils.d.ts +15 -0
- package/dist/esm/clients/scapi-backend-utils.js +28 -1
- package/dist/esm/clients/scapi-backend-utils.js.map +1 -1
- package/dist/esm/clients/scapi-fallback-backend.js +2 -2
- package/dist/esm/clients/scapi-fallback-backend.js.map +1 -1
- package/dist/esm/clients/scapi-schemas.generated.d.ts +2 -2
- package/dist/esm/compat/dispatcher.js +2 -2
- package/dist/esm/compat/dispatcher.js.map +1 -1
- package/dist/esm/config/config-origins.d.ts +19 -0
- package/dist/esm/config/config-origins.js +11 -0
- package/dist/esm/config/config-origins.js.map +1 -0
- package/dist/esm/config/config-write.d.ts +86 -0
- package/dist/esm/config/config-write.js +296 -0
- package/dist/esm/config/config-write.js.map +1 -0
- package/dist/esm/config/dw-json-schema.d.ts +14 -0
- package/dist/esm/config/dw-json-schema.js +269 -0
- package/dist/esm/config/dw-json-schema.js.map +1 -0
- package/dist/esm/config/dw-json.d.ts +2 -0
- package/dist/esm/config/dw-json.js +10 -6
- package/dist/esm/config/dw-json.js.map +1 -1
- package/dist/esm/config/index.d.ts +13 -4
- package/dist/esm/config/index.js +8 -3
- package/dist/esm/config/index.js.map +1 -1
- package/dist/esm/config/instance-manager.d.ts +64 -28
- package/dist/esm/config/instance-manager.js +145 -63
- package/dist/esm/config/instance-manager.js.map +1 -1
- package/dist/esm/config/mapping.d.ts +5 -0
- package/dist/esm/config/mapping.js +20 -1
- package/dist/esm/config/mapping.js.map +1 -1
- package/dist/esm/config/project-environment.d.ts +62 -0
- package/dist/esm/config/project-environment.js +113 -0
- package/dist/esm/config/project-environment.js.map +1 -1
- package/dist/esm/config/resolver.d.ts +22 -0
- package/dist/esm/config/resolver.js +106 -37
- package/dist/esm/config/resolver.js.map +1 -1
- package/dist/esm/config/sources/dw-json-source.d.ts +9 -1
- package/dist/esm/config/sources/dw-json-source.js +59 -23
- package/dist/esm/config/sources/dw-json-source.js.map +1 -1
- package/dist/esm/config/sources/env-source.d.ts +70 -9
- package/dist/esm/config/sources/env-source.js +205 -47
- package/dist/esm/config/sources/env-source.js.map +1 -1
- package/dist/esm/config/sources/index.d.ts +1 -1
- package/dist/esm/config/sources/index.js +1 -1
- package/dist/esm/config/sources/index.js.map +1 -1
- package/dist/esm/config/types.d.ts +53 -3
- package/dist/esm/docs/search.js +3 -1
- package/dist/esm/docs/search.js.map +1 -1
- package/dist/esm/docs/types.d.ts +3 -1
- package/dist/esm/guidance/bundle.d.ts +33 -0
- package/dist/esm/guidance/bundle.js +268 -0
- package/dist/esm/guidance/bundle.js.map +1 -0
- package/dist/esm/guidance/catalog.d.ts +8 -1
- package/dist/esm/guidance/catalog.js +48 -6
- package/dist/esm/guidance/catalog.js.map +1 -1
- package/dist/esm/guidance/index.d.ts +1 -0
- package/dist/esm/guidance/index.js +1 -0
- package/dist/esm/guidance/index.js.map +1 -1
- package/dist/esm/guidance/types.d.ts +17 -1
- package/dist/esm/guidance/types.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/operations/jobs/run-system-job.js +2 -2
- package/dist/esm/operations/jobs/run-system-job.js.map +1 -1
- package/dist/esm/plugins/discovery.js +2 -1
- package/dist/esm/plugins/discovery.js.map +1 -1
- package/dist/esm/scapi/catalog.d.ts +5 -2
- package/dist/esm/scapi/catalog.js.map +1 -1
- package/dist/esm/scapi/index.d.ts +6 -2
- package/dist/esm/scapi/index.js +4 -2
- package/dist/esm/scapi/index.js.map +1 -1
- package/dist/esm/scapi/live.d.ts +14 -3
- package/dist/esm/scapi/live.js +33 -5
- package/dist/esm/scapi/live.js.map +1 -1
- package/dist/esm/scapi/local.d.ts +26 -0
- package/dist/esm/scapi/local.js +143 -0
- package/dist/esm/scapi/local.js.map +1 -0
- package/dist/esm/scapi/request.d.ts +2 -2
- package/dist/esm/scapi/request.js +4 -2
- package/dist/esm/scapi/request.js.map +1 -1
- package/dist/esm/scapi/runtime.d.ts +5 -0
- package/dist/esm/scapi/runtime.js.map +1 -1
- package/dist/esm/scapi/schema-source.d.ts +90 -0
- package/dist/esm/scapi/schema-source.js +146 -0
- package/dist/esm/scapi/schema-source.js.map +1 -0
- package/dist/esm/scapi/worker-source.js +31 -7
- package/dist/esm/scapi/worker-source.js.map +1 -1
- package/dist/esm/telemetry/telemetry.d.ts +1 -0
- package/dist/esm/telemetry/telemetry.js +18 -1
- package/dist/esm/telemetry/telemetry.js.map +1 -1
- package/dist/esm/telemetry/types.d.ts +9 -0
- package/dist/esm/test-utils/config-isolation.js +21 -15
- package/dist/esm/test-utils/config-isolation.js.map +1 -1
- package/dist/esm/ux/agent-context.d.ts +69 -0
- package/dist/esm/ux/agent-context.js +133 -0
- package/dist/esm/ux/agent-context.js.map +1 -0
- package/dist/esm/ux/confirm.d.ts +27 -0
- package/dist/esm/ux/confirm.js +32 -0
- package/dist/esm/ux/confirm.js.map +1 -1
- package/dist/esm/ux/index.d.ts +2 -1
- package/dist/esm/ux/index.js +2 -1
- package/dist/esm/ux/index.js.map +1 -1
- package/node_modules/@salesforce/b2c-api-schemas/manifest.json +83 -42
- package/node_modules/@salesforce/b2c-api-schemas/package.json +1 -1
- package/node_modules/@salesforce/b2c-api-schemas/scapi/cdn/zones/v1.json +6798 -238
- package/node_modules/@salesforce/b2c-api-schemas/scapi/checkout/orders/v1.json +2296 -205
- package/node_modules/@salesforce/b2c-api-schemas/scapi/checkout/shopper-baskets/v1.json +5571 -666
- package/node_modules/@salesforce/b2c-api-schemas/scapi/checkout/shopper-baskets/v2.json +6062 -371
- package/node_modules/@salesforce/b2c-api-schemas/scapi/checkout/shopper-orders/v1.json +3426 -360
- package/node_modules/@salesforce/b2c-api-schemas/scapi/checkout/shopper-payments/v1.json +351 -99
- package/node_modules/@salesforce/b2c-api-schemas/scapi/configuration/cors/v1.json +172 -12
- package/node_modules/@salesforce/b2c-api-schemas/scapi/configuration/preferences/v1.json +1497 -111
- package/node_modules/@salesforce/b2c-api-schemas/scapi/configuration/shopper-configurations/v1.json +202 -36
- package/node_modules/@salesforce/b2c-api-schemas/scapi/configuration/timeouts/v1.json +79 -10
- package/node_modules/@salesforce/b2c-api-schemas/scapi/custom-object/custom-objects/v1.json +785 -49
- package/node_modules/@salesforce/b2c-api-schemas/scapi/custom-object/shopper-custom-objects/v1.json +191 -40
- package/node_modules/@salesforce/b2c-api-schemas/scapi/customer/customers/v1.json +1483 -107
- package/node_modules/@salesforce/b2c-api-schemas/scapi/customer/shopper-customers/v1.json +4854 -787
- package/node_modules/@salesforce/b2c-api-schemas/scapi/dx/custom-apis/v1.json +119 -15
- package/node_modules/@salesforce/b2c-api-schemas/scapi/dx/object-definitions/v1.json +1699 -80
- package/node_modules/@salesforce/b2c-api-schemas/scapi/dx/scapi-schemas/v1.json +252 -18
- package/node_modules/@salesforce/b2c-api-schemas/scapi/dx/scripts/v1.json +329 -23
- package/node_modules/@salesforce/b2c-api-schemas/scapi/experience/experiences/v1.json +4208 -234
- package/node_modules/@salesforce/b2c-api-schemas/scapi/experience/shopper-experience/v1.json +1591 -247
- package/node_modules/@salesforce/b2c-api-schemas/scapi/intelligence/analytics/v1.json +396 -8
- package/node_modules/@salesforce/b2c-api-schemas/scapi/inventory/availability/v1.json +1242 -69
- package/node_modules/@salesforce/b2c-api-schemas/scapi/inventory/impex/v1.json +2354 -248
- package/node_modules/@salesforce/b2c-api-schemas/scapi/inventory/reservation/v1.json +1550 -45
- package/node_modules/@salesforce/b2c-api-schemas/scapi/inventory/segmentation/v1.json +6615 -0
- package/node_modules/@salesforce/b2c-api-schemas/scapi/merchant/roles/v1.json +1520 -59
- package/node_modules/@salesforce/b2c-api-schemas/scapi/merchant/users/v1.json +397 -17
- package/node_modules/@salesforce/b2c-api-schemas/scapi/observability/metrics/v1.json +1241 -27
- package/node_modules/@salesforce/b2c-api-schemas/scapi/operation/jobs/v1.json +1069 -68
- package/node_modules/@salesforce/b2c-api-schemas/scapi/operation/replications/v1.json +410 -23
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/assignments/v1.json +502 -102
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/campaigns/v1.json +1112 -94
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/coupons/v1.json +820 -93
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/gift-certificates/v1.json +845 -92
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/promotions/v1.json +2716 -674
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/shopper-gift-certificates/v1.json +130 -47
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/shopper-promotions/v1.json +233 -63
- package/node_modules/@salesforce/b2c-api-schemas/scapi/pricing/source-code-groups/v1.json +630 -70
- package/node_modules/@salesforce/b2c-api-schemas/scapi/product/catalogs/v1.json +2886 -348
- package/node_modules/@salesforce/b2c-api-schemas/scapi/product/inventory-lists/v1.json +520 -19
- package/node_modules/@salesforce/b2c-api-schemas/scapi/product/price-books/v1.json +3115 -293
- package/node_modules/@salesforce/b2c-api-schemas/scapi/product/products/v1.json +3313 -138
- package/node_modules/@salesforce/b2c-api-schemas/scapi/product/shopper-availability/v1.json +266 -52
- package/node_modules/@salesforce/b2c-api-schemas/scapi/product/shopper-delivery-estimates/v1.json +256 -48
- package/node_modules/@salesforce/b2c-api-schemas/scapi/product/shopper-products/v1.json +1744 -306
- package/node_modules/@salesforce/b2c-api-schemas/scapi/search/shopper-search/v1.json +1661 -120
- package/node_modules/@salesforce/b2c-api-schemas/scapi/shopper/auth/v1.json +2174 -118
- package/node_modules/@salesforce/b2c-api-schemas/scapi/shopper/auth-admin/v1.json +1373 -24
- package/node_modules/@salesforce/b2c-api-schemas/scapi/shopper/consents/v1.json +531 -20
- package/node_modules/@salesforce/b2c-api-schemas/scapi/shopper/shopper-agents/v1.json +154 -6
- package/node_modules/@salesforce/b2c-api-schemas/scapi/shopper/shopper-consents/v1.json +596 -79
- package/node_modules/@salesforce/b2c-api-schemas/scapi/shopper/shopper-context/v1.json +456 -42
- package/node_modules/@salesforce/b2c-api-schemas/scapi/site/seo/v1.json +101 -23
- package/node_modules/@salesforce/b2c-api-schemas/scapi/site/shopper-seo/v1.json +184 -41
- package/node_modules/@salesforce/b2c-api-schemas/scapi/site/sites/v1.json +995 -47
- package/node_modules/@salesforce/b2c-api-schemas/scapi/store/shopper-stores/v1.json +370 -67
- package/node_modules/@salesforce/b2c-api-schemas/scapi/store/store-redirect-mappings/v1.json +319 -11
- package/node_modules/@salesforce/b2c-api-schemas/scapi/store/stores/v1.json +1109 -64
- package/node_modules/@salesforce/b2c-api-schemas/scapi/storefront/deployments/v1.json +1442 -0
- package/node_modules/@salesforce/b2c-api-schemas/scapi/storefront/environments/v1.json +4293 -0
- package/node_modules/@salesforce/b2c-api-schemas/scapi/storefront/storefronts/v1.json +1371 -0
- package/package.json +5 -2
- package/specs/scapi-schemas-v1.yaml +4 -1
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Shopper SEO",
|
|
5
|
-
"
|
|
5
|
+
"description": "[Download API specification](https://developer.salesforce.com/static/commercecloud/commerce-api/shopper-seo/shopper-seo-oas-v1-public.yaml)\n\n# API Overview\n\nThe Shopper SEO API Provides access to SEO-related information, such as URL mapping information.\n\n## Authentication & Authorization\n\nThe Shopper SEO API requires a shopper access token from the [Shopper Login and API Access Service (SLAS).](https://developer.salesforce.com/docs/commerce/commerce-api/guide/authorization-for-shopper-apis.html)\n\nYou must include the relevant scope(s) in the client ID used to generate the SLAS token. For a full list of required permissions, see the [Authorization Scopes Catalog.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/auth-z-scope-catalog.html)\n\nFor details on how to request a shopper access token from SLAS, see the guest user flows for [public clients](https://developer.salesforce.com/docs/commerce/commerce-api/guide/slas-public-client.html) and [private clients](https://developer.salesforce.com/docs/commerce/commerce-api/guide/slas-private-client.html) in the SLAS guides.\n\n## Customization\n\n### Hooks\n\nFor details on working with hooks, see [Extensibility with Hooks.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/extensibility_via_hooks.html)\n\n## Response Details\n\n### Personalization\n\nResponses from this API are not personalized via the Shopper Context API.\n\n### Caching\n\nCaching is provided for this API. For details, see [Server-Side Web-Tier Caching.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/server-side-web-tier-caching.html)\n\n### Timeouts\n\nShopper API requests must respond within 10 seconds, including any hook execution. If a response exceeds this threshold, an HTTP 504 status code is returned. For details, see [Timeouts and Limits.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/timeouts-limits.html)\n\n### Error Handling\n\nError responses follow the [RFC 7807](https://datatracker.ietf.org/doc/html/rfc7807) problem detail format. To trace errors, include a `correlation-id` header in your request — the response returns it as `x-correlation-id`. For details, see [HTTP Status Codes and Errors.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/error-response-codes.html)\n\n## Use Cases\n\n### Resolve a URL\n\nResolve a URL path to its resource type (product, category, or content page).\n\n```sh\ncurl \"https://{shortCode}.api.commercecloud.salesforce.com/site/shopper-seo/v1/organizations/{organizationId}/url-mapping?urlSegment=new-arrivals-tops&siteId=RefArch\" \\\n -H \"Authorization: Bearer {access_token}\"\n```\n\n\n### URL Resolution\n\nFor information on setting up URL rules and URL redirects in Business Manager, see [URL Resolution.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/url-resolution.html)\n\n## Related APIs\n\n- [SEO (Admin)](https://developer.salesforce.com/docs/commerce/commerce-api/references/seo?meta=Summary) — Manage SEO URL rules and redirects.",
|
|
6
|
+
"version": "1.3.1",
|
|
6
7
|
"x-api-type": "Shopper",
|
|
7
8
|
"x-api-family": "Site"
|
|
8
9
|
},
|
|
@@ -11,6 +12,7 @@
|
|
|
11
12
|
"url": "https://{shortCode}.api.commercecloud.salesforce.com/site/shopper-seo/v1",
|
|
12
13
|
"variables": {
|
|
13
14
|
"shortCode": {
|
|
15
|
+
"description": "An eight-character string assigned to a realm for routing purposes. See [Base URL and Request Formation.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html)",
|
|
14
16
|
"default": "shortCode"
|
|
15
17
|
}
|
|
16
18
|
}
|
|
@@ -19,26 +21,32 @@
|
|
|
19
21
|
"paths": {
|
|
20
22
|
"/organizations/{organizationId}/url-mapping": {
|
|
21
23
|
"get": {
|
|
24
|
+
"summary": "Get URL mapping information for a URL segment.",
|
|
25
|
+
"description": "The mapping information is based on URL rules and redirects that are set up in Business Manager. \nFor more information about prerequisites and sample usage, see [URL Resolution](/docs/commerce/commerce-api/guide/url-resolution.html). \nYou can customize the behavior of this endpoint by using hooks. For details, refer to the [Hook List](https://developer.salesforce.com/docs/commerce/commerce-api/guide/hook_list.html).",
|
|
22
26
|
"operationId": "getUrlMapping",
|
|
23
27
|
"parameters": [
|
|
24
28
|
{
|
|
25
29
|
"name": "organizationId",
|
|
26
30
|
"in": "path",
|
|
31
|
+
"description": "An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).",
|
|
27
32
|
"required": true,
|
|
28
33
|
"style": "simple",
|
|
29
34
|
"explode": false,
|
|
30
35
|
"schema": {
|
|
31
36
|
"$ref": "#/components/schemas/OrganizationId"
|
|
32
|
-
}
|
|
37
|
+
},
|
|
38
|
+
"example": "f_ecom_zzxy_prd"
|
|
33
39
|
},
|
|
34
40
|
{
|
|
35
41
|
"name": "urlSegment",
|
|
36
42
|
"in": "query",
|
|
43
|
+
"description": "The part of the requested URL that comes after the domain name. For example, the urlSegment for \\\"www.abc.com/blue/new-arrivals/tops\\\" is \\\"blue/new-arrivals/tops\\\". \nThere's no limit on the length of the urlSegment. However, for this endpoint, the maximum allowed length of the URL (after URL encoding) is 2047 characters. \nMake this field URL-encoded so that it properly handles special values such as whitespace. If a urlSegment includes a query string, a 404 error code is returned.",
|
|
37
44
|
"required": true,
|
|
38
45
|
"style": "form",
|
|
39
46
|
"explode": true,
|
|
40
47
|
"schema": {
|
|
41
48
|
"type": "string",
|
|
49
|
+
"example": "mens/clothing/shorts",
|
|
42
50
|
"maxLength": 2047,
|
|
43
51
|
"minLength": 1
|
|
44
52
|
}
|
|
@@ -46,51 +54,55 @@
|
|
|
46
54
|
{
|
|
47
55
|
"name": "siteId",
|
|
48
56
|
"in": "query",
|
|
57
|
+
"description": "The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.",
|
|
49
58
|
"required": true,
|
|
50
59
|
"style": "form",
|
|
51
60
|
"explode": true,
|
|
52
61
|
"schema": {
|
|
53
62
|
"$ref": "#/components/schemas/SiteId"
|
|
63
|
+
},
|
|
64
|
+
"examples": {
|
|
65
|
+
"SiteId": {
|
|
66
|
+
"value": "RefArch"
|
|
67
|
+
}
|
|
54
68
|
}
|
|
55
69
|
},
|
|
56
70
|
{
|
|
57
71
|
"name": "locale",
|
|
58
72
|
"in": "query",
|
|
73
|
+
"description": "A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.",
|
|
59
74
|
"required": false,
|
|
60
75
|
"style": "form",
|
|
61
76
|
"explode": true,
|
|
62
77
|
"schema": {
|
|
63
78
|
"$ref": "#/components/schemas/LocaleCode"
|
|
79
|
+
},
|
|
80
|
+
"examples": {
|
|
81
|
+
"LanguageCountry": {
|
|
82
|
+
"value": "en-US"
|
|
83
|
+
},
|
|
84
|
+
"CountryCode": {
|
|
85
|
+
"value": "US"
|
|
86
|
+
}
|
|
64
87
|
}
|
|
65
88
|
},
|
|
66
89
|
{
|
|
67
90
|
"name": "sfdc_usid",
|
|
68
91
|
"in": "header",
|
|
92
|
+
"description": "A unique shopper identifier (USID) for tracking client context.\nUsed with endpoints secured with ShopperClientContextToken.\nThis header is required for all endpoints secured with ShopperClientContextToken.",
|
|
69
93
|
"required": false,
|
|
70
94
|
"style": "simple",
|
|
71
95
|
"explode": false,
|
|
72
96
|
"schema": {
|
|
73
97
|
"type": "string",
|
|
74
|
-
"format": "uuid"
|
|
75
|
-
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "sfdc_dw_dnt",
|
|
79
|
-
"in": "header",
|
|
80
|
-
"required": false,
|
|
81
|
-
"style": "simple",
|
|
82
|
-
"explode": false,
|
|
83
|
-
"schema": {
|
|
84
|
-
"type": "string",
|
|
85
|
-
"enum": [
|
|
86
|
-
"0",
|
|
87
|
-
"1"
|
|
88
|
-
]
|
|
98
|
+
"format": "uuid",
|
|
99
|
+
"example": "550e8400-e29b-41d4-a716-446655440000"
|
|
89
100
|
}
|
|
90
101
|
},
|
|
91
102
|
{
|
|
92
103
|
"name": "personalized",
|
|
93
104
|
"in": "query",
|
|
105
|
+
"description": "Controls whether personalization is applied to the response. Set to `none` to opt out of personalized response handling so the response is safe to cache at the CDN layer.\n\nWhen set to `none`, the server skips applying personalization to the response.\n\nSetting `personalized=none` is necessary but not sufficient for CDN caching: a response is only cached when the endpoint is also cacheable in the [server-side web-tier cache](https://developer.salesforce.com/docs/commerce/commerce-api/guide/server-side-web-tier-caching.html), subject to its TTLs and invalidation. A call that is uncacheable in the web tier is not cached at the CDN either. See [CDN caching](https://developer.salesforce.com/docs/commerce/commerce-api/guide/cdn-caching.html).",
|
|
94
106
|
"required": false,
|
|
95
107
|
"style": "form",
|
|
96
108
|
"explode": true,
|
|
@@ -98,12 +110,14 @@
|
|
|
98
110
|
"type": "string",
|
|
99
111
|
"enum": [
|
|
100
112
|
"none"
|
|
101
|
-
]
|
|
113
|
+
],
|
|
114
|
+
"example": "none"
|
|
102
115
|
}
|
|
103
116
|
},
|
|
104
117
|
{
|
|
105
118
|
"name": "sfdc_shopper_context",
|
|
106
119
|
"in": "header",
|
|
120
|
+
"description": "Shopper context information (for example clientIP, sourceCode, and customQualifiers)\npassed in from a trusted backend application.",
|
|
107
121
|
"required": false,
|
|
108
122
|
"style": "simple",
|
|
109
123
|
"explode": false,
|
|
@@ -119,6 +133,17 @@
|
|
|
119
133
|
"application/json": {
|
|
120
134
|
"schema": {
|
|
121
135
|
"$ref": "#/components/schemas/UrlMapping"
|
|
136
|
+
},
|
|
137
|
+
"examples": {
|
|
138
|
+
"UrlMappingCategory": {
|
|
139
|
+
"$ref": "#/components/examples/UrlMappingCategory"
|
|
140
|
+
},
|
|
141
|
+
"UrlMappingProduct": {
|
|
142
|
+
"$ref": "#/components/examples/UrlMappingProduct"
|
|
143
|
+
},
|
|
144
|
+
"UrlMappingContentAsset": {
|
|
145
|
+
"$ref": "#/components/examples/UrlMappingContentAsset"
|
|
146
|
+
}
|
|
122
147
|
}
|
|
123
148
|
}
|
|
124
149
|
}
|
|
@@ -129,6 +154,11 @@
|
|
|
129
154
|
"application/problem+json": {
|
|
130
155
|
"schema": {
|
|
131
156
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
157
|
+
},
|
|
158
|
+
"examples": {
|
|
159
|
+
"getUrlMapping400": {
|
|
160
|
+
"$ref": "#/components/examples/getUrlMapping400"
|
|
161
|
+
}
|
|
132
162
|
}
|
|
133
163
|
}
|
|
134
164
|
}
|
|
@@ -139,6 +169,11 @@
|
|
|
139
169
|
"application/problem+json": {
|
|
140
170
|
"schema": {
|
|
141
171
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
172
|
+
},
|
|
173
|
+
"examples": {
|
|
174
|
+
"getUrlMapping401": {
|
|
175
|
+
"$ref": "#/components/examples/getUrlMapping401"
|
|
176
|
+
}
|
|
142
177
|
}
|
|
143
178
|
}
|
|
144
179
|
}
|
|
@@ -149,6 +184,11 @@
|
|
|
149
184
|
"application/problem+json": {
|
|
150
185
|
"schema": {
|
|
151
186
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
187
|
+
},
|
|
188
|
+
"examples": {
|
|
189
|
+
"getUrlMapping404": {
|
|
190
|
+
"$ref": "#/components/examples/getUrlMapping404"
|
|
191
|
+
}
|
|
152
192
|
}
|
|
153
193
|
}
|
|
154
194
|
}
|
|
@@ -173,27 +213,38 @@
|
|
|
173
213
|
"schemas": {
|
|
174
214
|
"OrganizationId": {
|
|
175
215
|
"type": "string",
|
|
216
|
+
"description": "An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).",
|
|
217
|
+
"example": "f_ecom_zzxy_prd",
|
|
176
218
|
"pattern": "^f_ecom_[a-z]{4}_(prd|stg|dev|s[0-9]{2}|[0-9]{3})$"
|
|
177
219
|
},
|
|
178
220
|
"SiteId": {
|
|
179
221
|
"type": "string",
|
|
222
|
+
"description": "The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites",
|
|
223
|
+
"example": "RefArch",
|
|
180
224
|
"maxLength": 32,
|
|
181
225
|
"minLength": 1
|
|
182
226
|
},
|
|
183
227
|
"LanguageCountry": {
|
|
184
228
|
"type": "string",
|
|
229
|
+
"description": "A concatenated version of the standard Language and Country codes, combined with a hyphen '`-`'.",
|
|
230
|
+
"example": "en-US",
|
|
185
231
|
"pattern": "^[a-z][a-z]-[A-Z][A-Z]$"
|
|
186
232
|
},
|
|
187
233
|
"LanguageCode": {
|
|
188
234
|
"type": "string",
|
|
235
|
+
"description": "A two letter lowercase language code conforming to the [ISO 639-1](https://www.iso.org/iso-639-language-codes.html) standard. Additionally, this may be used to submit requests with the header parameter `Accept-Language`, following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766).",
|
|
236
|
+
"example": "en",
|
|
189
237
|
"pattern": "^[a-z][a-z]$"
|
|
190
238
|
},
|
|
191
239
|
"DefaultFallback": {
|
|
192
240
|
"type": "string",
|
|
193
241
|
"default": "default",
|
|
242
|
+
"description": "A specialized value indicating the system default values for locales.",
|
|
243
|
+
"example": "default",
|
|
194
244
|
"pattern": "^default$"
|
|
195
245
|
},
|
|
196
246
|
"LocaleCode": {
|
|
247
|
+
"description": "A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.",
|
|
197
248
|
"oneOf": [
|
|
198
249
|
{
|
|
199
250
|
"$ref": "#/components/schemas/LanguageCountry"
|
|
@@ -208,64 +259,85 @@
|
|
|
208
259
|
},
|
|
209
260
|
"UrlMapping": {
|
|
210
261
|
"type": "object",
|
|
262
|
+
"description": "The URL mapping information for a URL that a shopper clicked or typed in.",
|
|
211
263
|
"properties": {
|
|
212
264
|
"resourceType": {
|
|
213
265
|
"type": "string",
|
|
266
|
+
"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.",
|
|
214
267
|
"enum": [
|
|
215
268
|
"CATEGORY",
|
|
216
269
|
"PRODUCT",
|
|
217
270
|
"CONTENT_ASSET"
|
|
218
271
|
],
|
|
272
|
+
"example": "CATEGORY",
|
|
219
273
|
"maxLength": 256,
|
|
220
274
|
"minLength": 1
|
|
221
275
|
},
|
|
222
276
|
"resourceSubType": {
|
|
223
277
|
"type": "string",
|
|
278
|
+
"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.",
|
|
224
279
|
"enum": [
|
|
225
280
|
"STANDARD_CONTENT_ASSET",
|
|
226
281
|
"PAGE_DESIGNER_CONTENT_ASSET"
|
|
227
282
|
],
|
|
283
|
+
"example": "STANDARD_CONTENT_ASSET",
|
|
228
284
|
"maxLength": 256,
|
|
229
285
|
"minLength": 1
|
|
230
286
|
},
|
|
231
287
|
"resourceId": {
|
|
232
288
|
"type": "string",
|
|
289
|
+
"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.",
|
|
290
|
+
"example": "mens-clothing-shorts",
|
|
233
291
|
"maxLength": 256,
|
|
234
292
|
"minLength": 1
|
|
235
293
|
},
|
|
236
294
|
"refinements": {
|
|
237
295
|
"type": "object",
|
|
238
|
-
"additionalProperties": true
|
|
296
|
+
"additionalProperties": true,
|
|
297
|
+
"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."
|
|
239
298
|
},
|
|
240
299
|
"statusCode": {
|
|
241
300
|
"type": "integer",
|
|
242
|
-
"format": "int32"
|
|
301
|
+
"format": "int32",
|
|
302
|
+
"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.",
|
|
303
|
+
"example": 301
|
|
243
304
|
},
|
|
244
305
|
"destinationUrl": {
|
|
245
306
|
"type": "string",
|
|
307
|
+
"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.",
|
|
308
|
+
"example": "mens/clothing/shorts",
|
|
246
309
|
"maxLength": 2048,
|
|
247
310
|
"minLength": 1
|
|
248
311
|
},
|
|
249
312
|
"copySourceParams": {
|
|
250
|
-
"type": "boolean"
|
|
313
|
+
"type": "boolean",
|
|
314
|
+
"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.",
|
|
315
|
+
"example": true
|
|
251
316
|
},
|
|
252
317
|
"additionalUrlParams": {
|
|
253
318
|
"type": "string",
|
|
319
|
+
"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.",
|
|
320
|
+
"example": "&cgid=womens-accessories-scarves&prefn1=displaySize",
|
|
254
321
|
"maxLength": 2048,
|
|
255
322
|
"minLength": 1
|
|
256
323
|
},
|
|
257
324
|
"productCategoryId": {
|
|
258
325
|
"type": "string",
|
|
326
|
+
"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.",
|
|
259
327
|
"maxLength": 256,
|
|
260
328
|
"minLength": 1
|
|
261
329
|
},
|
|
262
330
|
"onlineFrom": {
|
|
263
331
|
"type": "string",
|
|
264
|
-
"format": "date-time"
|
|
332
|
+
"format": "date-time",
|
|
333
|
+
"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.",
|
|
334
|
+
"example": "2025-06-01T00:00:00Z"
|
|
265
335
|
},
|
|
266
336
|
"onlineTo": {
|
|
267
337
|
"type": "string",
|
|
268
|
-
"format": "date-time"
|
|
338
|
+
"format": "date-time",
|
|
339
|
+
"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.",
|
|
340
|
+
"example": "2025-12-31T23:59:59Z"
|
|
269
341
|
}
|
|
270
342
|
}
|
|
271
343
|
},
|
|
@@ -275,17 +347,25 @@
|
|
|
275
347
|
"properties": {
|
|
276
348
|
"title": {
|
|
277
349
|
"type": "string",
|
|
350
|
+
"description": "A short, human-readable summary of the problem\ntype. It will not change from occurrence to occurrence of the \nproblem, except for purposes of localization\n",
|
|
351
|
+
"example": "You do not have enough credit",
|
|
278
352
|
"maxLength": 256
|
|
279
353
|
},
|
|
280
354
|
"type": {
|
|
281
355
|
"type": "string",
|
|
356
|
+
"description": "A URI reference [RFC3986] that identifies the\nproblem type. This specification encourages that, when\ndereferenced, it provide human-readable documentation for the\nproblem type (e.g., using HTML [W3C.REC-html5-20141028]). When\nthis member is not present, its value is assumed to be\n\"about:blank\". It accepts relative URIs; this means\nthat they must be resolved relative to the document's base URI, as\nper [RFC3986], Section 5.\n",
|
|
357
|
+
"example": "NotEnoughMoney",
|
|
282
358
|
"maxLength": 2048
|
|
283
359
|
},
|
|
284
360
|
"detail": {
|
|
285
|
-
"type": "string"
|
|
361
|
+
"type": "string",
|
|
362
|
+
"description": "A human-readable explanation specific to this occurrence of the problem.",
|
|
363
|
+
"example": "Your current balance is 30, but that costs 50"
|
|
286
364
|
},
|
|
287
365
|
"instance": {
|
|
288
366
|
"type": "string",
|
|
367
|
+
"description": "A URI reference that identifies the specific\noccurrence of the problem. It may or may not yield further\ninformation if dereferenced. It accepts relative URIs; this means\nthat they must be resolved relative to the document's base URI, as\nper [RFC3986], Section 5.\n",
|
|
368
|
+
"example": "/account/12345/msgs/abc",
|
|
289
369
|
"maxLength": 2048
|
|
290
370
|
}
|
|
291
371
|
},
|
|
@@ -300,21 +380,25 @@
|
|
|
300
380
|
"organizationId": {
|
|
301
381
|
"name": "organizationId",
|
|
302
382
|
"in": "path",
|
|
383
|
+
"description": "An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).",
|
|
303
384
|
"required": true,
|
|
304
385
|
"style": "simple",
|
|
305
386
|
"explode": false,
|
|
306
387
|
"schema": {
|
|
307
388
|
"$ref": "#/components/schemas/OrganizationId"
|
|
308
|
-
}
|
|
389
|
+
},
|
|
390
|
+
"example": "f_ecom_zzxy_prd"
|
|
309
391
|
},
|
|
310
392
|
"urlSegment": {
|
|
311
393
|
"name": "urlSegment",
|
|
312
394
|
"in": "query",
|
|
395
|
+
"description": "The part of the requested URL that comes after the domain name. For example, the urlSegment for \\\"www.abc.com/blue/new-arrivals/tops\\\" is \\\"blue/new-arrivals/tops\\\". \nThere's no limit on the length of the urlSegment. However, for this endpoint, the maximum allowed length of the URL (after URL encoding) is 2047 characters. \nMake this field URL-encoded so that it properly handles special values such as whitespace. If a urlSegment includes a query string, a 404 error code is returned.",
|
|
313
396
|
"required": true,
|
|
314
397
|
"style": "form",
|
|
315
398
|
"explode": true,
|
|
316
399
|
"schema": {
|
|
317
400
|
"type": "string",
|
|
401
|
+
"example": "mens/clothing/shorts",
|
|
318
402
|
"maxLength": 2047,
|
|
319
403
|
"minLength": 1
|
|
320
404
|
}
|
|
@@ -322,51 +406,55 @@
|
|
|
322
406
|
"siteId": {
|
|
323
407
|
"name": "siteId",
|
|
324
408
|
"in": "query",
|
|
409
|
+
"description": "The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.",
|
|
325
410
|
"required": true,
|
|
326
411
|
"style": "form",
|
|
327
412
|
"explode": true,
|
|
328
413
|
"schema": {
|
|
329
414
|
"$ref": "#/components/schemas/SiteId"
|
|
415
|
+
},
|
|
416
|
+
"examples": {
|
|
417
|
+
"SiteId": {
|
|
418
|
+
"value": "RefArch"
|
|
419
|
+
}
|
|
330
420
|
}
|
|
331
421
|
},
|
|
332
422
|
"locale": {
|
|
333
423
|
"name": "locale",
|
|
334
424
|
"in": "query",
|
|
425
|
+
"description": "A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.",
|
|
335
426
|
"required": false,
|
|
336
427
|
"style": "form",
|
|
337
428
|
"explode": true,
|
|
338
429
|
"schema": {
|
|
339
430
|
"$ref": "#/components/schemas/LocaleCode"
|
|
431
|
+
},
|
|
432
|
+
"examples": {
|
|
433
|
+
"LanguageCountry": {
|
|
434
|
+
"value": "en-US"
|
|
435
|
+
},
|
|
436
|
+
"CountryCode": {
|
|
437
|
+
"value": "US"
|
|
438
|
+
}
|
|
340
439
|
}
|
|
341
440
|
},
|
|
342
441
|
"sfdcUsid": {
|
|
343
442
|
"name": "sfdc_usid",
|
|
344
443
|
"in": "header",
|
|
444
|
+
"description": "A unique shopper identifier (USID) for tracking client context.\nUsed with endpoints secured with ShopperClientContextToken.\nThis header is required for all endpoints secured with ShopperClientContextToken.",
|
|
345
445
|
"required": false,
|
|
346
446
|
"style": "simple",
|
|
347
447
|
"explode": false,
|
|
348
448
|
"schema": {
|
|
349
449
|
"type": "string",
|
|
350
|
-
"format": "uuid"
|
|
351
|
-
|
|
352
|
-
},
|
|
353
|
-
"sfdcDwDnt": {
|
|
354
|
-
"name": "sfdc_dw_dnt",
|
|
355
|
-
"in": "header",
|
|
356
|
-
"required": false,
|
|
357
|
-
"style": "simple",
|
|
358
|
-
"explode": false,
|
|
359
|
-
"schema": {
|
|
360
|
-
"type": "string",
|
|
361
|
-
"enum": [
|
|
362
|
-
"0",
|
|
363
|
-
"1"
|
|
364
|
-
]
|
|
450
|
+
"format": "uuid",
|
|
451
|
+
"example": "550e8400-e29b-41d4-a716-446655440000"
|
|
365
452
|
}
|
|
366
453
|
},
|
|
367
454
|
"personalized": {
|
|
368
455
|
"name": "personalized",
|
|
369
456
|
"in": "query",
|
|
457
|
+
"description": "Controls whether personalization is applied to the response. Set to `none` to opt out of personalized response handling so the response is safe to cache at the CDN layer.\n\nWhen set to `none`, the server skips applying personalization to the response.\n\nSetting `personalized=none` is necessary but not sufficient for CDN caching: a response is only cached when the endpoint is also cacheable in the [server-side web-tier cache](https://developer.salesforce.com/docs/commerce/commerce-api/guide/server-side-web-tier-caching.html), subject to its TTLs and invalidation. A call that is uncacheable in the web tier is not cached at the CDN either. See [CDN caching](https://developer.salesforce.com/docs/commerce/commerce-api/guide/cdn-caching.html).",
|
|
370
458
|
"required": false,
|
|
371
459
|
"style": "form",
|
|
372
460
|
"explode": true,
|
|
@@ -374,12 +462,14 @@
|
|
|
374
462
|
"type": "string",
|
|
375
463
|
"enum": [
|
|
376
464
|
"none"
|
|
377
|
-
]
|
|
465
|
+
],
|
|
466
|
+
"example": "none"
|
|
378
467
|
}
|
|
379
468
|
},
|
|
380
469
|
"sfdcShopperContext": {
|
|
381
470
|
"name": "sfdc_shopper_context",
|
|
382
471
|
"in": "header",
|
|
472
|
+
"description": "Shopper context information (for example clientIP, sourceCode, and customQualifiers)\npassed in from a trusted backend application.",
|
|
383
473
|
"required": false,
|
|
384
474
|
"style": "simple",
|
|
385
475
|
"explode": false,
|
|
@@ -388,9 +478,61 @@
|
|
|
388
478
|
}
|
|
389
479
|
}
|
|
390
480
|
},
|
|
481
|
+
"examples": {
|
|
482
|
+
"UrlMappingCategory": {
|
|
483
|
+
"summary": "URL mapped to a category with refinements.",
|
|
484
|
+
"value": {
|
|
485
|
+
"resourceType": "CATEGORY",
|
|
486
|
+
"resourceId": "new-arrivals-tops",
|
|
487
|
+
"refinements": {
|
|
488
|
+
"refinementColor": "Blue"
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"UrlMappingProduct": {
|
|
493
|
+
"summary": "URL mapped to a product.",
|
|
494
|
+
"value": {
|
|
495
|
+
"resourceType": "PRODUCT",
|
|
496
|
+
"resourceId": "25695327M"
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"UrlMappingContentAsset": {
|
|
500
|
+
"summary": "URL mapped to a content asset.",
|
|
501
|
+
"value": {
|
|
502
|
+
"resourceType": "CONTENT_ASSET",
|
|
503
|
+
"resourceId": "about-us"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"getUrlMapping400": {
|
|
507
|
+
"value": {
|
|
508
|
+
"title": "Unknown Locale",
|
|
509
|
+
"type": "https://api.commercecloud.salesforce.com/documentation/error/v1/errors/unknown-locale",
|
|
510
|
+
"detail": "The locale 'ab-CD' is unknown.",
|
|
511
|
+
"locale": "ab-CD"
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"getUrlMapping401": {
|
|
515
|
+
"value": {
|
|
516
|
+
"title": "Invalid Access Token",
|
|
517
|
+
"type": "https://api.commercecloud.salesforce.com/documentation/error/v1/errors/invalid-access-token",
|
|
518
|
+
"detail": "The request is unauthorized, the access token is invalid.",
|
|
519
|
+
"accessToken": "hbGciOiJIUzI1NiIsInR5cCI6Ikp"
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
"getUrlMapping404": {
|
|
523
|
+
"value": {
|
|
524
|
+
"title": "Seo Url Mapping Not Found",
|
|
525
|
+
"type": "https://api.commercecloud.salesforce.com/documentation/error/v1/errors/seo-url-mapping-not-found",
|
|
526
|
+
"detail": "black/mens/accessories/luggage",
|
|
527
|
+
"urlSegment": "black/mens/accessories/luggage",
|
|
528
|
+
"locale": "en_US"
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
},
|
|
391
532
|
"securitySchemes": {
|
|
392
533
|
"ShopperToken": {
|
|
393
534
|
"type": "oauth2",
|
|
535
|
+
"description": "ShopperToken authentication follows the authorization code grant flow, as defined by the OAuth 2.1 standard. Depending on the type of OAuth client (public or private), this authorization flow has further requirements. \nFor a detailed description of the authorization flow, see the [SLAS overview](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-login:Summary).\nA shopper token allows you to access the Shopper API endpoints of both the Open Commerce API (OCAPI) and the B2C Commerce API. These endpoints can be used to build headless storefronts and other applications.\nThe `ShopperToken` security scheme is a parent of other security schemes, such as `ShopperTokenTsob`. A Shopper API endpoint can require a specific child scheme (`ShopperTokenTsob`, for example) that cannot be accessed with a regular shopper token.\n",
|
|
394
536
|
"flows": {
|
|
395
537
|
"clientCredentials": {
|
|
396
538
|
"tokenUrl": "https://{shortCode}.api.commercecloud.salesforce.com/shopper/auth/v1/organizations/{organizationId}/oauth2/token",
|
|
@@ -409,6 +551,7 @@
|
|
|
409
551
|
},
|
|
410
552
|
"ShopperClientContextToken": {
|
|
411
553
|
"type": "oauth2",
|
|
554
|
+
"description": "ShopperClientContextToken is a separate security scheme used to track and validate client context information.\nIt is valid for Guest shoppers flows only using SLAS private clients. For registered shoppers, use existing ShopperToken flows.\nFor authentication details, see the [SLAS overview](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-login:Summary).\nThis token allows access to Shopper API endpoints for guest shoppers only.\n",
|
|
412
555
|
"flows": {
|
|
413
556
|
"clientCredentials": {
|
|
414
557
|
"tokenUrl": "https://{shortCode}.api.commercecloud.salesforce.com/shopper/auth/v1/organizations/{organizationId}/oauth2/token?hint=client_context",
|