@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": "Preferences",
|
|
5
|
-
"
|
|
5
|
+
"description": "[Download API specification](https://developer.salesforce.com/static/commercecloud/commerce-api/preferences/preferences-oas-v1-public.yaml)\n\n# API Overview\nB2C Commerce teams must regularly configure site and environment-specific settings to support changing business needs and technical integrations. In many instances, Storefront Reference Architecture (SFRA)/SiteGenesis implementations rely on declarative Custom Site Preferences to alter these settings without the need for deployment or significant engineering support. Site preferences allow teams to adapt their sites with minimal effort.\n\nThe following Preferences API endpoints retrieve preference-related information:\n\n- Global custom preferences: \nRetrieves all custom preferences at the organization level. \n\n- Site custom prefererences: \nRetrieves all custom preferences at the site level.\n\nThe Preferences API first checks to see if custom values have been set, and if so, returns the custom settings. Otherwise, the Preferences API returns the default values provided in Business Manager.\n\nNote: The Preferences API sets custom preferences. For details on working with non-custom preferences, see [Global Preferences for B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c_global_preferences.htm&type=5) and [Site Preferences in B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c_site_preferences.htm&type=5).\n\n## Authentication & Authorization\n\nFor resource access, you must use a client ID and client secret from Account Manager to request an access token. The access token is used as a bearer token and added to the Authorization header of your API request.\n\nYou must include `sfcc.preferences` in the client ID used to generate the 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 detailed setup instructions, see the [Authorization for Admin APIs guide.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/authorization-for-admin-apis.html)\n\n## Response Details\n\n### Timeouts\n\nAdmin API requests must respond within 60 seconds. 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### Global Custom Preference:\nA prominent private equity firm manages a diverse portfolio of brands, each operating its own site. Despite the individuality of these brands, they leverage shared third-party integrations for critical functionalities, such as payments and content management. Through a centralized approach, the firm establishes specifications for key components like the payments portal, ensuring consistency and efficiency across all sites. These specifications are meticulously crafted and undergo infrequent modifications to accommodate evolving needs while maintaining operational stability.\n\n### Site Custom Preference: \nSite operators might have numerous tests or features tailored to their specific site. To facilitate streamlined control over these functionalities, they need a user-friendly mechanism for their merchant team to effortlessly toggle them on or off as needed. The site Preference API provides this mechanism.\n\n### Caching\nCaching capabilities are available for the Preferences APIs. For details, see [Server-Side Web-Tier Caching.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/server-side-web-tier-caching.html)",
|
|
6
|
+
"version": "1.2.3",
|
|
6
7
|
"x-api-type": "Admin",
|
|
7
8
|
"x-api-family": "Configuration"
|
|
8
9
|
},
|
|
@@ -11,6 +12,7 @@
|
|
|
11
12
|
"url": "https://{shortCode}.api.commercecloud.salesforce.com/configuration/preferences/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,32 +21,38 @@
|
|
|
19
21
|
"paths": {
|
|
20
22
|
"/organizations/{organizationId}/global-custom-preferences": {
|
|
21
23
|
"get": {
|
|
24
|
+
"summary": "Retrieves the Global Custom Preferences.",
|
|
22
25
|
"operationId": "getGlobalCustomPreferenceList",
|
|
23
26
|
"parameters": [
|
|
24
27
|
{
|
|
25
28
|
"name": "organizationId",
|
|
26
29
|
"in": "path",
|
|
30
|
+
"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
31
|
"required": true,
|
|
28
32
|
"style": "simple",
|
|
29
33
|
"explode": false,
|
|
30
34
|
"schema": {
|
|
31
35
|
"$ref": "#/components/schemas/OrganizationId"
|
|
32
|
-
}
|
|
36
|
+
},
|
|
37
|
+
"example": "f_ecom_zzxy_prd"
|
|
33
38
|
},
|
|
34
39
|
{
|
|
35
40
|
"name": "maskPassword",
|
|
36
41
|
"in": "query",
|
|
42
|
+
"description": "Whether to mask password or not.",
|
|
37
43
|
"required": false,
|
|
38
44
|
"style": "form",
|
|
39
45
|
"explode": true,
|
|
40
46
|
"schema": {
|
|
41
47
|
"type": "boolean",
|
|
42
|
-
"default": false
|
|
48
|
+
"default": false,
|
|
49
|
+
"example": true
|
|
43
50
|
}
|
|
44
51
|
},
|
|
45
52
|
{
|
|
46
53
|
"name": "limit",
|
|
47
54
|
"in": "query",
|
|
55
|
+
"description": "Number of records to retrieve per request. Must be between 1 (minimum) and 200 (maximum). Defaults to 200.",
|
|
48
56
|
"required": false,
|
|
49
57
|
"style": "form",
|
|
50
58
|
"explode": true,
|
|
@@ -59,6 +67,7 @@
|
|
|
59
67
|
{
|
|
60
68
|
"name": "offset",
|
|
61
69
|
"in": "query",
|
|
70
|
+
"description": "Used to retrieve the results based on a particular resource offset.",
|
|
62
71
|
"required": false,
|
|
63
72
|
"style": "form",
|
|
64
73
|
"explode": true,
|
|
@@ -77,12 +86,17 @@
|
|
|
77
86
|
"application/json": {
|
|
78
87
|
"schema": {
|
|
79
88
|
"$ref": "#/components/schemas/CustomPreferenceList"
|
|
89
|
+
},
|
|
90
|
+
"examples": {
|
|
91
|
+
"GlobalCustomPreferenceExample": {
|
|
92
|
+
"$ref": "#/components/examples/GlobalCustomPreferenceExample"
|
|
93
|
+
}
|
|
80
94
|
}
|
|
81
95
|
}
|
|
82
96
|
}
|
|
83
97
|
},
|
|
84
98
|
"400": {
|
|
85
|
-
"description": "
|
|
99
|
+
"description": "Returned if the query is ill-formed."
|
|
86
100
|
},
|
|
87
101
|
"401": {
|
|
88
102
|
"description": "Unauthorized. Your Client ID is invalid, or you are not allowed to access\nthe content provided by the requested URL.\n",
|
|
@@ -90,6 +104,11 @@
|
|
|
90
104
|
"application/problem+json": {
|
|
91
105
|
"schema": {
|
|
92
106
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
107
|
+
},
|
|
108
|
+
"examples": {
|
|
109
|
+
"InvalidAccessToken": {
|
|
110
|
+
"$ref": "#/components/examples/InvalidAccessToken"
|
|
111
|
+
}
|
|
93
112
|
}
|
|
94
113
|
}
|
|
95
114
|
}
|
|
@@ -107,42 +126,54 @@
|
|
|
107
126
|
},
|
|
108
127
|
"/organizations/{organizationId}/site-custom-preferences": {
|
|
109
128
|
"get": {
|
|
129
|
+
"summary": "Retrieves the Custom Preferences for a specified siteId.",
|
|
110
130
|
"operationId": "getSiteCustomPreferenceList",
|
|
111
131
|
"parameters": [
|
|
112
132
|
{
|
|
113
133
|
"name": "organizationId",
|
|
114
134
|
"in": "path",
|
|
135
|
+
"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).",
|
|
115
136
|
"required": true,
|
|
116
137
|
"style": "simple",
|
|
117
138
|
"explode": false,
|
|
118
139
|
"schema": {
|
|
119
140
|
"$ref": "#/components/schemas/OrganizationId"
|
|
120
|
-
}
|
|
141
|
+
},
|
|
142
|
+
"example": "f_ecom_zzxy_prd"
|
|
121
143
|
},
|
|
122
144
|
{
|
|
123
145
|
"name": "maskPassword",
|
|
124
146
|
"in": "query",
|
|
147
|
+
"description": "Whether to mask password or not.",
|
|
125
148
|
"required": false,
|
|
126
149
|
"style": "form",
|
|
127
150
|
"explode": true,
|
|
128
151
|
"schema": {
|
|
129
152
|
"type": "boolean",
|
|
130
|
-
"default": false
|
|
153
|
+
"default": false,
|
|
154
|
+
"example": true
|
|
131
155
|
}
|
|
132
156
|
},
|
|
133
157
|
{
|
|
134
158
|
"name": "siteId",
|
|
135
159
|
"in": "query",
|
|
160
|
+
"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.",
|
|
136
161
|
"required": true,
|
|
137
162
|
"style": "form",
|
|
138
163
|
"explode": true,
|
|
139
164
|
"schema": {
|
|
140
165
|
"$ref": "#/components/schemas/SiteId"
|
|
166
|
+
},
|
|
167
|
+
"examples": {
|
|
168
|
+
"SiteId": {
|
|
169
|
+
"value": "RefArch"
|
|
170
|
+
}
|
|
141
171
|
}
|
|
142
172
|
},
|
|
143
173
|
{
|
|
144
174
|
"name": "limit",
|
|
145
175
|
"in": "query",
|
|
176
|
+
"description": "Number of records to retrieve per request. Must be between 1 (minimum) and 200 (maximum). Defaults to 200.",
|
|
146
177
|
"required": false,
|
|
147
178
|
"style": "form",
|
|
148
179
|
"explode": true,
|
|
@@ -157,6 +188,7 @@
|
|
|
157
188
|
{
|
|
158
189
|
"name": "offset",
|
|
159
190
|
"in": "query",
|
|
191
|
+
"description": "Used to retrieve the results based on a particular resource offset.",
|
|
160
192
|
"required": false,
|
|
161
193
|
"style": "form",
|
|
162
194
|
"explode": true,
|
|
@@ -175,12 +207,17 @@
|
|
|
175
207
|
"application/json": {
|
|
176
208
|
"schema": {
|
|
177
209
|
"$ref": "#/components/schemas/CustomPreferenceList"
|
|
210
|
+
},
|
|
211
|
+
"examples": {
|
|
212
|
+
"SiteCustomPreferenceExample": {
|
|
213
|
+
"$ref": "#/components/examples/SiteCustomPreferenceExample"
|
|
214
|
+
}
|
|
178
215
|
}
|
|
179
216
|
}
|
|
180
217
|
}
|
|
181
218
|
},
|
|
182
219
|
"400": {
|
|
183
|
-
"description": "
|
|
220
|
+
"description": "Returned if the query is ill-formed."
|
|
184
221
|
},
|
|
185
222
|
"401": {
|
|
186
223
|
"description": "Unauthorized. Your Client ID is invalid, or you are not allowed to access\nthe content provided by the requested URL.\n",
|
|
@@ -188,6 +225,11 @@
|
|
|
188
225
|
"application/problem+json": {
|
|
189
226
|
"schema": {
|
|
190
227
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
228
|
+
},
|
|
229
|
+
"examples": {
|
|
230
|
+
"InvalidAccessToken": {
|
|
231
|
+
"$ref": "#/components/examples/InvalidAccessToken"
|
|
232
|
+
}
|
|
191
233
|
}
|
|
192
234
|
}
|
|
193
235
|
}
|
|
@@ -205,26 +247,32 @@
|
|
|
205
247
|
},
|
|
206
248
|
"/organizations/{organizationId}/global-preference-groups/{groupId}/{instanceType}": {
|
|
207
249
|
"get": {
|
|
250
|
+
"summary": "Read the custom preferences in a global preference group for a given instance type.",
|
|
251
|
+
"description": "For the specified instance, read the custom preferences in the preference group at the\nglobal (organization) level. Specify 'current' to retrieve the preferences for the instance\non which this call is being made. The system will recognize its type.\n\n\n**Note:** If instance type sandbox is used, the preference values of development instance type\nwill be returned as fallback.\n",
|
|
208
252
|
"operationId": "getGlobalPreferenceGroup",
|
|
209
253
|
"parameters": [
|
|
210
254
|
{
|
|
211
255
|
"name": "organizationId",
|
|
212
256
|
"in": "path",
|
|
257
|
+
"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).",
|
|
213
258
|
"required": true,
|
|
214
259
|
"style": "simple",
|
|
215
260
|
"explode": false,
|
|
216
261
|
"schema": {
|
|
217
262
|
"$ref": "#/components/schemas/OrganizationId"
|
|
218
|
-
}
|
|
263
|
+
},
|
|
264
|
+
"example": "f_ecom_zzxy_prd"
|
|
219
265
|
},
|
|
220
266
|
{
|
|
221
267
|
"name": "groupId",
|
|
222
268
|
"in": "path",
|
|
269
|
+
"description": "The preference group ID.",
|
|
223
270
|
"required": true,
|
|
224
271
|
"style": "simple",
|
|
225
272
|
"explode": false,
|
|
226
273
|
"schema": {
|
|
227
274
|
"type": "string",
|
|
275
|
+
"example": "WapiStringGroup",
|
|
228
276
|
"maxLength": 256,
|
|
229
277
|
"minLength": 1
|
|
230
278
|
}
|
|
@@ -232,6 +280,7 @@
|
|
|
232
280
|
{
|
|
233
281
|
"name": "instanceType",
|
|
234
282
|
"in": "path",
|
|
283
|
+
"description": "The instance type for which to read or update preferences.",
|
|
235
284
|
"required": true,
|
|
236
285
|
"style": "simple",
|
|
237
286
|
"explode": false,
|
|
@@ -242,23 +291,28 @@
|
|
|
242
291
|
"development",
|
|
243
292
|
"sandbox",
|
|
244
293
|
"production"
|
|
245
|
-
]
|
|
246
|
-
|
|
294
|
+
],
|
|
295
|
+
"example": "staging"
|
|
296
|
+
},
|
|
297
|
+
"example": "staging"
|
|
247
298
|
},
|
|
248
299
|
{
|
|
249
300
|
"name": "maskPasswords",
|
|
250
301
|
"in": "query",
|
|
302
|
+
"description": "The preference values of type Password are masked when set.",
|
|
251
303
|
"required": false,
|
|
252
304
|
"style": "form",
|
|
253
305
|
"explode": true,
|
|
254
306
|
"schema": {
|
|
255
307
|
"type": "boolean",
|
|
256
|
-
"default": false
|
|
308
|
+
"default": false,
|
|
309
|
+
"example": true
|
|
257
310
|
}
|
|
258
311
|
},
|
|
259
312
|
{
|
|
260
313
|
"name": "expand",
|
|
261
314
|
"in": "query",
|
|
315
|
+
"description": "Expands the result document to include additional information. For global preference groups, the expansion \"sites\" retrieves the custom preferences for all the available sites.\n",
|
|
262
316
|
"required": false,
|
|
263
317
|
"style": "form",
|
|
264
318
|
"explode": false,
|
|
@@ -268,7 +322,8 @@
|
|
|
268
322
|
"type": "string",
|
|
269
323
|
"enum": [
|
|
270
324
|
"sites"
|
|
271
|
-
]
|
|
325
|
+
],
|
|
326
|
+
"example": "sites"
|
|
272
327
|
}
|
|
273
328
|
}
|
|
274
329
|
}
|
|
@@ -280,6 +335,14 @@
|
|
|
280
335
|
"application/json": {
|
|
281
336
|
"schema": {
|
|
282
337
|
"$ref": "#/components/schemas/OrganizationPreferences"
|
|
338
|
+
},
|
|
339
|
+
"examples": {
|
|
340
|
+
"GetGlobalPreferencesExample": {
|
|
341
|
+
"$ref": "#/components/examples/GetGlobalPreferencesExample"
|
|
342
|
+
},
|
|
343
|
+
"GetGlobalPreferencesWithSitesExample": {
|
|
344
|
+
"$ref": "#/components/examples/GetGlobalPreferencesWithSitesExample"
|
|
345
|
+
}
|
|
283
346
|
}
|
|
284
347
|
}
|
|
285
348
|
}
|
|
@@ -290,6 +353,11 @@
|
|
|
290
353
|
"application/problem+json": {
|
|
291
354
|
"schema": {
|
|
292
355
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
356
|
+
},
|
|
357
|
+
"examples": {
|
|
358
|
+
"IllegalEnumerationValue": {
|
|
359
|
+
"$ref": "#/components/examples/IllegalEnumerationValue"
|
|
360
|
+
}
|
|
293
361
|
}
|
|
294
362
|
}
|
|
295
363
|
}
|
|
@@ -300,6 +368,11 @@
|
|
|
300
368
|
"application/problem+json": {
|
|
301
369
|
"schema": {
|
|
302
370
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
371
|
+
},
|
|
372
|
+
"examples": {
|
|
373
|
+
"CustomPreferenceGroupNotFound": {
|
|
374
|
+
"$ref": "#/components/examples/CustomPreferenceGroupNotFound"
|
|
375
|
+
}
|
|
303
376
|
}
|
|
304
377
|
}
|
|
305
378
|
}
|
|
@@ -315,26 +388,32 @@
|
|
|
315
388
|
]
|
|
316
389
|
},
|
|
317
390
|
"patch": {
|
|
391
|
+
"summary": "Update the custom preferences in a global preference group for a given instance type.",
|
|
392
|
+
"description": "For the specified instance, update one or more custom preferences in the preference group\nat the global (organization) level.\n\n\n**Note:** If instance type sandbox is used, the preference values of development instance type\nwill be returned as fallback.\n",
|
|
318
393
|
"operationId": "updateGlobalPreferenceGroup",
|
|
319
394
|
"parameters": [
|
|
320
395
|
{
|
|
321
396
|
"name": "organizationId",
|
|
322
397
|
"in": "path",
|
|
398
|
+
"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).",
|
|
323
399
|
"required": true,
|
|
324
400
|
"style": "simple",
|
|
325
401
|
"explode": false,
|
|
326
402
|
"schema": {
|
|
327
403
|
"$ref": "#/components/schemas/OrganizationId"
|
|
328
|
-
}
|
|
404
|
+
},
|
|
405
|
+
"example": "f_ecom_zzxy_prd"
|
|
329
406
|
},
|
|
330
407
|
{
|
|
331
408
|
"name": "groupId",
|
|
332
409
|
"in": "path",
|
|
410
|
+
"description": "The preference group ID.",
|
|
333
411
|
"required": true,
|
|
334
412
|
"style": "simple",
|
|
335
413
|
"explode": false,
|
|
336
414
|
"schema": {
|
|
337
415
|
"type": "string",
|
|
416
|
+
"example": "WapiStringGroup",
|
|
338
417
|
"maxLength": 256,
|
|
339
418
|
"minLength": 1
|
|
340
419
|
}
|
|
@@ -342,6 +421,7 @@
|
|
|
342
421
|
{
|
|
343
422
|
"name": "instanceType",
|
|
344
423
|
"in": "path",
|
|
424
|
+
"description": "The instance type for which to read or update preferences.",
|
|
345
425
|
"required": true,
|
|
346
426
|
"style": "simple",
|
|
347
427
|
"explode": false,
|
|
@@ -352,26 +432,36 @@
|
|
|
352
432
|
"development",
|
|
353
433
|
"sandbox",
|
|
354
434
|
"production"
|
|
355
|
-
]
|
|
356
|
-
|
|
435
|
+
],
|
|
436
|
+
"example": "staging"
|
|
437
|
+
},
|
|
438
|
+
"example": "staging"
|
|
357
439
|
},
|
|
358
440
|
{
|
|
359
441
|
"name": "maskPasswords",
|
|
360
442
|
"in": "query",
|
|
443
|
+
"description": "The preference values of type Password are masked when set.",
|
|
361
444
|
"required": false,
|
|
362
445
|
"style": "form",
|
|
363
446
|
"explode": true,
|
|
364
447
|
"schema": {
|
|
365
448
|
"type": "boolean",
|
|
366
|
-
"default": false
|
|
449
|
+
"default": false,
|
|
450
|
+
"example": true
|
|
367
451
|
}
|
|
368
452
|
}
|
|
369
453
|
],
|
|
370
454
|
"requestBody": {
|
|
455
|
+
"description": "The preferences to update. Custom preference attributes use the \"c_\" prefix.\n",
|
|
371
456
|
"content": {
|
|
372
457
|
"application/json": {
|
|
373
458
|
"schema": {
|
|
374
459
|
"$ref": "#/components/schemas/OrganizationPreferences"
|
|
460
|
+
},
|
|
461
|
+
"examples": {
|
|
462
|
+
"UpdateGlobalPreferencesRequest": {
|
|
463
|
+
"$ref": "#/components/examples/UpdateGlobalPreferencesRequest"
|
|
464
|
+
}
|
|
375
465
|
}
|
|
376
466
|
}
|
|
377
467
|
},
|
|
@@ -384,6 +474,11 @@
|
|
|
384
474
|
"application/json": {
|
|
385
475
|
"schema": {
|
|
386
476
|
"$ref": "#/components/schemas/OrganizationPreferences"
|
|
477
|
+
},
|
|
478
|
+
"examples": {
|
|
479
|
+
"UpdateGlobalPreferencesExample": {
|
|
480
|
+
"$ref": "#/components/examples/UpdateGlobalPreferencesExample"
|
|
481
|
+
}
|
|
387
482
|
}
|
|
388
483
|
}
|
|
389
484
|
}
|
|
@@ -394,6 +489,11 @@
|
|
|
394
489
|
"application/problem+json": {
|
|
395
490
|
"schema": {
|
|
396
491
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
492
|
+
},
|
|
493
|
+
"examples": {
|
|
494
|
+
"IllegalEnumerationValue": {
|
|
495
|
+
"$ref": "#/components/examples/IllegalEnumerationValue"
|
|
496
|
+
}
|
|
397
497
|
}
|
|
398
498
|
}
|
|
399
499
|
}
|
|
@@ -404,6 +504,11 @@
|
|
|
404
504
|
"application/problem+json": {
|
|
405
505
|
"schema": {
|
|
406
506
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
507
|
+
},
|
|
508
|
+
"examples": {
|
|
509
|
+
"CustomPreferenceGroupNotFound": {
|
|
510
|
+
"$ref": "#/components/examples/CustomPreferenceGroupNotFound"
|
|
511
|
+
}
|
|
407
512
|
}
|
|
408
513
|
}
|
|
409
514
|
}
|
|
@@ -420,26 +525,32 @@
|
|
|
420
525
|
},
|
|
421
526
|
"/organizations/{organizationId}/site-preference-groups/{groupId}/{instanceType}": {
|
|
422
527
|
"get": {
|
|
528
|
+
"summary": "Read the custom preferences in a site preference group for a given instance type.",
|
|
529
|
+
"description": "For the specified site and instance, read the custom preferences in the preference group.\nSpecify 'current' to retrieve the preferences for the instance on which this call is being made.\nThe system will recognize its type.\n",
|
|
423
530
|
"operationId": "getSitePreferenceGroup",
|
|
424
531
|
"parameters": [
|
|
425
532
|
{
|
|
426
533
|
"name": "organizationId",
|
|
427
534
|
"in": "path",
|
|
535
|
+
"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).",
|
|
428
536
|
"required": true,
|
|
429
537
|
"style": "simple",
|
|
430
538
|
"explode": false,
|
|
431
539
|
"schema": {
|
|
432
540
|
"$ref": "#/components/schemas/OrganizationId"
|
|
433
|
-
}
|
|
541
|
+
},
|
|
542
|
+
"example": "f_ecom_zzxy_prd"
|
|
434
543
|
},
|
|
435
544
|
{
|
|
436
545
|
"name": "groupId",
|
|
437
546
|
"in": "path",
|
|
547
|
+
"description": "The preference group ID.",
|
|
438
548
|
"required": true,
|
|
439
549
|
"style": "simple",
|
|
440
550
|
"explode": false,
|
|
441
551
|
"schema": {
|
|
442
552
|
"type": "string",
|
|
553
|
+
"example": "WapiStringGroup",
|
|
443
554
|
"maxLength": 256,
|
|
444
555
|
"minLength": 1
|
|
445
556
|
}
|
|
@@ -447,6 +558,7 @@
|
|
|
447
558
|
{
|
|
448
559
|
"name": "instanceType",
|
|
449
560
|
"in": "path",
|
|
561
|
+
"description": "The instance type for which to read or update preferences.",
|
|
450
562
|
"required": true,
|
|
451
563
|
"style": "simple",
|
|
452
564
|
"explode": false,
|
|
@@ -457,28 +569,38 @@
|
|
|
457
569
|
"development",
|
|
458
570
|
"sandbox",
|
|
459
571
|
"production"
|
|
460
|
-
]
|
|
461
|
-
|
|
572
|
+
],
|
|
573
|
+
"example": "staging"
|
|
574
|
+
},
|
|
575
|
+
"example": "staging"
|
|
462
576
|
},
|
|
463
577
|
{
|
|
464
578
|
"name": "maskPasswords",
|
|
465
579
|
"in": "query",
|
|
580
|
+
"description": "The preference values of type Password are masked when set.",
|
|
466
581
|
"required": false,
|
|
467
582
|
"style": "form",
|
|
468
583
|
"explode": true,
|
|
469
584
|
"schema": {
|
|
470
585
|
"type": "boolean",
|
|
471
|
-
"default": false
|
|
586
|
+
"default": false,
|
|
587
|
+
"example": true
|
|
472
588
|
}
|
|
473
589
|
},
|
|
474
590
|
{
|
|
475
591
|
"name": "siteId",
|
|
476
592
|
"in": "query",
|
|
593
|
+
"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.",
|
|
477
594
|
"required": true,
|
|
478
595
|
"style": "form",
|
|
479
596
|
"explode": true,
|
|
480
597
|
"schema": {
|
|
481
598
|
"$ref": "#/components/schemas/SiteId"
|
|
599
|
+
},
|
|
600
|
+
"examples": {
|
|
601
|
+
"SiteId": {
|
|
602
|
+
"value": "RefArch"
|
|
603
|
+
}
|
|
482
604
|
}
|
|
483
605
|
}
|
|
484
606
|
],
|
|
@@ -489,6 +611,11 @@
|
|
|
489
611
|
"application/json": {
|
|
490
612
|
"schema": {
|
|
491
613
|
"$ref": "#/components/schemas/SitePreferences"
|
|
614
|
+
},
|
|
615
|
+
"examples": {
|
|
616
|
+
"GetSitePreferencesExample": {
|
|
617
|
+
"$ref": "#/components/examples/GetSitePreferencesExample"
|
|
618
|
+
}
|
|
492
619
|
}
|
|
493
620
|
}
|
|
494
621
|
}
|
|
@@ -499,6 +626,11 @@
|
|
|
499
626
|
"application/problem+json": {
|
|
500
627
|
"schema": {
|
|
501
628
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
629
|
+
},
|
|
630
|
+
"examples": {
|
|
631
|
+
"IllegalEnumerationValue": {
|
|
632
|
+
"$ref": "#/components/examples/IllegalEnumerationValue"
|
|
633
|
+
}
|
|
502
634
|
}
|
|
503
635
|
}
|
|
504
636
|
}
|
|
@@ -509,6 +641,11 @@
|
|
|
509
641
|
"application/problem+json": {
|
|
510
642
|
"schema": {
|
|
511
643
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
644
|
+
},
|
|
645
|
+
"examples": {
|
|
646
|
+
"CustomPreferenceGroupNotFound": {
|
|
647
|
+
"$ref": "#/components/examples/CustomPreferenceGroupNotFound"
|
|
648
|
+
}
|
|
512
649
|
}
|
|
513
650
|
}
|
|
514
651
|
}
|
|
@@ -524,26 +661,32 @@
|
|
|
524
661
|
]
|
|
525
662
|
},
|
|
526
663
|
"patch": {
|
|
664
|
+
"summary": "Update the custom preferences in a site preference group for a given instance type.",
|
|
665
|
+
"description": "For the specified site and instance, update one or more custom preferences in the preference group.\nPreferences of type password cannot be set to \"************\" since it is a reserved value.\n",
|
|
527
666
|
"operationId": "updateSitePreferenceGroup",
|
|
528
667
|
"parameters": [
|
|
529
668
|
{
|
|
530
669
|
"name": "organizationId",
|
|
531
670
|
"in": "path",
|
|
671
|
+
"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).",
|
|
532
672
|
"required": true,
|
|
533
673
|
"style": "simple",
|
|
534
674
|
"explode": false,
|
|
535
675
|
"schema": {
|
|
536
676
|
"$ref": "#/components/schemas/OrganizationId"
|
|
537
|
-
}
|
|
677
|
+
},
|
|
678
|
+
"example": "f_ecom_zzxy_prd"
|
|
538
679
|
},
|
|
539
680
|
{
|
|
540
681
|
"name": "groupId",
|
|
541
682
|
"in": "path",
|
|
683
|
+
"description": "The preference group ID.",
|
|
542
684
|
"required": true,
|
|
543
685
|
"style": "simple",
|
|
544
686
|
"explode": false,
|
|
545
687
|
"schema": {
|
|
546
688
|
"type": "string",
|
|
689
|
+
"example": "WapiStringGroup",
|
|
547
690
|
"maxLength": 256,
|
|
548
691
|
"minLength": 1
|
|
549
692
|
}
|
|
@@ -551,6 +694,7 @@
|
|
|
551
694
|
{
|
|
552
695
|
"name": "instanceType",
|
|
553
696
|
"in": "path",
|
|
697
|
+
"description": "The instance type for which to read or update preferences.",
|
|
554
698
|
"required": true,
|
|
555
699
|
"style": "simple",
|
|
556
700
|
"explode": false,
|
|
@@ -561,36 +705,52 @@
|
|
|
561
705
|
"development",
|
|
562
706
|
"sandbox",
|
|
563
707
|
"production"
|
|
564
|
-
]
|
|
565
|
-
|
|
708
|
+
],
|
|
709
|
+
"example": "staging"
|
|
710
|
+
},
|
|
711
|
+
"example": "staging"
|
|
566
712
|
},
|
|
567
713
|
{
|
|
568
714
|
"name": "maskPasswords",
|
|
569
715
|
"in": "query",
|
|
716
|
+
"description": "The preference values of type Password are masked when set.",
|
|
570
717
|
"required": false,
|
|
571
718
|
"style": "form",
|
|
572
719
|
"explode": true,
|
|
573
720
|
"schema": {
|
|
574
721
|
"type": "boolean",
|
|
575
|
-
"default": false
|
|
722
|
+
"default": false,
|
|
723
|
+
"example": true
|
|
576
724
|
}
|
|
577
725
|
},
|
|
578
726
|
{
|
|
579
727
|
"name": "siteId",
|
|
580
728
|
"in": "query",
|
|
729
|
+
"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.",
|
|
581
730
|
"required": true,
|
|
582
731
|
"style": "form",
|
|
583
732
|
"explode": true,
|
|
584
733
|
"schema": {
|
|
585
734
|
"$ref": "#/components/schemas/SiteId"
|
|
735
|
+
},
|
|
736
|
+
"examples": {
|
|
737
|
+
"SiteId": {
|
|
738
|
+
"value": "RefArch"
|
|
739
|
+
}
|
|
586
740
|
}
|
|
587
741
|
}
|
|
588
742
|
],
|
|
589
743
|
"requestBody": {
|
|
744
|
+
"description": "The site preferences to update. Custom preference attributes use the \"c_\" prefix.\n",
|
|
590
745
|
"content": {
|
|
591
746
|
"application/json": {
|
|
592
747
|
"schema": {
|
|
593
748
|
"$ref": "#/components/schemas/SitePreferences"
|
|
749
|
+
},
|
|
750
|
+
"examples": {
|
|
751
|
+
"UpdateSitePreferencesRequest": {
|
|
752
|
+
"$ref": "#/components/examples/UpdateSitePreferencesRequest"
|
|
753
|
+
}
|
|
594
754
|
}
|
|
595
755
|
}
|
|
596
756
|
},
|
|
@@ -603,6 +763,11 @@
|
|
|
603
763
|
"application/json": {
|
|
604
764
|
"schema": {
|
|
605
765
|
"$ref": "#/components/schemas/SitePreferences"
|
|
766
|
+
},
|
|
767
|
+
"examples": {
|
|
768
|
+
"UpdateSitePreferencesExample": {
|
|
769
|
+
"$ref": "#/components/examples/UpdateSitePreferencesExample"
|
|
770
|
+
}
|
|
606
771
|
}
|
|
607
772
|
}
|
|
608
773
|
}
|
|
@@ -613,6 +778,11 @@
|
|
|
613
778
|
"application/problem+json": {
|
|
614
779
|
"schema": {
|
|
615
780
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
781
|
+
},
|
|
782
|
+
"examples": {
|
|
783
|
+
"IllegalEnumerationValue": {
|
|
784
|
+
"$ref": "#/components/examples/IllegalEnumerationValue"
|
|
785
|
+
}
|
|
616
786
|
}
|
|
617
787
|
}
|
|
618
788
|
}
|
|
@@ -623,6 +793,11 @@
|
|
|
623
793
|
"application/problem+json": {
|
|
624
794
|
"schema": {
|
|
625
795
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
796
|
+
},
|
|
797
|
+
"examples": {
|
|
798
|
+
"CustomPreferenceGroupNotFound": {
|
|
799
|
+
"$ref": "#/components/examples/CustomPreferenceGroupNotFound"
|
|
800
|
+
}
|
|
626
801
|
}
|
|
627
802
|
}
|
|
628
803
|
}
|
|
@@ -639,26 +814,32 @@
|
|
|
639
814
|
},
|
|
640
815
|
"/organizations/{organizationId}/site-preference-groups/{groupId}/{instanceType}/preference-search": {
|
|
641
816
|
"post": {
|
|
817
|
+
"summary": "Search preferences across sites in a preference group for a given instance type.",
|
|
818
|
+
"description": "Search preferences across sites in the specified preference group and instance.\nThe query attribute specifies a complex query that can be used to narrow down the search.\n\n\nThe following is a list of searchable fields:\n\n| Field | Type |\n|---|---|\n| id | String |\n| display_name | Localized String |\n| description | Localized String |\n| value_type | Enum (see below) |\n\n\nAllowed value_type values: string, int, double, text, html, date, image, boolean, money,\nquantity, datetime, email, password, set_of_string, set_of_int, set_of_double,\nenum_of_string, enum_of_int.\n\n\n**Note:** value_type can only be joined with other attributes using a conjunction (AND).\nOnly searchable attributes can be used in sorting.\n\n\n**Note:** If instance type sandbox is used, the preference values of development instance type\nwill be returned as fallback.\n",
|
|
642
819
|
"operationId": "searchSitePreferences",
|
|
643
820
|
"parameters": [
|
|
644
821
|
{
|
|
645
822
|
"name": "organizationId",
|
|
646
823
|
"in": "path",
|
|
824
|
+
"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).",
|
|
647
825
|
"required": true,
|
|
648
826
|
"style": "simple",
|
|
649
827
|
"explode": false,
|
|
650
828
|
"schema": {
|
|
651
829
|
"$ref": "#/components/schemas/OrganizationId"
|
|
652
|
-
}
|
|
830
|
+
},
|
|
831
|
+
"example": "f_ecom_zzxy_prd"
|
|
653
832
|
},
|
|
654
833
|
{
|
|
655
834
|
"name": "groupId",
|
|
656
835
|
"in": "path",
|
|
836
|
+
"description": "The preference group ID.",
|
|
657
837
|
"required": true,
|
|
658
838
|
"style": "simple",
|
|
659
839
|
"explode": false,
|
|
660
840
|
"schema": {
|
|
661
841
|
"type": "string",
|
|
842
|
+
"example": "WapiStringGroup",
|
|
662
843
|
"maxLength": 256,
|
|
663
844
|
"minLength": 1
|
|
664
845
|
}
|
|
@@ -666,6 +847,7 @@
|
|
|
666
847
|
{
|
|
667
848
|
"name": "instanceType",
|
|
668
849
|
"in": "path",
|
|
850
|
+
"description": "The instance type for which to read or update preferences.",
|
|
669
851
|
"required": true,
|
|
670
852
|
"style": "simple",
|
|
671
853
|
"explode": false,
|
|
@@ -676,23 +858,28 @@
|
|
|
676
858
|
"development",
|
|
677
859
|
"sandbox",
|
|
678
860
|
"production"
|
|
679
|
-
]
|
|
680
|
-
|
|
861
|
+
],
|
|
862
|
+
"example": "staging"
|
|
863
|
+
},
|
|
864
|
+
"example": "staging"
|
|
681
865
|
},
|
|
682
866
|
{
|
|
683
867
|
"name": "maskPasswords",
|
|
684
868
|
"in": "query",
|
|
869
|
+
"description": "The preference values of type Password are masked when set.",
|
|
685
870
|
"required": false,
|
|
686
871
|
"style": "form",
|
|
687
872
|
"explode": true,
|
|
688
873
|
"schema": {
|
|
689
874
|
"type": "boolean",
|
|
690
|
-
"default": false
|
|
875
|
+
"default": false,
|
|
876
|
+
"example": true
|
|
691
877
|
}
|
|
692
878
|
},
|
|
693
879
|
{
|
|
694
880
|
"name": "expand",
|
|
695
881
|
"in": "query",
|
|
882
|
+
"description": "Expands the result document to include additional information. For preference search, the expansion \"value\" retrieves the value definitions of the attribute definition.\n",
|
|
696
883
|
"required": false,
|
|
697
884
|
"style": "form",
|
|
698
885
|
"explode": false,
|
|
@@ -702,16 +889,23 @@
|
|
|
702
889
|
"type": "string",
|
|
703
890
|
"enum": [
|
|
704
891
|
"value"
|
|
705
|
-
]
|
|
892
|
+
],
|
|
893
|
+
"example": "value"
|
|
706
894
|
}
|
|
707
895
|
}
|
|
708
896
|
}
|
|
709
897
|
],
|
|
710
898
|
"requestBody": {
|
|
899
|
+
"description": "The search request document.",
|
|
711
900
|
"content": {
|
|
712
901
|
"application/json": {
|
|
713
902
|
"schema": {
|
|
714
903
|
"$ref": "#/components/schemas/SearchRequest"
|
|
904
|
+
},
|
|
905
|
+
"examples": {
|
|
906
|
+
"SearchSitePreferencesRequest": {
|
|
907
|
+
"$ref": "#/components/examples/SearchSitePreferencesRequest"
|
|
908
|
+
}
|
|
715
909
|
}
|
|
716
910
|
}
|
|
717
911
|
},
|
|
@@ -724,6 +918,14 @@
|
|
|
724
918
|
"application/json": {
|
|
725
919
|
"schema": {
|
|
726
920
|
"$ref": "#/components/schemas/PreferenceValueSearchResult"
|
|
921
|
+
},
|
|
922
|
+
"examples": {
|
|
923
|
+
"PreferenceSearchExample": {
|
|
924
|
+
"$ref": "#/components/examples/PreferenceSearchExample"
|
|
925
|
+
},
|
|
926
|
+
"PreferenceSearchWithExpandValueExample": {
|
|
927
|
+
"$ref": "#/components/examples/PreferenceSearchWithExpandValueExample"
|
|
928
|
+
}
|
|
727
929
|
}
|
|
728
930
|
}
|
|
729
931
|
}
|
|
@@ -734,6 +936,14 @@
|
|
|
734
936
|
"application/problem+json": {
|
|
735
937
|
"schema": {
|
|
736
938
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
939
|
+
},
|
|
940
|
+
"examples": {
|
|
941
|
+
"IllegalEnumerationValue": {
|
|
942
|
+
"$ref": "#/components/examples/IllegalEnumerationValue"
|
|
943
|
+
},
|
|
944
|
+
"FieldNotSortable": {
|
|
945
|
+
"$ref": "#/components/examples/FieldNotSortable"
|
|
946
|
+
}
|
|
737
947
|
}
|
|
738
948
|
}
|
|
739
949
|
}
|
|
@@ -744,6 +954,11 @@
|
|
|
744
954
|
"application/problem+json": {
|
|
745
955
|
"schema": {
|
|
746
956
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
957
|
+
},
|
|
958
|
+
"examples": {
|
|
959
|
+
"CustomPreferenceGroupNotFound": {
|
|
960
|
+
"$ref": "#/components/examples/CustomPreferenceGroupNotFound"
|
|
961
|
+
}
|
|
747
962
|
}
|
|
748
963
|
}
|
|
749
964
|
}
|
|
@@ -761,26 +976,32 @@
|
|
|
761
976
|
},
|
|
762
977
|
"/organizations/{organizationId}/site-preference-groups/{groupId}/{instanceType}/preferences/{preferenceId}": {
|
|
763
978
|
"get": {
|
|
979
|
+
"summary": "Read a single preference value across sites in a preference group for a given instance type.",
|
|
980
|
+
"description": "Read a specific preference value identified by its ID within the given preference group\nand instance type. Returns the preference value for all sites.\n",
|
|
764
981
|
"operationId": "getSitePreference",
|
|
765
982
|
"parameters": [
|
|
766
983
|
{
|
|
767
984
|
"name": "organizationId",
|
|
768
985
|
"in": "path",
|
|
986
|
+
"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).",
|
|
769
987
|
"required": true,
|
|
770
988
|
"style": "simple",
|
|
771
989
|
"explode": false,
|
|
772
990
|
"schema": {
|
|
773
991
|
"$ref": "#/components/schemas/OrganizationId"
|
|
774
|
-
}
|
|
992
|
+
},
|
|
993
|
+
"example": "f_ecom_zzxy_prd"
|
|
775
994
|
},
|
|
776
995
|
{
|
|
777
996
|
"name": "groupId",
|
|
778
997
|
"in": "path",
|
|
998
|
+
"description": "The preference group ID.",
|
|
779
999
|
"required": true,
|
|
780
1000
|
"style": "simple",
|
|
781
1001
|
"explode": false,
|
|
782
1002
|
"schema": {
|
|
783
1003
|
"type": "string",
|
|
1004
|
+
"example": "WapiStringGroup",
|
|
784
1005
|
"maxLength": 256,
|
|
785
1006
|
"minLength": 1
|
|
786
1007
|
}
|
|
@@ -788,6 +1009,7 @@
|
|
|
788
1009
|
{
|
|
789
1010
|
"name": "instanceType",
|
|
790
1011
|
"in": "path",
|
|
1012
|
+
"description": "The instance type for which to read or update preferences.",
|
|
791
1013
|
"required": true,
|
|
792
1014
|
"style": "simple",
|
|
793
1015
|
"explode": false,
|
|
@@ -798,17 +1020,21 @@
|
|
|
798
1020
|
"development",
|
|
799
1021
|
"sandbox",
|
|
800
1022
|
"production"
|
|
801
|
-
]
|
|
802
|
-
|
|
1023
|
+
],
|
|
1024
|
+
"example": "staging"
|
|
1025
|
+
},
|
|
1026
|
+
"example": "staging"
|
|
803
1027
|
},
|
|
804
1028
|
{
|
|
805
1029
|
"name": "preferenceId",
|
|
806
1030
|
"in": "path",
|
|
1031
|
+
"description": "The preference attribute ID.",
|
|
807
1032
|
"required": true,
|
|
808
1033
|
"style": "simple",
|
|
809
1034
|
"explode": false,
|
|
810
1035
|
"schema": {
|
|
811
1036
|
"type": "string",
|
|
1037
|
+
"example": "WapiStringAttr",
|
|
812
1038
|
"maxLength": 256,
|
|
813
1039
|
"minLength": 1
|
|
814
1040
|
}
|
|
@@ -816,12 +1042,14 @@
|
|
|
816
1042
|
{
|
|
817
1043
|
"name": "maskPasswords",
|
|
818
1044
|
"in": "query",
|
|
1045
|
+
"description": "The preference values of type Password are masked when set.",
|
|
819
1046
|
"required": false,
|
|
820
1047
|
"style": "form",
|
|
821
1048
|
"explode": true,
|
|
822
1049
|
"schema": {
|
|
823
1050
|
"type": "boolean",
|
|
824
|
-
"default": false
|
|
1051
|
+
"default": false,
|
|
1052
|
+
"example": true
|
|
825
1053
|
}
|
|
826
1054
|
}
|
|
827
1055
|
],
|
|
@@ -832,6 +1060,14 @@
|
|
|
832
1060
|
"application/json": {
|
|
833
1061
|
"schema": {
|
|
834
1062
|
"$ref": "#/components/schemas/PreferenceValue"
|
|
1063
|
+
},
|
|
1064
|
+
"examples": {
|
|
1065
|
+
"GetPreferenceValueExample": {
|
|
1066
|
+
"$ref": "#/components/examples/GetPreferenceValueExample"
|
|
1067
|
+
},
|
|
1068
|
+
"GetPreferenceValueMultiSiteExample": {
|
|
1069
|
+
"$ref": "#/components/examples/GetPreferenceValueMultiSiteExample"
|
|
1070
|
+
}
|
|
835
1071
|
}
|
|
836
1072
|
}
|
|
837
1073
|
}
|
|
@@ -842,6 +1078,11 @@
|
|
|
842
1078
|
"application/problem+json": {
|
|
843
1079
|
"schema": {
|
|
844
1080
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
1081
|
+
},
|
|
1082
|
+
"examples": {
|
|
1083
|
+
"IllegalEnumerationValue": {
|
|
1084
|
+
"$ref": "#/components/examples/IllegalEnumerationValue"
|
|
1085
|
+
}
|
|
845
1086
|
}
|
|
846
1087
|
}
|
|
847
1088
|
}
|
|
@@ -852,6 +1093,14 @@
|
|
|
852
1093
|
"application/problem+json": {
|
|
853
1094
|
"schema": {
|
|
854
1095
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
1096
|
+
},
|
|
1097
|
+
"examples": {
|
|
1098
|
+
"CustomPreferenceGroupNotFound": {
|
|
1099
|
+
"$ref": "#/components/examples/CustomPreferenceGroupNotFound"
|
|
1100
|
+
},
|
|
1101
|
+
"PreferenceNotFound": {
|
|
1102
|
+
"$ref": "#/components/examples/PreferenceNotFound"
|
|
1103
|
+
}
|
|
855
1104
|
}
|
|
856
1105
|
}
|
|
857
1106
|
}
|
|
@@ -867,26 +1116,32 @@
|
|
|
867
1116
|
]
|
|
868
1117
|
},
|
|
869
1118
|
"patch": {
|
|
1119
|
+
"summary": "Update a single preference value across sites in a preference group for a given instance type.",
|
|
1120
|
+
"description": "Update a specific preference value identified by its ID within the given preference group\nand instance type. The siteValues map specifies the new values per site.\n",
|
|
870
1121
|
"operationId": "updateSitePreference",
|
|
871
1122
|
"parameters": [
|
|
872
1123
|
{
|
|
873
1124
|
"name": "organizationId",
|
|
874
1125
|
"in": "path",
|
|
1126
|
+
"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).",
|
|
875
1127
|
"required": true,
|
|
876
1128
|
"style": "simple",
|
|
877
1129
|
"explode": false,
|
|
878
1130
|
"schema": {
|
|
879
1131
|
"$ref": "#/components/schemas/OrganizationId"
|
|
880
|
-
}
|
|
1132
|
+
},
|
|
1133
|
+
"example": "f_ecom_zzxy_prd"
|
|
881
1134
|
},
|
|
882
1135
|
{
|
|
883
1136
|
"name": "groupId",
|
|
884
1137
|
"in": "path",
|
|
1138
|
+
"description": "The preference group ID.",
|
|
885
1139
|
"required": true,
|
|
886
1140
|
"style": "simple",
|
|
887
1141
|
"explode": false,
|
|
888
1142
|
"schema": {
|
|
889
1143
|
"type": "string",
|
|
1144
|
+
"example": "WapiStringGroup",
|
|
890
1145
|
"maxLength": 256,
|
|
891
1146
|
"minLength": 1
|
|
892
1147
|
}
|
|
@@ -894,6 +1149,7 @@
|
|
|
894
1149
|
{
|
|
895
1150
|
"name": "instanceType",
|
|
896
1151
|
"in": "path",
|
|
1152
|
+
"description": "The instance type for which to read or update preferences.",
|
|
897
1153
|
"required": true,
|
|
898
1154
|
"style": "simple",
|
|
899
1155
|
"explode": false,
|
|
@@ -904,17 +1160,21 @@
|
|
|
904
1160
|
"development",
|
|
905
1161
|
"sandbox",
|
|
906
1162
|
"production"
|
|
907
|
-
]
|
|
908
|
-
|
|
1163
|
+
],
|
|
1164
|
+
"example": "staging"
|
|
1165
|
+
},
|
|
1166
|
+
"example": "staging"
|
|
909
1167
|
},
|
|
910
1168
|
{
|
|
911
1169
|
"name": "preferenceId",
|
|
912
1170
|
"in": "path",
|
|
1171
|
+
"description": "The preference attribute ID.",
|
|
913
1172
|
"required": true,
|
|
914
1173
|
"style": "simple",
|
|
915
1174
|
"explode": false,
|
|
916
1175
|
"schema": {
|
|
917
1176
|
"type": "string",
|
|
1177
|
+
"example": "WapiStringAttr",
|
|
918
1178
|
"maxLength": 256,
|
|
919
1179
|
"minLength": 1
|
|
920
1180
|
}
|
|
@@ -922,20 +1182,28 @@
|
|
|
922
1182
|
{
|
|
923
1183
|
"name": "maskPasswords",
|
|
924
1184
|
"in": "query",
|
|
1185
|
+
"description": "The preference values of type Password are masked when set.",
|
|
925
1186
|
"required": false,
|
|
926
1187
|
"style": "form",
|
|
927
1188
|
"explode": true,
|
|
928
1189
|
"schema": {
|
|
929
1190
|
"type": "boolean",
|
|
930
|
-
"default": false
|
|
1191
|
+
"default": false,
|
|
1192
|
+
"example": true
|
|
931
1193
|
}
|
|
932
1194
|
}
|
|
933
1195
|
],
|
|
934
1196
|
"requestBody": {
|
|
1197
|
+
"description": "The preference value to update with site-specific values.",
|
|
935
1198
|
"content": {
|
|
936
1199
|
"application/json": {
|
|
937
1200
|
"schema": {
|
|
938
1201
|
"$ref": "#/components/schemas/PreferenceValue"
|
|
1202
|
+
},
|
|
1203
|
+
"examples": {
|
|
1204
|
+
"UpdateSitePreferenceValueRequest": {
|
|
1205
|
+
"$ref": "#/components/examples/UpdateSitePreferenceValueRequest"
|
|
1206
|
+
}
|
|
939
1207
|
}
|
|
940
1208
|
}
|
|
941
1209
|
},
|
|
@@ -948,6 +1216,11 @@
|
|
|
948
1216
|
"application/json": {
|
|
949
1217
|
"schema": {
|
|
950
1218
|
"$ref": "#/components/schemas/PreferenceValue"
|
|
1219
|
+
},
|
|
1220
|
+
"examples": {
|
|
1221
|
+
"UpdatePreferenceValueExample": {
|
|
1222
|
+
"$ref": "#/components/examples/UpdatePreferenceValueExample"
|
|
1223
|
+
}
|
|
951
1224
|
}
|
|
952
1225
|
}
|
|
953
1226
|
}
|
|
@@ -958,6 +1231,11 @@
|
|
|
958
1231
|
"application/problem+json": {
|
|
959
1232
|
"schema": {
|
|
960
1233
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
1234
|
+
},
|
|
1235
|
+
"examples": {
|
|
1236
|
+
"IllegalEnumerationValue": {
|
|
1237
|
+
"$ref": "#/components/examples/IllegalEnumerationValue"
|
|
1238
|
+
}
|
|
961
1239
|
}
|
|
962
1240
|
}
|
|
963
1241
|
}
|
|
@@ -968,6 +1246,14 @@
|
|
|
968
1246
|
"application/problem+json": {
|
|
969
1247
|
"schema": {
|
|
970
1248
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
1249
|
+
},
|
|
1250
|
+
"examples": {
|
|
1251
|
+
"CustomPreferenceGroupNotFound": {
|
|
1252
|
+
"$ref": "#/components/examples/CustomPreferenceGroupNotFound"
|
|
1253
|
+
},
|
|
1254
|
+
"PreferenceNotFound": {
|
|
1255
|
+
"$ref": "#/components/examples/PreferenceNotFound"
|
|
1256
|
+
}
|
|
971
1257
|
}
|
|
972
1258
|
}
|
|
973
1259
|
}
|
|
@@ -987,20 +1273,27 @@
|
|
|
987
1273
|
"schemas": {
|
|
988
1274
|
"OrganizationId": {
|
|
989
1275
|
"type": "string",
|
|
1276
|
+
"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).",
|
|
1277
|
+
"example": "f_ecom_zzxy_prd",
|
|
990
1278
|
"pattern": "^f_ecom_[a-z]{4}_(prd|stg|dev|s[0-9]{2}|[0-9]{3})$"
|
|
991
1279
|
},
|
|
992
1280
|
"Total": {
|
|
993
1281
|
"type": "integer",
|
|
994
1282
|
"format": "int32",
|
|
995
1283
|
"default": 0,
|
|
1284
|
+
"description": "The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.",
|
|
1285
|
+
"example": 10,
|
|
996
1286
|
"minimum": 0
|
|
997
1287
|
},
|
|
998
1288
|
"ResultBase": {
|
|
999
1289
|
"type": "object",
|
|
1290
|
+
"description": "Schema defining generic list result. Each response schema of a resource requiring a list response should extend this schema. \nAdditionally it needs to be defined what data is returned.",
|
|
1000
1291
|
"properties": {
|
|
1001
1292
|
"limit": {
|
|
1002
1293
|
"type": "integer",
|
|
1003
|
-
"format": "int32"
|
|
1294
|
+
"format": "int32",
|
|
1295
|
+
"description": "Maximum records to retrieve per request. The limit with its constraints (minimum, maximum, default) is defined by the request parameter `limit` of the endpoint returning this schema.",
|
|
1296
|
+
"example": 10
|
|
1004
1297
|
},
|
|
1005
1298
|
"total": {
|
|
1006
1299
|
"$ref": "#/components/schemas/Total"
|
|
@@ -1015,6 +1308,8 @@
|
|
|
1015
1308
|
"type": "integer",
|
|
1016
1309
|
"format": "int32",
|
|
1017
1310
|
"default": 0,
|
|
1311
|
+
"description": "The zero-based index of the first hit/data to include in the result.",
|
|
1312
|
+
"example": 0,
|
|
1018
1313
|
"minimum": 0
|
|
1019
1314
|
},
|
|
1020
1315
|
"PaginatedResultBase": {
|
|
@@ -1023,6 +1318,7 @@
|
|
|
1023
1318
|
"$ref": "#/components/schemas/ResultBase"
|
|
1024
1319
|
}
|
|
1025
1320
|
],
|
|
1321
|
+
"description": "Schema defining generic pageable result. Each response schema of a resource requiring pagination should extend this schema. \nIf you use this extend this schema directly, it needs to be defined what data is returned. Allowed names for the data field is `data`.",
|
|
1026
1322
|
"properties": {
|
|
1027
1323
|
"offset": {
|
|
1028
1324
|
"$ref": "#/components/schemas/Offset"
|
|
@@ -1036,14 +1332,19 @@
|
|
|
1036
1332
|
},
|
|
1037
1333
|
"CustomPreference": {
|
|
1038
1334
|
"type": "object",
|
|
1335
|
+
"description": "Preference object",
|
|
1039
1336
|
"properties": {
|
|
1040
1337
|
"groupId": {
|
|
1041
|
-
"type": "string"
|
|
1338
|
+
"type": "string",
|
|
1339
|
+
"description": "The ID of the preference group."
|
|
1042
1340
|
},
|
|
1043
1341
|
"id": {
|
|
1044
|
-
"type": "string"
|
|
1342
|
+
"type": "string",
|
|
1343
|
+
"description": "The Preference Id."
|
|
1045
1344
|
},
|
|
1046
|
-
"value": {
|
|
1345
|
+
"value": {
|
|
1346
|
+
"description": "The value for the Preference Id."
|
|
1347
|
+
}
|
|
1047
1348
|
},
|
|
1048
1349
|
"required": [
|
|
1049
1350
|
"groupId",
|
|
@@ -1057,9 +1358,11 @@
|
|
|
1057
1358
|
"$ref": "#/components/schemas/PaginatedResultBase"
|
|
1058
1359
|
}
|
|
1059
1360
|
],
|
|
1361
|
+
"description": "Document representing a Custom Preference result.",
|
|
1060
1362
|
"properties": {
|
|
1061
1363
|
"data": {
|
|
1062
1364
|
"type": "array",
|
|
1365
|
+
"description": "The list of custom preferences in the search result.",
|
|
1063
1366
|
"items": {
|
|
1064
1367
|
"$ref": "#/components/schemas/CustomPreference"
|
|
1065
1368
|
}
|
|
@@ -1078,17 +1381,25 @@
|
|
|
1078
1381
|
"properties": {
|
|
1079
1382
|
"title": {
|
|
1080
1383
|
"type": "string",
|
|
1384
|
+
"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",
|
|
1385
|
+
"example": "You do not have enough credit",
|
|
1081
1386
|
"maxLength": 256
|
|
1082
1387
|
},
|
|
1083
1388
|
"type": {
|
|
1084
1389
|
"type": "string",
|
|
1390
|
+
"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",
|
|
1391
|
+
"example": "NotEnoughMoney",
|
|
1085
1392
|
"maxLength": 2048
|
|
1086
1393
|
},
|
|
1087
1394
|
"detail": {
|
|
1088
|
-
"type": "string"
|
|
1395
|
+
"type": "string",
|
|
1396
|
+
"description": "A human-readable explanation specific to this occurrence of the problem.",
|
|
1397
|
+
"example": "Your current balance is 30, but that costs 50"
|
|
1089
1398
|
},
|
|
1090
1399
|
"instance": {
|
|
1091
1400
|
"type": "string",
|
|
1401
|
+
"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",
|
|
1402
|
+
"example": "/account/12345/msgs/abc",
|
|
1092
1403
|
"maxLength": 2048
|
|
1093
1404
|
}
|
|
1094
1405
|
},
|
|
@@ -1100,19 +1411,26 @@
|
|
|
1100
1411
|
},
|
|
1101
1412
|
"SiteId": {
|
|
1102
1413
|
"type": "string",
|
|
1414
|
+
"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",
|
|
1415
|
+
"example": "RefArch",
|
|
1103
1416
|
"maxLength": 32,
|
|
1104
1417
|
"minLength": 1
|
|
1105
1418
|
},
|
|
1106
1419
|
"CustomerListLink": {
|
|
1107
1420
|
"type": "object",
|
|
1421
|
+
"description": "Document representing a link to a customer list.",
|
|
1108
1422
|
"properties": {
|
|
1109
1423
|
"customerListId": {
|
|
1110
1424
|
"type": "string",
|
|
1425
|
+
"description": "The customer list identifier",
|
|
1426
|
+
"example": "customer-list-1",
|
|
1111
1427
|
"maxLength": 256,
|
|
1112
1428
|
"minLength": 1
|
|
1113
1429
|
},
|
|
1114
1430
|
"title": {
|
|
1115
1431
|
"type": "string",
|
|
1432
|
+
"description": "The title of the customer list link",
|
|
1433
|
+
"example": "Default Customer List",
|
|
1116
1434
|
"maxLength": 256
|
|
1117
1435
|
}
|
|
1118
1436
|
}
|
|
@@ -1125,57 +1443,99 @@
|
|
|
1125
1443
|
{
|
|
1126
1444
|
"$ref": "#/components/schemas/SiteId"
|
|
1127
1445
|
}
|
|
1128
|
-
]
|
|
1446
|
+
],
|
|
1447
|
+
"description": "The ID of the site.",
|
|
1448
|
+
"title": "ID"
|
|
1129
1449
|
},
|
|
1130
1450
|
"displayName": {
|
|
1131
1451
|
"type": "object",
|
|
1132
1452
|
"additionalProperties": {
|
|
1133
1453
|
"type": "string",
|
|
1454
|
+
"description": "Localized string",
|
|
1455
|
+
"example": "Site Display Name",
|
|
1134
1456
|
"maxLength": 4000
|
|
1135
|
-
}
|
|
1457
|
+
},
|
|
1458
|
+
"description": "B2C Commerce API - Localization doc: https://developer.salesforce.com/docs/commerce/commerce-api/guide/b2c-localization.html",
|
|
1459
|
+
"example": {
|
|
1460
|
+
"default": "Site Display Name",
|
|
1461
|
+
"en-US": "Site Display Name",
|
|
1462
|
+
"de-DE": "Site-Anzeigename",
|
|
1463
|
+
"ja-JP": "サイト表示名"
|
|
1464
|
+
},
|
|
1465
|
+
"x-format": "localized"
|
|
1136
1466
|
},
|
|
1137
1467
|
"description": {
|
|
1138
1468
|
"type": "object",
|
|
1139
1469
|
"additionalProperties": {
|
|
1140
1470
|
"type": "string",
|
|
1471
|
+
"description": "Localized string",
|
|
1472
|
+
"example": "Site Description",
|
|
1141
1473
|
"maxLength": 4000
|
|
1142
|
-
}
|
|
1474
|
+
},
|
|
1475
|
+
"description": "B2C Commerce API - Localization doc: https://developer.salesforce.com/docs/commerce/commerce-api/guide/b2c-localization.html",
|
|
1476
|
+
"example": {
|
|
1477
|
+
"default": "Site Description",
|
|
1478
|
+
"en-US": "Site Description",
|
|
1479
|
+
"de-DE": "Site-Beschreibung",
|
|
1480
|
+
"ja-JP": "サイトの説明"
|
|
1481
|
+
},
|
|
1482
|
+
"x-format": "localized"
|
|
1143
1483
|
},
|
|
1144
1484
|
"customerListLink": {
|
|
1145
1485
|
"allOf": [
|
|
1146
1486
|
{
|
|
1147
1487
|
"$ref": "#/components/schemas/CustomerListLink"
|
|
1148
1488
|
}
|
|
1149
|
-
]
|
|
1489
|
+
],
|
|
1490
|
+
"description": "The link to the customer list"
|
|
1150
1491
|
},
|
|
1151
1492
|
"inDeletion": {
|
|
1152
|
-
"type": "boolean"
|
|
1493
|
+
"type": "boolean",
|
|
1494
|
+
"description": "Specifies whether the site status is in deletion (true) or not (false)",
|
|
1495
|
+
"example": false
|
|
1153
1496
|
},
|
|
1154
1497
|
"storefrontStatus": {
|
|
1155
1498
|
"type": "string",
|
|
1499
|
+
"description": "Status of the storefront",
|
|
1156
1500
|
"enum": [
|
|
1157
1501
|
"online",
|
|
1158
1502
|
"maintenance",
|
|
1159
1503
|
"to_be_deleted",
|
|
1160
1504
|
"protected"
|
|
1161
|
-
]
|
|
1505
|
+
],
|
|
1506
|
+
"example": "online"
|
|
1162
1507
|
},
|
|
1163
1508
|
"siteCatalogId": {
|
|
1164
1509
|
"type": "string",
|
|
1510
|
+
"description": "The catalog bound to the given site.",
|
|
1511
|
+
"example": "storefront-catalog-m-en",
|
|
1165
1512
|
"maxLength": 256,
|
|
1166
1513
|
"minLength": 1
|
|
1167
1514
|
},
|
|
1168
1515
|
"cartridges": {
|
|
1169
1516
|
"type": "string",
|
|
1517
|
+
"description": "The effective cartridge path for the site, delimited by ':'. Includes both system cartridges and the site's custom cartridges (see `customCartridges`).",
|
|
1518
|
+
"example": "app_storefront_base:plugin_apple_pay:plugin_facebook:plugin_payments:plugin_pinterest_commerce:plugin_web_payments:bc_content:core",
|
|
1519
|
+
"maxLength": 4000,
|
|
1520
|
+
"readOnly": true
|
|
1521
|
+
},
|
|
1522
|
+
"customCartridges": {
|
|
1523
|
+
"type": "string",
|
|
1524
|
+
"description": "The custom cartridge path assigned to the site, delimited by ':'. Does not include system cartridges. This is the subset of `cartridges` that can be configured for the site.",
|
|
1525
|
+
"example": "app_storefront_base",
|
|
1170
1526
|
"maxLength": 4000
|
|
1171
1527
|
},
|
|
1172
1528
|
"creationDate": {
|
|
1173
1529
|
"type": "string",
|
|
1174
|
-
"format": "date-time"
|
|
1530
|
+
"format": "date-time",
|
|
1531
|
+
"description": "The timestamp when the site was created.",
|
|
1532
|
+
"example": "2024-01-15T10:00:00Z"
|
|
1175
1533
|
},
|
|
1176
1534
|
"lastModified": {
|
|
1177
1535
|
"type": "string",
|
|
1178
|
-
"format": "date-time"
|
|
1536
|
+
"format": "date-time",
|
|
1537
|
+
"description": "The timestamp when the site was last modified.",
|
|
1538
|
+
"example": "2024-10-14T15:30:00Z"
|
|
1179
1539
|
}
|
|
1180
1540
|
},
|
|
1181
1541
|
"required": [
|
|
@@ -1185,6 +1545,7 @@
|
|
|
1185
1545
|
"SitePreferences": {
|
|
1186
1546
|
"type": "object",
|
|
1187
1547
|
"additionalProperties": true,
|
|
1548
|
+
"description": "Represents custom preferences at the site level within a preference group. Custom preference attributes are returned with the \"c_\" prefix.\n",
|
|
1188
1549
|
"properties": {
|
|
1189
1550
|
"site": {
|
|
1190
1551
|
"$ref": "#/components/schemas/Site"
|
|
@@ -1194,9 +1555,11 @@
|
|
|
1194
1555
|
"OrganizationPreferences": {
|
|
1195
1556
|
"type": "object",
|
|
1196
1557
|
"additionalProperties": true,
|
|
1558
|
+
"description": "Represents custom preferences at the global (organization) level within a preference group. Custom preference attributes are returned with the \"c_\" prefix.\n",
|
|
1197
1559
|
"properties": {
|
|
1198
1560
|
"sitePreferences": {
|
|
1199
1561
|
"type": "array",
|
|
1562
|
+
"description": "The list of site-specific preferences, returned when expand=sites.",
|
|
1200
1563
|
"items": {
|
|
1201
1564
|
"$ref": "#/components/schemas/SitePreferences"
|
|
1202
1565
|
}
|
|
@@ -1206,6 +1569,28 @@
|
|
|
1206
1569
|
"Query": {
|
|
1207
1570
|
"type": "object",
|
|
1208
1571
|
"additionalProperties": false,
|
|
1572
|
+
"description": "A set of objects that define criteria used to select records. A query can contain one of the following:\n* `MatchAllQuery`\n - Matches all documents.\n* `TermQuery`\n - Matches one or more documents against one or more document fields.\n* `TextQuery`\n - Matches text against one or more fields.\n* `BoolQuery`\n - Allows construction of a logical expression of multiple queries.\n* `FilteredQuery`\n - Allows a filter to be applied to a query.\n* `NestedQuery`\n - Allows you to query on nested documents.\n - _Only supported by some Commerce APIs. For more details, see the endpoint descriptions in the API documentation._",
|
|
1573
|
+
"example": {
|
|
1574
|
+
"filteredQuery": {
|
|
1575
|
+
"query": {
|
|
1576
|
+
"textQuery": {
|
|
1577
|
+
"fields": [
|
|
1578
|
+
"couponId"
|
|
1579
|
+
],
|
|
1580
|
+
"searchPhrase": "disabled"
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
"filter": {
|
|
1584
|
+
"termFilter": {
|
|
1585
|
+
"field": "enabled",
|
|
1586
|
+
"operator": "is",
|
|
1587
|
+
"values": [
|
|
1588
|
+
false
|
|
1589
|
+
]
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
},
|
|
1209
1594
|
"maxProperties": 1,
|
|
1210
1595
|
"minProperties": 1,
|
|
1211
1596
|
"properties": {
|
|
@@ -1232,21 +1617,58 @@
|
|
|
1232
1617
|
"BoolQuery": {
|
|
1233
1618
|
"type": "object",
|
|
1234
1619
|
"additionalProperties": false,
|
|
1620
|
+
"description": "A boolean query allows construction of full logical expression trees that are composed of other queries (usually term queries and text queries). A boolean query has three sets of clauses:\n \n - `must`, which combines as an `AND` operator.\n - `should`, which combines as an `OR` operator.\n - `must_not`, which combines as a `NOT` operator.\n \nIf `must`, `mustNot`, or `should` appear in the same boolean query, they are combined logically using the `AND` operator. For example:\n\n (must-1 AND must-1 AND ...)\n AND (should-1 OR should-2 OR ...)\n AND NOT (must_not-1 OR must_not-2 OR ...)\n",
|
|
1621
|
+
"example": {
|
|
1622
|
+
"must": [
|
|
1623
|
+
{
|
|
1624
|
+
"textQuery": {
|
|
1625
|
+
"fields": [
|
|
1626
|
+
"couponId"
|
|
1627
|
+
],
|
|
1628
|
+
"searchPhrase": "DEAL"
|
|
1629
|
+
}
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
"textQuery": {
|
|
1633
|
+
"fields": [
|
|
1634
|
+
"description"
|
|
1635
|
+
],
|
|
1636
|
+
"searchPhrase": "Big bargain deal"
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
],
|
|
1640
|
+
"mustNot": [
|
|
1641
|
+
{
|
|
1642
|
+
"termQuery": {
|
|
1643
|
+
"fields": [
|
|
1644
|
+
"enabled"
|
|
1645
|
+
],
|
|
1646
|
+
"operator": "is",
|
|
1647
|
+
"values": [
|
|
1648
|
+
false
|
|
1649
|
+
]
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
]
|
|
1653
|
+
},
|
|
1235
1654
|
"properties": {
|
|
1236
1655
|
"must": {
|
|
1237
1656
|
"type": "array",
|
|
1657
|
+
"description": "List of queries to be evaluated as an `AND` operator.",
|
|
1238
1658
|
"items": {
|
|
1239
1659
|
"$ref": "#/components/schemas/Query"
|
|
1240
1660
|
}
|
|
1241
1661
|
},
|
|
1242
1662
|
"mustNot": {
|
|
1243
1663
|
"type": "array",
|
|
1664
|
+
"description": "List of queries to be evaluated as a `NOT` operator.",
|
|
1244
1665
|
"items": {
|
|
1245
1666
|
"$ref": "#/components/schemas/Query"
|
|
1246
1667
|
}
|
|
1247
1668
|
},
|
|
1248
1669
|
"should": {
|
|
1249
1670
|
"type": "array",
|
|
1671
|
+
"description": "List of queries to be evaluated as an `OR` operator.",
|
|
1250
1672
|
"items": {
|
|
1251
1673
|
"$ref": "#/components/schemas/Query"
|
|
1252
1674
|
}
|
|
@@ -1256,6 +1678,7 @@
|
|
|
1256
1678
|
"Filter": {
|
|
1257
1679
|
"type": "object",
|
|
1258
1680
|
"additionalProperties": false,
|
|
1681
|
+
"description": "Contains a set of objects that define criteria used to select records. A filter can contain one of the following:\n * `TermFilter`\n - Matches records where a field (or fields) exactly matches some simple value (including `null`).\n * `RangeFilter`\n - Matches records where a field value lies within a specified range.\n * `Range2Filter`\n - Matches records in a specified range across fields.\n * `QueryFilter`\n - Matches records based on a query.\n * `BoolFilter`\n - Provides filtering of records using a set of filters combined using a logical operator.",
|
|
1259
1682
|
"maxProperties": 1,
|
|
1260
1683
|
"minProperties": 1,
|
|
1261
1684
|
"properties": {
|
|
@@ -1279,20 +1702,47 @@
|
|
|
1279
1702
|
"BoolFilter": {
|
|
1280
1703
|
"type": "object",
|
|
1281
1704
|
"additionalProperties": false,
|
|
1705
|
+
"description": "Allows you to combine other filters into (possibly recursive) logical expression trees. A boolean filter is composed of a logical operator (`AND`, `OR`, `NOT`) and a list of filters that the operator relates to. Multiple filters can be negated with a single `NOT` operator, even when the filters are combined with the `AND` operator.",
|
|
1706
|
+
"example": {
|
|
1707
|
+
"operator": "and",
|
|
1708
|
+
"filters": [
|
|
1709
|
+
{
|
|
1710
|
+
"termFilter": {
|
|
1711
|
+
"field": "id",
|
|
1712
|
+
"operator": "is",
|
|
1713
|
+
"values": [
|
|
1714
|
+
"myId"
|
|
1715
|
+
]
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"termFilter": {
|
|
1720
|
+
"field": "couponId",
|
|
1721
|
+
"operator": "is",
|
|
1722
|
+
"values": [
|
|
1723
|
+
"couponOne"
|
|
1724
|
+
]
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
]
|
|
1728
|
+
},
|
|
1282
1729
|
"properties": {
|
|
1283
1730
|
"filters": {
|
|
1284
1731
|
"type": "array",
|
|
1732
|
+
"description": "A list of filters that are logically combined by an operator.",
|
|
1285
1733
|
"items": {
|
|
1286
1734
|
"$ref": "#/components/schemas/Filter"
|
|
1287
1735
|
}
|
|
1288
1736
|
},
|
|
1289
1737
|
"operator": {
|
|
1290
1738
|
"type": "string",
|
|
1739
|
+
"description": "The logical operator that is used to combine the filters.",
|
|
1291
1740
|
"enum": [
|
|
1292
1741
|
"and",
|
|
1293
1742
|
"or",
|
|
1294
1743
|
"not"
|
|
1295
|
-
]
|
|
1744
|
+
],
|
|
1745
|
+
"example": "and"
|
|
1296
1746
|
}
|
|
1297
1747
|
},
|
|
1298
1748
|
"required": [
|
|
@@ -1301,6 +1751,7 @@
|
|
|
1301
1751
|
},
|
|
1302
1752
|
"QueryFilter": {
|
|
1303
1753
|
"type": "object",
|
|
1754
|
+
"description": "Wraps any query and allows it to be used as a filter.",
|
|
1304
1755
|
"properties": {
|
|
1305
1756
|
"query": {
|
|
1306
1757
|
"$ref": "#/components/schemas/Query"
|
|
@@ -1312,45 +1763,71 @@
|
|
|
1312
1763
|
},
|
|
1313
1764
|
"Field": {
|
|
1314
1765
|
"type": "string",
|
|
1766
|
+
"description": "Name of the field. Might be a custom field name prefixed with c_.",
|
|
1767
|
+
"example": "couponId",
|
|
1315
1768
|
"maxLength": 260
|
|
1316
1769
|
},
|
|
1317
1770
|
"Range2Filter": {
|
|
1318
1771
|
"type": "object",
|
|
1319
1772
|
"additionalProperties": false,
|
|
1773
|
+
"description": "Allows you to restrict a search result to hits where a range defined by specified attributes has a certain relationship to a specified range.\n\nThe first range (R1) is defined by a pair of attributes (`fromField` and `toField`) that specify the extent of a range, such as attributes `validFrom` and `validTo`.\n\nThe second range (R2) is defined by `fromValue` and `toValue`.\n\nThe filter mode specifies the method used to compare the two ranges:\n\n* `overlap`: R1 overlaps fully or partially with R2.\n* `containing`: R1 contains R2.\n* `contained`: R1 is contained in R2.\n\nThe range filter supports several value types, and relies on the natural sorting of the value type for range interpretation. Value ranges can be open-ended, but only at one end of the range. You can configure whether the lower bounds and upper bounds are inclusive or exclusive.\n\nA range 2 filter is useful for general restrictions that can be shared between searches (like a static date range) because the filter result is cached in memory. Range filters are not appropriate if the range is expected to be different for every query (for example, if the user controls the date range down to the hour via a UI control). Range filters are inclusive by default.",
|
|
1774
|
+
"example": {
|
|
1775
|
+
"fromField": "validFrom",
|
|
1776
|
+
"toField": "validTo",
|
|
1777
|
+
"filterMode": "overlap",
|
|
1778
|
+
"fromValue": "2007-01-01T00:00:00.000Z",
|
|
1779
|
+
"toValue": "2017-01-01T00:00:00.000Z"
|
|
1780
|
+
},
|
|
1320
1781
|
"properties": {
|
|
1321
1782
|
"filterMode": {
|
|
1322
1783
|
"type": "string",
|
|
1323
1784
|
"default": "overlap",
|
|
1785
|
+
"description": "Compare mode: overlap, containing, or contained.",
|
|
1324
1786
|
"enum": [
|
|
1325
1787
|
"overlap",
|
|
1326
1788
|
"containing",
|
|
1327
1789
|
"contained"
|
|
1328
|
-
]
|
|
1790
|
+
],
|
|
1791
|
+
"example": "overlap"
|
|
1329
1792
|
},
|
|
1330
1793
|
"fromField": {
|
|
1331
1794
|
"allOf": [
|
|
1332
1795
|
{
|
|
1333
1796
|
"$ref": "#/components/schemas/Field"
|
|
1334
1797
|
}
|
|
1335
|
-
]
|
|
1798
|
+
],
|
|
1799
|
+
"description": "The field name of the field that starts the first range.",
|
|
1800
|
+
"example": "validFrom"
|
|
1336
1801
|
},
|
|
1337
1802
|
"fromInclusive": {
|
|
1338
1803
|
"type": "boolean",
|
|
1339
|
-
"default": true
|
|
1804
|
+
"default": true,
|
|
1805
|
+
"description": "A flag indicating if the lower bound of the second range is inclusive. To make the lower bound exclusive, set to `false`.",
|
|
1806
|
+
"example": true
|
|
1807
|
+
},
|
|
1808
|
+
"fromValue": {
|
|
1809
|
+
"description": "The lower bound of the second range. If not specified, the range is open-ended with respect to the lower bound. You can't leave both the lower and upper bounds open-ended.",
|
|
1810
|
+
"example": "2007-01-01T00:00:00.000Z"
|
|
1340
1811
|
},
|
|
1341
|
-
"fromValue": {},
|
|
1342
1812
|
"toField": {
|
|
1343
1813
|
"allOf": [
|
|
1344
1814
|
{
|
|
1345
1815
|
"$ref": "#/components/schemas/Field"
|
|
1346
1816
|
}
|
|
1347
|
-
]
|
|
1817
|
+
],
|
|
1818
|
+
"description": "The field name of the field that ends the first range.",
|
|
1819
|
+
"example": "validTo"
|
|
1348
1820
|
},
|
|
1349
1821
|
"toInclusive": {
|
|
1350
1822
|
"type": "boolean",
|
|
1351
|
-
"default": true
|
|
1823
|
+
"default": true,
|
|
1824
|
+
"description": "A flag indicating if the upper bound of the second range is inclusive. To make the lower bound exclusive, set to `false`.",
|
|
1825
|
+
"example": true
|
|
1352
1826
|
},
|
|
1353
|
-
"toValue": {
|
|
1827
|
+
"toValue": {
|
|
1828
|
+
"description": "The upper bound of the second range. If not specified, the range is open-ended with respect to the upper bound. You can't leave both the upper and lower bounds open-ended.",
|
|
1829
|
+
"example": "2017-01-01T00:00:00.000Z"
|
|
1830
|
+
}
|
|
1354
1831
|
},
|
|
1355
1832
|
"required": [
|
|
1356
1833
|
"fromField",
|
|
@@ -1359,49 +1836,64 @@
|
|
|
1359
1836
|
},
|
|
1360
1837
|
"RangeFilter": {
|
|
1361
1838
|
"type": "object",
|
|
1839
|
+
"description": "Allows you to restrict a search result to hits that have values for a given attribute that fall within a given value range. The range filter supports several value types and relies on the natural sorting of the value type for range interpretation. Value ranges can be open-ended, but only at one end of the range. You can configure whether the lower bounds and upper bounds are inclusive or exclusive.\n\nA range filter is useful for general restrictions that can be shared between searches (like a static date range) because the filter result is cached in memory. Range filters are not appropriate if the range is expected to be different for every query (for example, if the user controls the date range down to the hour via a UI control). Range filters are inclusive by default.",
|
|
1362
1840
|
"properties": {
|
|
1363
1841
|
"field": {
|
|
1364
1842
|
"allOf": [
|
|
1365
1843
|
{
|
|
1366
1844
|
"$ref": "#/components/schemas/Field"
|
|
1367
1845
|
}
|
|
1368
|
-
]
|
|
1846
|
+
],
|
|
1847
|
+
"description": "The search field.",
|
|
1848
|
+
"example": "validFrom"
|
|
1369
1849
|
},
|
|
1370
1850
|
"from": {
|
|
1851
|
+
"description": "The lower bound of the filter range. If not specified, the range is open-ended with respect to the lower bound. You can't leave both the lower and upper bounds open-ended.",
|
|
1371
1852
|
"oneOf": [
|
|
1372
1853
|
{
|
|
1373
1854
|
"type": "string",
|
|
1374
|
-
"format": "date-time"
|
|
1855
|
+
"format": "date-time",
|
|
1856
|
+
"example": "2007-01-01T00:00:00Z"
|
|
1375
1857
|
},
|
|
1376
1858
|
{
|
|
1377
|
-
"type": "integer"
|
|
1859
|
+
"type": "integer",
|
|
1860
|
+
"example": 1
|
|
1378
1861
|
},
|
|
1379
1862
|
{
|
|
1380
|
-
"type": "number"
|
|
1863
|
+
"type": "number",
|
|
1864
|
+
"example": 1
|
|
1381
1865
|
}
|
|
1382
1866
|
]
|
|
1383
1867
|
},
|
|
1384
1868
|
"fromInclusive": {
|
|
1385
1869
|
"type": "boolean",
|
|
1386
|
-
"default": true
|
|
1870
|
+
"default": true,
|
|
1871
|
+
"description": "A flag indicating if the lower bound of the range is inclusive. To make the lower bound exclusive, set to `false`.",
|
|
1872
|
+
"example": true
|
|
1387
1873
|
},
|
|
1388
1874
|
"to": {
|
|
1875
|
+
"description": "The upper bound of the filter range. If not specified, the range is open-ended with respect to the upper bound. You can't leave both the upper and lower bounds open-ended.",
|
|
1389
1876
|
"oneOf": [
|
|
1390
1877
|
{
|
|
1391
1878
|
"type": "string",
|
|
1392
|
-
"format": "date-time"
|
|
1879
|
+
"format": "date-time",
|
|
1880
|
+
"example": "2007-01-02T00:00:00Z"
|
|
1393
1881
|
},
|
|
1394
1882
|
{
|
|
1395
|
-
"type": "integer"
|
|
1883
|
+
"type": "integer",
|
|
1884
|
+
"example": 2
|
|
1396
1885
|
},
|
|
1397
1886
|
{
|
|
1398
|
-
"type": "number"
|
|
1887
|
+
"type": "number",
|
|
1888
|
+
"example": 2
|
|
1399
1889
|
}
|
|
1400
1890
|
]
|
|
1401
1891
|
},
|
|
1402
1892
|
"toInclusive": {
|
|
1403
1893
|
"type": "boolean",
|
|
1404
|
-
"default": true
|
|
1894
|
+
"default": true,
|
|
1895
|
+
"description": "A flag indicating if the upper bound of the range is inclusive. To make the upper bound exclusive, set to `false`.",
|
|
1896
|
+
"example": true
|
|
1405
1897
|
}
|
|
1406
1898
|
},
|
|
1407
1899
|
"required": [
|
|
@@ -1411,16 +1903,26 @@
|
|
|
1411
1903
|
"TermFilter": {
|
|
1412
1904
|
"type": "object",
|
|
1413
1905
|
"additionalProperties": false,
|
|
1906
|
+
"description": "Allows you to restrict a search result to hits that match exactly one of the values configured for the filter. A term filter is useful for general restrictions that can be shared between searches. Use term filters whenever the criteria you filter on is a shared property of multiple searches (for example, like filtering by an order status). Use term filters for fields that have a discrete and small set of values only.",
|
|
1907
|
+
"example": {
|
|
1908
|
+
"field": "id",
|
|
1909
|
+
"operator": "is",
|
|
1910
|
+
"values": [
|
|
1911
|
+
"myId"
|
|
1912
|
+
]
|
|
1913
|
+
},
|
|
1414
1914
|
"properties": {
|
|
1415
1915
|
"field": {
|
|
1416
1916
|
"allOf": [
|
|
1417
1917
|
{
|
|
1418
1918
|
"$ref": "#/components/schemas/Field"
|
|
1419
1919
|
}
|
|
1420
|
-
]
|
|
1920
|
+
],
|
|
1921
|
+
"description": "The filter field."
|
|
1421
1922
|
},
|
|
1422
1923
|
"operator": {
|
|
1423
1924
|
"type": "string",
|
|
1925
|
+
"description": "The operator used to compare the field's values with the given values.",
|
|
1424
1926
|
"enum": [
|
|
1425
1927
|
"is",
|
|
1426
1928
|
"one_of",
|
|
@@ -1430,12 +1932,15 @@
|
|
|
1430
1932
|
"greater",
|
|
1431
1933
|
"not_in",
|
|
1432
1934
|
"neq"
|
|
1433
|
-
]
|
|
1935
|
+
],
|
|
1936
|
+
"example": "is"
|
|
1434
1937
|
},
|
|
1435
1938
|
"values": {
|
|
1436
1939
|
"type": "array",
|
|
1940
|
+
"description": "The filter values.",
|
|
1437
1941
|
"items": {
|
|
1438
|
-
"type": "string"
|
|
1942
|
+
"type": "string",
|
|
1943
|
+
"example": "myId"
|
|
1439
1944
|
}
|
|
1440
1945
|
}
|
|
1441
1946
|
},
|
|
@@ -1447,6 +1952,26 @@
|
|
|
1447
1952
|
"FilteredQuery": {
|
|
1448
1953
|
"type": "object",
|
|
1449
1954
|
"additionalProperties": false,
|
|
1955
|
+
"description": "Allows to filter the result of a possibly complex query using a possibly complex filter.",
|
|
1956
|
+
"example": {
|
|
1957
|
+
"query": {
|
|
1958
|
+
"textQuery": {
|
|
1959
|
+
"fields": [
|
|
1960
|
+
"couponId"
|
|
1961
|
+
],
|
|
1962
|
+
"searchPhrase": "disabled"
|
|
1963
|
+
}
|
|
1964
|
+
},
|
|
1965
|
+
"filter": {
|
|
1966
|
+
"termFilter": {
|
|
1967
|
+
"field": "enabled",
|
|
1968
|
+
"operator": "is",
|
|
1969
|
+
"values": [
|
|
1970
|
+
false
|
|
1971
|
+
]
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
},
|
|
1450
1975
|
"properties": {
|
|
1451
1976
|
"filter": {
|
|
1452
1977
|
"$ref": "#/components/schemas/Filter"
|
|
@@ -1461,14 +1986,62 @@
|
|
|
1461
1986
|
]
|
|
1462
1987
|
},
|
|
1463
1988
|
"MatchAllQuery": {
|
|
1464
|
-
"type": "object"
|
|
1989
|
+
"type": "object",
|
|
1990
|
+
"description": "Matches all documents (namespace and document type). This query comes in handy if you just want to filter a search result or really do not have any constraints."
|
|
1465
1991
|
},
|
|
1466
1992
|
"NestedQuery": {
|
|
1467
1993
|
"type": "object",
|
|
1468
1994
|
"additionalProperties": false,
|
|
1995
|
+
"description": "Allows you to query nested documents that are part of a larger document. Say, for example, that you have a main product with variations in one big document, and you want to constrain a search to main products that have variations that match multiple constraints. \n\nA `NestedQuery` is only supported by some Commerce APIs. For more details, see the endpoint descriptions in the API documentation.\n",
|
|
1996
|
+
"example": {
|
|
1997
|
+
"path": "order.shippingAddresses",
|
|
1998
|
+
"query": {
|
|
1999
|
+
"boolQuery": {
|
|
2000
|
+
"must": [
|
|
2001
|
+
{
|
|
2002
|
+
"boolQuery": {
|
|
2003
|
+
"must": [
|
|
2004
|
+
{
|
|
2005
|
+
"termQuery": {
|
|
2006
|
+
"fields": [
|
|
2007
|
+
"order.shippingAddresses.firstName"
|
|
2008
|
+
],
|
|
2009
|
+
"operator": "is",
|
|
2010
|
+
"values": [
|
|
2011
|
+
"John"
|
|
2012
|
+
]
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
]
|
|
2016
|
+
}
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
"boolQuery": {
|
|
2020
|
+
"must": [
|
|
2021
|
+
{
|
|
2022
|
+
"termQuery": {
|
|
2023
|
+
"fields": [
|
|
2024
|
+
"order.shippingAddresses.lastName"
|
|
2025
|
+
],
|
|
2026
|
+
"operator": "is",
|
|
2027
|
+
"values": [
|
|
2028
|
+
"Doe"
|
|
2029
|
+
]
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
]
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
]
|
|
2036
|
+
}
|
|
2037
|
+
},
|
|
2038
|
+
"scoreMode": "avg"
|
|
2039
|
+
},
|
|
1469
2040
|
"properties": {
|
|
1470
2041
|
"path": {
|
|
1471
2042
|
"type": "string",
|
|
2043
|
+
"description": "The path to the nested document.",
|
|
2044
|
+
"example": "order.shippingAddresses",
|
|
1472
2045
|
"maxLength": 2048
|
|
1473
2046
|
},
|
|
1474
2047
|
"query": {
|
|
@@ -1476,12 +2049,14 @@
|
|
|
1476
2049
|
},
|
|
1477
2050
|
"scoreMode": {
|
|
1478
2051
|
"type": "string",
|
|
2052
|
+
"description": "Indicates how scores for matching child objects affect the root parent document’s relevance score.",
|
|
1479
2053
|
"enum": [
|
|
1480
2054
|
"avg",
|
|
1481
2055
|
"total",
|
|
1482
2056
|
"max",
|
|
1483
2057
|
"none"
|
|
1484
|
-
]
|
|
2058
|
+
],
|
|
2059
|
+
"example": "avg"
|
|
1485
2060
|
}
|
|
1486
2061
|
},
|
|
1487
2062
|
"required": [
|
|
@@ -1491,9 +2066,11 @@
|
|
|
1491
2066
|
},
|
|
1492
2067
|
"TermQuery": {
|
|
1493
2068
|
"type": "object",
|
|
2069
|
+
"description": "A term query matches one or more values against one or more document fields. A document is considered a hit if one of the values matches exactly with at least one of the given fields. The operator `is` can only take one value, while `one_of` can take multiple values. If multiple fields are specified, they are combined using a logical `OR` operator.\n\n**Limitations:**\n\n* The `greater` and `less` operators are not supported under certain conditions. Both operators are permitted unless the API documentation states otherwise.\n* A subset of Commerce APIs handle queries with multiple fields differently. If the query has multiple fields, the query is internally handled as a logical `OR` of `DisjointMaxQueries` (with the dismax matching a value against all fields). The dismax makes sure that a document carrying a single term in multiple fields does not get higher scores than a document matching multiple terms in multiple fields.",
|
|
1494
2070
|
"properties": {
|
|
1495
2071
|
"fields": {
|
|
1496
2072
|
"type": "array",
|
|
2073
|
+
"description": "The document fields that the values are matched against, combined with the operator.",
|
|
1497
2074
|
"items": {
|
|
1498
2075
|
"$ref": "#/components/schemas/Field"
|
|
1499
2076
|
},
|
|
@@ -1501,6 +2078,7 @@
|
|
|
1501
2078
|
},
|
|
1502
2079
|
"operator": {
|
|
1503
2080
|
"type": "string",
|
|
2081
|
+
"description": "Returns the operator to use for the term query.",
|
|
1504
2082
|
"enum": [
|
|
1505
2083
|
"is",
|
|
1506
2084
|
"one_of",
|
|
@@ -1510,23 +2088,30 @@
|
|
|
1510
2088
|
"greater",
|
|
1511
2089
|
"not_in",
|
|
1512
2090
|
"neq"
|
|
1513
|
-
]
|
|
2091
|
+
],
|
|
2092
|
+
"example": "is"
|
|
1514
2093
|
},
|
|
1515
2094
|
"values": {
|
|
1516
2095
|
"type": "array",
|
|
2096
|
+
"description": "The values that the fields are compared against, combined with the operator.",
|
|
1517
2097
|
"items": {
|
|
2098
|
+
"example": "myCouponId",
|
|
1518
2099
|
"oneOf": [
|
|
1519
2100
|
{
|
|
1520
|
-
"type": "string"
|
|
2101
|
+
"type": "string",
|
|
2102
|
+
"example": "myCouponId"
|
|
1521
2103
|
},
|
|
1522
2104
|
{
|
|
1523
|
-
"type": "number"
|
|
2105
|
+
"type": "number",
|
|
2106
|
+
"example": 1
|
|
1524
2107
|
},
|
|
1525
2108
|
{
|
|
1526
|
-
"type": "boolean"
|
|
2109
|
+
"type": "boolean",
|
|
2110
|
+
"example": true
|
|
1527
2111
|
},
|
|
1528
2112
|
{
|
|
1529
|
-
"type": "integer"
|
|
2113
|
+
"type": "integer",
|
|
2114
|
+
"example": 1
|
|
1530
2115
|
}
|
|
1531
2116
|
]
|
|
1532
2117
|
}
|
|
@@ -1540,16 +2125,26 @@
|
|
|
1540
2125
|
"TextQuery": {
|
|
1541
2126
|
"type": "object",
|
|
1542
2127
|
"additionalProperties": false,
|
|
2128
|
+
"description": "A text query is used to match some text (for example, a search phrase possibly consisting of multiple terms) against one or more fields. When multiple fields are provided, the phrase conceptually forms a logical `OR` over the fields. In this case, the terms of the phrase basically have to match within the text, that would result in concatenating all given fields.",
|
|
2129
|
+
"example": {
|
|
2130
|
+
"fields": [
|
|
2131
|
+
"couponId"
|
|
2132
|
+
],
|
|
2133
|
+
"searchPhrase": "limit"
|
|
2134
|
+
},
|
|
1543
2135
|
"properties": {
|
|
1544
2136
|
"fields": {
|
|
1545
2137
|
"type": "array",
|
|
2138
|
+
"description": "The document fields that the search phrase matches against.",
|
|
1546
2139
|
"items": {
|
|
1547
2140
|
"$ref": "#/components/schemas/Field"
|
|
1548
2141
|
},
|
|
1549
2142
|
"minItems": 1
|
|
1550
2143
|
},
|
|
1551
2144
|
"searchPhrase": {
|
|
1552
|
-
"type": "string"
|
|
2145
|
+
"type": "string",
|
|
2146
|
+
"description": "A search phrase, which can include multiple terms separated by spaces.",
|
|
2147
|
+
"example": "campaign summer"
|
|
1553
2148
|
}
|
|
1554
2149
|
},
|
|
1555
2150
|
"required": [
|
|
@@ -1560,18 +2155,27 @@
|
|
|
1560
2155
|
"Sort": {
|
|
1561
2156
|
"type": "object",
|
|
1562
2157
|
"additionalProperties": false,
|
|
2158
|
+
"description": "Document representing a sort request. Each API has a different default sort configuration that can be modified in the request.",
|
|
2159
|
+
"example": {
|
|
2160
|
+
"field": "couponId",
|
|
2161
|
+
"sortOrder": "desc"
|
|
2162
|
+
},
|
|
1563
2163
|
"properties": {
|
|
1564
2164
|
"field": {
|
|
1565
2165
|
"type": "string",
|
|
2166
|
+
"description": "The name of the field to sort on.",
|
|
2167
|
+
"example": "couponId",
|
|
1566
2168
|
"maxLength": 256
|
|
1567
2169
|
},
|
|
1568
2170
|
"sortOrder": {
|
|
1569
2171
|
"type": "string",
|
|
1570
2172
|
"default": "asc",
|
|
2173
|
+
"description": "The sort order to be applied when sorting. When omitted, the default sort order (asc) is used.",
|
|
1571
2174
|
"enum": [
|
|
1572
2175
|
"asc",
|
|
1573
2176
|
"desc"
|
|
1574
|
-
]
|
|
2177
|
+
],
|
|
2178
|
+
"example": "asc"
|
|
1575
2179
|
}
|
|
1576
2180
|
},
|
|
1577
2181
|
"required": [
|
|
@@ -1580,10 +2184,13 @@
|
|
|
1580
2184
|
},
|
|
1581
2185
|
"SearchRequest": {
|
|
1582
2186
|
"type": "object",
|
|
2187
|
+
"description": "Document representing a search request for retrieving items within the Data API. The query is a potentially complex set of expressions. The fields and expands that each query supports are defined within the search resource.",
|
|
1583
2188
|
"properties": {
|
|
1584
2189
|
"limit": {
|
|
1585
2190
|
"type": "integer",
|
|
1586
2191
|
"format": "int32",
|
|
2192
|
+
"description": "Maximum records to retrieve per request, not to exceed 200.",
|
|
2193
|
+
"example": 10,
|
|
1587
2194
|
"maximum": 200,
|
|
1588
2195
|
"minimum": 1
|
|
1589
2196
|
},
|
|
@@ -1592,6 +2199,7 @@
|
|
|
1592
2199
|
},
|
|
1593
2200
|
"sorts": {
|
|
1594
2201
|
"type": "array",
|
|
2202
|
+
"description": "The list of sort clauses configured for the search request. Sort clauses are optional. See the description of the search endpoint for details on the default sorting behavior that is used when explicit sorts are not passed.",
|
|
1595
2203
|
"items": {
|
|
1596
2204
|
"$ref": "#/components/schemas/Sort"
|
|
1597
2205
|
}
|
|
@@ -1611,18 +2219,67 @@
|
|
|
1611
2219
|
"$ref": "#/components/schemas/PaginatedResultBase"
|
|
1612
2220
|
}
|
|
1613
2221
|
],
|
|
2222
|
+
"description": "Document representing a generic search result. Each search resource should extend this to define what is returned in the `hits`.",
|
|
2223
|
+
"example": {
|
|
2224
|
+
"limit": 1,
|
|
2225
|
+
"hits": [
|
|
2226
|
+
{
|
|
2227
|
+
"couponId": "coupon1",
|
|
2228
|
+
"creationDate": "2019-10-20T12:00:00Z",
|
|
2229
|
+
"description": "This coupon is used to give 10% off stuff.",
|
|
2230
|
+
"enabled": false,
|
|
2231
|
+
"exportedCodeCount": 0,
|
|
2232
|
+
"lastModified": "2019-10-30T04:23:59Z",
|
|
2233
|
+
"redemptionCount": 3,
|
|
2234
|
+
"redemptionLimits": {
|
|
2235
|
+
"limitPerCode": 1,
|
|
2236
|
+
"limitPerCustomer": 1,
|
|
2237
|
+
"limitPerTimeFrame": {
|
|
2238
|
+
"limit": 2,
|
|
2239
|
+
"redemptionTimeFrame": 24
|
|
2240
|
+
}
|
|
2241
|
+
},
|
|
2242
|
+
"singleCode": "MyCode",
|
|
2243
|
+
"systemCodesConfig": {
|
|
2244
|
+
"codePrefix": "SG",
|
|
2245
|
+
"numberOfCodes": 500000
|
|
2246
|
+
},
|
|
2247
|
+
"totalCodesCount": 50,
|
|
2248
|
+
"type": "single_code"
|
|
2249
|
+
}
|
|
2250
|
+
],
|
|
2251
|
+
"query": {
|
|
2252
|
+
"textQuery": {
|
|
2253
|
+
"fields": [
|
|
2254
|
+
"id",
|
|
2255
|
+
"description"
|
|
2256
|
+
],
|
|
2257
|
+
"searchPhrase": "stuff"
|
|
2258
|
+
}
|
|
2259
|
+
},
|
|
2260
|
+
"sorts": [
|
|
2261
|
+
{
|
|
2262
|
+
"field": "couponId",
|
|
2263
|
+
"sortOrder": "desc"
|
|
2264
|
+
}
|
|
2265
|
+
],
|
|
2266
|
+
"offset": 2,
|
|
2267
|
+
"total": 8
|
|
2268
|
+
},
|
|
1614
2269
|
"properties": {
|
|
1615
2270
|
"query": {
|
|
1616
2271
|
"$ref": "#/components/schemas/Query"
|
|
1617
2272
|
},
|
|
1618
2273
|
"sorts": {
|
|
1619
2274
|
"type": "array",
|
|
2275
|
+
"description": "The sorting that was applied to the result.",
|
|
1620
2276
|
"items": {
|
|
1621
2277
|
"$ref": "#/components/schemas/Sort"
|
|
1622
2278
|
}
|
|
1623
2279
|
},
|
|
1624
2280
|
"hits": {
|
|
1625
2281
|
"type": "array",
|
|
2282
|
+
"description": "The sorted array of search hits. Can be empty.",
|
|
1626
2283
|
"items": {
|
|
1627
2284
|
"type": "object"
|
|
1628
2285
|
}
|
|
@@ -1634,6 +2291,7 @@
|
|
|
1634
2291
|
},
|
|
1635
2292
|
"ValueType": {
|
|
1636
2293
|
"type": "string",
|
|
2294
|
+
"description": "The type of an attribute value",
|
|
1637
2295
|
"enum": [
|
|
1638
2296
|
"string",
|
|
1639
2297
|
"int",
|
|
@@ -1653,18 +2311,24 @@
|
|
|
1653
2311
|
"set_of_double",
|
|
1654
2312
|
"enum_of_string",
|
|
1655
2313
|
"enum_of_int"
|
|
1656
|
-
]
|
|
2314
|
+
],
|
|
2315
|
+
"example": "string"
|
|
1657
2316
|
},
|
|
1658
2317
|
"ObjectAttributeValueDefinition": {
|
|
1659
2318
|
"type": "object",
|
|
2319
|
+
"description": "An attribute definition value",
|
|
1660
2320
|
"properties": {
|
|
1661
2321
|
"id": {
|
|
1662
2322
|
"type": "string",
|
|
2323
|
+
"description": "The ID of the attribute value",
|
|
2324
|
+
"example": "value-1",
|
|
1663
2325
|
"maxLength": 256,
|
|
1664
2326
|
"readOnly": true
|
|
1665
2327
|
},
|
|
1666
2328
|
"value": {
|
|
1667
2329
|
"type": "string",
|
|
2330
|
+
"description": "The value of the attribute",
|
|
2331
|
+
"example": "1",
|
|
1668
2332
|
"maxLength": 4000,
|
|
1669
2333
|
"readOnly": true
|
|
1670
2334
|
},
|
|
@@ -1672,35 +2336,60 @@
|
|
|
1672
2336
|
"type": "object",
|
|
1673
2337
|
"additionalProperties": {
|
|
1674
2338
|
"type": "string",
|
|
2339
|
+
"description": "Localized string",
|
|
2340
|
+
"example": "Localized value",
|
|
1675
2341
|
"maxLength": 4000
|
|
1676
2342
|
},
|
|
1677
|
-
"
|
|
2343
|
+
"description": "B2C Commerce API - Localization doc: https://developer.salesforce.com/docs/commerce/commerce-api/guide/b2c-localization.html",
|
|
2344
|
+
"example": {
|
|
2345
|
+
"default": "One",
|
|
2346
|
+
"de": "Eins",
|
|
2347
|
+
"en": "One"
|
|
2348
|
+
},
|
|
2349
|
+
"readOnly": true,
|
|
2350
|
+
"x-format": "localized"
|
|
1678
2351
|
},
|
|
1679
2352
|
"description": {
|
|
1680
2353
|
"type": "object",
|
|
1681
2354
|
"additionalProperties": {
|
|
1682
2355
|
"type": "string",
|
|
2356
|
+
"description": "Localized string",
|
|
2357
|
+
"example": "Localized value",
|
|
1683
2358
|
"maxLength": 4000
|
|
1684
2359
|
},
|
|
1685
|
-
"
|
|
2360
|
+
"description": "B2C Commerce API - Localization doc: https://developer.salesforce.com/docs/commerce/commerce-api/guide/b2c-localization.html",
|
|
2361
|
+
"example": {
|
|
2362
|
+
"default": "Object type representing products.",
|
|
2363
|
+
"de": "Objekttyp, der Produkte repräsentiert.",
|
|
2364
|
+
"en": "Object type representing products."
|
|
2365
|
+
},
|
|
2366
|
+
"readOnly": true,
|
|
2367
|
+
"x-format": "localized"
|
|
1686
2368
|
},
|
|
1687
2369
|
"position": {
|
|
1688
2370
|
"type": "number",
|
|
1689
2371
|
"format": "double",
|
|
2372
|
+
"description": "The position of the attribute value within the set of attribute values",
|
|
2373
|
+
"example": 1,
|
|
1690
2374
|
"readOnly": true
|
|
1691
2375
|
}
|
|
1692
2376
|
}
|
|
1693
2377
|
},
|
|
1694
2378
|
"ObjectAttributeDefinition": {
|
|
1695
2379
|
"type": "object",
|
|
2380
|
+
"description": "Document representing an attribute definition",
|
|
1696
2381
|
"properties": {
|
|
1697
2382
|
"id": {
|
|
1698
2383
|
"type": "string",
|
|
2384
|
+
"description": "The user supplied ID of the attribute",
|
|
2385
|
+
"example": "color",
|
|
1699
2386
|
"maxLength": 256,
|
|
1700
2387
|
"minLength": 1
|
|
1701
2388
|
},
|
|
1702
2389
|
"effectiveId": {
|
|
1703
2390
|
"type": "string",
|
|
2391
|
+
"description": "The effective ID, which is c_id if the attribute is custom, and just the id otherwise",
|
|
2392
|
+
"example": "c_color",
|
|
1704
2393
|
"maxLength": 256,
|
|
1705
2394
|
"readOnly": true
|
|
1706
2395
|
},
|
|
@@ -1708,108 +2397,179 @@
|
|
|
1708
2397
|
"type": "object",
|
|
1709
2398
|
"additionalProperties": {
|
|
1710
2399
|
"type": "string",
|
|
2400
|
+
"description": "Localized string",
|
|
2401
|
+
"example": "Localized value",
|
|
1711
2402
|
"maxLength": 4000
|
|
1712
|
-
}
|
|
2403
|
+
},
|
|
2404
|
+
"description": "B2C Commerce API - Localization doc: https://developer.salesforce.com/docs/commerce/commerce-api/guide/b2c-localization.html",
|
|
2405
|
+
"example": {
|
|
2406
|
+
"default": "Product",
|
|
2407
|
+
"de": "Produkt",
|
|
2408
|
+
"en": "Product"
|
|
2409
|
+
},
|
|
2410
|
+
"x-format": "localized"
|
|
1713
2411
|
},
|
|
1714
2412
|
"description": {
|
|
1715
2413
|
"type": "object",
|
|
1716
2414
|
"additionalProperties": {
|
|
1717
2415
|
"type": "string",
|
|
2416
|
+
"description": "Localized string",
|
|
2417
|
+
"example": "Localized value",
|
|
1718
2418
|
"maxLength": 4000
|
|
1719
|
-
}
|
|
2419
|
+
},
|
|
2420
|
+
"description": "B2C Commerce API - Localization doc: https://developer.salesforce.com/docs/commerce/commerce-api/guide/b2c-localization.html",
|
|
2421
|
+
"example": {
|
|
2422
|
+
"default": "Object type representing products.",
|
|
2423
|
+
"de": "Objekttyp, der Produkte repräsentiert.",
|
|
2424
|
+
"en": "Object type representing products."
|
|
2425
|
+
},
|
|
2426
|
+
"x-format": "localized"
|
|
1720
2427
|
},
|
|
1721
2428
|
"key": {
|
|
1722
|
-
"type": "boolean"
|
|
2429
|
+
"type": "boolean",
|
|
2430
|
+
"description": "Flag indicating if this is a key attribute",
|
|
2431
|
+
"example": false
|
|
1723
2432
|
},
|
|
1724
2433
|
"mandatory": {
|
|
1725
|
-
"type": "boolean"
|
|
2434
|
+
"type": "boolean",
|
|
2435
|
+
"description": "Flag indicating if a value is mandatory for the attribute",
|
|
2436
|
+
"example": false
|
|
1726
2437
|
},
|
|
1727
2438
|
"localizable": {
|
|
1728
|
-
"type": "boolean"
|
|
2439
|
+
"type": "boolean",
|
|
2440
|
+
"description": "Flag indicating if this attribute can be localized",
|
|
2441
|
+
"example": false
|
|
1729
2442
|
},
|
|
1730
2443
|
"siteSpecific": {
|
|
1731
|
-
"type": "boolean"
|
|
2444
|
+
"type": "boolean",
|
|
2445
|
+
"description": "Flag indicating if this attribute is site-specific",
|
|
2446
|
+
"example": false
|
|
1732
2447
|
},
|
|
1733
2448
|
"searchable": {
|
|
1734
|
-
"type": "boolean"
|
|
2449
|
+
"type": "boolean",
|
|
2450
|
+
"description": "Flag indicating if this attribute is searchable",
|
|
2451
|
+
"example": true
|
|
1735
2452
|
},
|
|
1736
2453
|
"queryable": {
|
|
1737
2454
|
"type": "boolean",
|
|
2455
|
+
"description": "Returns true if the attribute definition is explicitly marked queryable or if the attribute value type belongs to a queryable type. Computed and read-only.",
|
|
2456
|
+
"example": true,
|
|
1738
2457
|
"readOnly": true
|
|
1739
2458
|
},
|
|
1740
2459
|
"valueType": {
|
|
1741
2460
|
"$ref": "#/components/schemas/ValueType"
|
|
1742
2461
|
},
|
|
1743
2462
|
"visible": {
|
|
1744
|
-
"type": "boolean"
|
|
2463
|
+
"type": "boolean",
|
|
2464
|
+
"description": "Flag indicating if this attribute is visible",
|
|
2465
|
+
"example": true
|
|
1745
2466
|
},
|
|
1746
2467
|
"system": {
|
|
1747
|
-
"type": "boolean"
|
|
2468
|
+
"type": "boolean",
|
|
2469
|
+
"description": "Flag indicating if this attribute is a system attribute",
|
|
2470
|
+
"example": false
|
|
1748
2471
|
},
|
|
1749
2472
|
"unit": {
|
|
1750
2473
|
"type": "object",
|
|
1751
2474
|
"additionalProperties": {
|
|
1752
2475
|
"type": "string",
|
|
2476
|
+
"description": "Localized string",
|
|
2477
|
+
"example": "Localized value",
|
|
1753
2478
|
"maxLength": 4000
|
|
1754
|
-
}
|
|
2479
|
+
},
|
|
2480
|
+
"description": "B2C Commerce API - Localization doc: https://developer.salesforce.com/docs/commerce/commerce-api/guide/b2c-localization.html",
|
|
2481
|
+
"example": {
|
|
2482
|
+
"default": "General unit",
|
|
2483
|
+
"de": "Allgemeine Einheit",
|
|
2484
|
+
"en": "General unit"
|
|
2485
|
+
},
|
|
2486
|
+
"x-format": "localized"
|
|
1755
2487
|
},
|
|
1756
2488
|
"requiresEncoding": {
|
|
1757
2489
|
"type": "boolean",
|
|
2490
|
+
"description": "Flag indicating if this attribute can be encoded using the encoding='off' flag in ISML templates",
|
|
2491
|
+
"example": false,
|
|
1758
2492
|
"readOnly": true
|
|
1759
2493
|
},
|
|
1760
2494
|
"multiValueType": {
|
|
1761
|
-
"type": "boolean"
|
|
2495
|
+
"type": "boolean",
|
|
2496
|
+
"description": "True if the attribute can have multiple values. Applicable to set_of_* and enum_of_* types.",
|
|
2497
|
+
"example": false
|
|
1762
2498
|
},
|
|
1763
2499
|
"setValueType": {
|
|
1764
2500
|
"type": "boolean",
|
|
2501
|
+
"description": "Flag indicating if this attribute is of type 'Set of'",
|
|
2502
|
+
"example": false,
|
|
1765
2503
|
"readOnly": true
|
|
1766
2504
|
},
|
|
1767
2505
|
"externallyManaged": {
|
|
1768
|
-
"type": "boolean"
|
|
2506
|
+
"type": "boolean",
|
|
2507
|
+
"description": "Flag indicating if this attribute is externally managed",
|
|
2508
|
+
"example": false
|
|
1769
2509
|
},
|
|
1770
2510
|
"externallyDefined": {
|
|
1771
|
-
"type": "boolean"
|
|
2511
|
+
"type": "boolean",
|
|
2512
|
+
"description": "Flag indicating if this attribute is externally defined",
|
|
2513
|
+
"example": false
|
|
1772
2514
|
},
|
|
1773
2515
|
"orderRequired": {
|
|
1774
|
-
"type": "boolean"
|
|
2516
|
+
"type": "boolean",
|
|
2517
|
+
"description": "Flag indicating if this attribute is required for order of the attribute model's product",
|
|
2518
|
+
"example": false
|
|
1775
2519
|
},
|
|
1776
2520
|
"regularExpression": {
|
|
1777
2521
|
"type": "string",
|
|
2522
|
+
"description": "A regular expression that defines the legal values for this attribute",
|
|
2523
|
+
"example": "^[a-zA-Z]+$",
|
|
1778
2524
|
"maxLength": 4000,
|
|
1779
2525
|
"readOnly": true
|
|
1780
2526
|
},
|
|
1781
2527
|
"fieldLength": {
|
|
1782
2528
|
"type": "integer",
|
|
1783
2529
|
"format": "int32",
|
|
2530
|
+
"description": "The length of the field for this attribute in the editor",
|
|
2531
|
+
"example": 50,
|
|
1784
2532
|
"readOnly": true
|
|
1785
2533
|
},
|
|
1786
2534
|
"fieldHeight": {
|
|
1787
2535
|
"type": "integer",
|
|
1788
2536
|
"format": "int32",
|
|
2537
|
+
"description": "The height of the field for this attribute in the editor",
|
|
2538
|
+
"example": 1,
|
|
1789
2539
|
"readOnly": true
|
|
1790
2540
|
},
|
|
1791
2541
|
"minLength": {
|
|
1792
2542
|
"type": "integer",
|
|
1793
2543
|
"format": "int32",
|
|
2544
|
+
"description": "The minimum length of the field for this attribute",
|
|
2545
|
+
"example": 1,
|
|
1794
2546
|
"readOnly": true
|
|
1795
2547
|
},
|
|
1796
2548
|
"readOnly": {
|
|
1797
2549
|
"type": "boolean",
|
|
2550
|
+
"description": "Flag indicating if this attribute is read-only",
|
|
2551
|
+
"example": false,
|
|
1798
2552
|
"readOnly": true
|
|
1799
2553
|
},
|
|
1800
2554
|
"minValue": {
|
|
1801
2555
|
"type": "number",
|
|
1802
2556
|
"format": "double",
|
|
2557
|
+
"description": "The minimum possible value for this attribute",
|
|
2558
|
+
"example": 0,
|
|
1803
2559
|
"readOnly": true
|
|
1804
2560
|
},
|
|
1805
2561
|
"maxValue": {
|
|
1806
2562
|
"type": "number",
|
|
1807
2563
|
"format": "double",
|
|
2564
|
+
"description": "The maximum possible value for this attribute",
|
|
2565
|
+
"example": 100,
|
|
1808
2566
|
"readOnly": true
|
|
1809
2567
|
},
|
|
1810
2568
|
"scale": {
|
|
1811
2569
|
"type": "integer",
|
|
1812
2570
|
"format": "int32",
|
|
2571
|
+
"description": "The minimum number of fraction digits for a value of this attribute",
|
|
2572
|
+
"example": 2,
|
|
1813
2573
|
"readOnly": true
|
|
1814
2574
|
},
|
|
1815
2575
|
"defaultValue": {
|
|
@@ -1817,10 +2577,12 @@
|
|
|
1817
2577
|
{
|
|
1818
2578
|
"$ref": "#/components/schemas/ObjectAttributeValueDefinition"
|
|
1819
2579
|
}
|
|
1820
|
-
]
|
|
2580
|
+
],
|
|
2581
|
+
"description": "The default value of this attribute. It can be updated, but not created."
|
|
1821
2582
|
},
|
|
1822
2583
|
"valueDefinitions": {
|
|
1823
2584
|
"type": "array",
|
|
2585
|
+
"description": "A set of values that are possible for this attribute",
|
|
1824
2586
|
"items": {
|
|
1825
2587
|
"$ref": "#/components/schemas/ObjectAttributeValueDefinition"
|
|
1826
2588
|
},
|
|
@@ -1829,11 +2591,15 @@
|
|
|
1829
2591
|
"creationDate": {
|
|
1830
2592
|
"type": "string",
|
|
1831
2593
|
"format": "date-time",
|
|
2594
|
+
"description": "The date/time when the attribute definition was created",
|
|
2595
|
+
"example": "2024-01-15T10:30:00Z",
|
|
1832
2596
|
"readOnly": true
|
|
1833
2597
|
},
|
|
1834
2598
|
"lastModified": {
|
|
1835
2599
|
"type": "string",
|
|
1836
2600
|
"format": "date-time",
|
|
2601
|
+
"description": "The date/time when the attribute definition was last modified",
|
|
2602
|
+
"example": "2024-01-15T11:00:00Z",
|
|
1837
2603
|
"readOnly": true
|
|
1838
2604
|
}
|
|
1839
2605
|
},
|
|
@@ -1843,9 +2609,12 @@
|
|
|
1843
2609
|
},
|
|
1844
2610
|
"PreferenceValue": {
|
|
1845
2611
|
"type": "object",
|
|
2612
|
+
"description": "Represents a single preference value with its attribute definition and site-specific values.",
|
|
1846
2613
|
"properties": {
|
|
1847
2614
|
"id": {
|
|
1848
2615
|
"type": "string",
|
|
2616
|
+
"description": "The preference attribute ID",
|
|
2617
|
+
"example": "WapiStringAttr",
|
|
1849
2618
|
"maxLength": 256,
|
|
1850
2619
|
"minLength": 1
|
|
1851
2620
|
},
|
|
@@ -1853,22 +2622,43 @@
|
|
|
1853
2622
|
"type": "object",
|
|
1854
2623
|
"additionalProperties": {
|
|
1855
2624
|
"type": "string",
|
|
2625
|
+
"description": "Localized string",
|
|
2626
|
+
"example": "Preference Description",
|
|
1856
2627
|
"maxLength": 4000
|
|
1857
|
-
}
|
|
2628
|
+
},
|
|
2629
|
+
"description": "B2C Commerce API - Localization doc: https://developer.salesforce.com/docs/commerce/commerce-api/guide/b2c-localization.html",
|
|
2630
|
+
"example": {
|
|
2631
|
+
"default": "Preference Description",
|
|
2632
|
+
"en-US": "Preference Description",
|
|
2633
|
+
"de-DE": "Einstellungsbeschreibung",
|
|
2634
|
+
"ja-JP": "設定の説明"
|
|
2635
|
+
},
|
|
2636
|
+
"x-format": "localized"
|
|
1858
2637
|
},
|
|
1859
2638
|
"displayName": {
|
|
1860
2639
|
"type": "object",
|
|
1861
2640
|
"additionalProperties": {
|
|
1862
2641
|
"type": "string",
|
|
2642
|
+
"description": "Localized string",
|
|
2643
|
+
"example": "Preference Display Name",
|
|
1863
2644
|
"maxLength": 4000
|
|
1864
|
-
}
|
|
2645
|
+
},
|
|
2646
|
+
"description": "B2C Commerce API - Localization doc: https://developer.salesforce.com/docs/commerce/commerce-api/guide/b2c-localization.html",
|
|
2647
|
+
"example": {
|
|
2648
|
+
"default": "Preference Display Name",
|
|
2649
|
+
"en-US": "Preference Display Name",
|
|
2650
|
+
"de-DE": "Anzeigename der Einstellung",
|
|
2651
|
+
"ja-JP": "設定の表示名"
|
|
2652
|
+
},
|
|
2653
|
+
"x-format": "localized"
|
|
1865
2654
|
},
|
|
1866
2655
|
"attributeDefinition": {
|
|
1867
2656
|
"$ref": "#/components/schemas/ObjectAttributeDefinition"
|
|
1868
2657
|
},
|
|
1869
2658
|
"siteValues": {
|
|
1870
2659
|
"type": "object",
|
|
1871
|
-
"additionalProperties": true
|
|
2660
|
+
"additionalProperties": true,
|
|
2661
|
+
"description": "A mapping of site IDs to their preference values."
|
|
1872
2662
|
},
|
|
1873
2663
|
"valueType": {
|
|
1874
2664
|
"$ref": "#/components/schemas/ValueType"
|
|
@@ -1884,9 +2674,11 @@
|
|
|
1884
2674
|
"$ref": "#/components/schemas/PaginatedSearchResult"
|
|
1885
2675
|
}
|
|
1886
2676
|
],
|
|
2677
|
+
"description": "Document representing a preference value search result.",
|
|
1887
2678
|
"properties": {
|
|
1888
2679
|
"hits": {
|
|
1889
2680
|
"type": "array",
|
|
2681
|
+
"description": "The sorted array of search hits. Can be empty.",
|
|
1890
2682
|
"items": {
|
|
1891
2683
|
"$ref": "#/components/schemas/PreferenceValue"
|
|
1892
2684
|
}
|
|
@@ -1898,42 +2690,54 @@
|
|
|
1898
2690
|
"organizationId": {
|
|
1899
2691
|
"name": "organizationId",
|
|
1900
2692
|
"in": "path",
|
|
2693
|
+
"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).",
|
|
1901
2694
|
"required": true,
|
|
1902
2695
|
"style": "simple",
|
|
1903
2696
|
"explode": false,
|
|
1904
2697
|
"schema": {
|
|
1905
2698
|
"$ref": "#/components/schemas/OrganizationId"
|
|
1906
|
-
}
|
|
2699
|
+
},
|
|
2700
|
+
"example": "f_ecom_zzxy_prd"
|
|
1907
2701
|
},
|
|
1908
2702
|
"maskPassword": {
|
|
1909
2703
|
"name": "maskPassword",
|
|
1910
2704
|
"in": "query",
|
|
2705
|
+
"description": "Whether to mask password or not.",
|
|
1911
2706
|
"required": false,
|
|
1912
2707
|
"style": "form",
|
|
1913
2708
|
"explode": true,
|
|
1914
2709
|
"schema": {
|
|
1915
2710
|
"type": "boolean",
|
|
1916
|
-
"default": false
|
|
2711
|
+
"default": false,
|
|
2712
|
+
"example": true
|
|
1917
2713
|
}
|
|
1918
2714
|
},
|
|
1919
2715
|
"siteId": {
|
|
1920
2716
|
"name": "siteId",
|
|
1921
2717
|
"in": "query",
|
|
2718
|
+
"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.",
|
|
1922
2719
|
"required": true,
|
|
1923
2720
|
"style": "form",
|
|
1924
2721
|
"explode": true,
|
|
1925
2722
|
"schema": {
|
|
1926
2723
|
"$ref": "#/components/schemas/SiteId"
|
|
2724
|
+
},
|
|
2725
|
+
"examples": {
|
|
2726
|
+
"SiteId": {
|
|
2727
|
+
"value": "RefArch"
|
|
2728
|
+
}
|
|
1927
2729
|
}
|
|
1928
2730
|
},
|
|
1929
2731
|
"groupId": {
|
|
1930
2732
|
"name": "groupId",
|
|
1931
2733
|
"in": "path",
|
|
2734
|
+
"description": "The preference group ID.",
|
|
1932
2735
|
"required": true,
|
|
1933
2736
|
"style": "simple",
|
|
1934
2737
|
"explode": false,
|
|
1935
2738
|
"schema": {
|
|
1936
2739
|
"type": "string",
|
|
2740
|
+
"example": "WapiStringGroup",
|
|
1937
2741
|
"maxLength": 256,
|
|
1938
2742
|
"minLength": 1
|
|
1939
2743
|
}
|
|
@@ -1941,6 +2745,7 @@
|
|
|
1941
2745
|
"instanceType": {
|
|
1942
2746
|
"name": "instanceType",
|
|
1943
2747
|
"in": "path",
|
|
2748
|
+
"description": "The instance type for which to read or update preferences.",
|
|
1944
2749
|
"required": true,
|
|
1945
2750
|
"style": "simple",
|
|
1946
2751
|
"explode": false,
|
|
@@ -1951,23 +2756,28 @@
|
|
|
1951
2756
|
"development",
|
|
1952
2757
|
"sandbox",
|
|
1953
2758
|
"production"
|
|
1954
|
-
]
|
|
1955
|
-
|
|
2759
|
+
],
|
|
2760
|
+
"example": "staging"
|
|
2761
|
+
},
|
|
2762
|
+
"example": "staging"
|
|
1956
2763
|
},
|
|
1957
2764
|
"maskPasswords": {
|
|
1958
2765
|
"name": "maskPasswords",
|
|
1959
2766
|
"in": "query",
|
|
2767
|
+
"description": "The preference values of type Password are masked when set.",
|
|
1960
2768
|
"required": false,
|
|
1961
2769
|
"style": "form",
|
|
1962
2770
|
"explode": true,
|
|
1963
2771
|
"schema": {
|
|
1964
2772
|
"type": "boolean",
|
|
1965
|
-
"default": false
|
|
2773
|
+
"default": false,
|
|
2774
|
+
"example": true
|
|
1966
2775
|
}
|
|
1967
2776
|
},
|
|
1968
2777
|
"globalPreferenceGroupExpand": {
|
|
1969
2778
|
"name": "expand",
|
|
1970
2779
|
"in": "query",
|
|
2780
|
+
"description": "Expands the result document to include additional information. For global preference groups, the expansion \"sites\" retrieves the custom preferences for all the available sites.\n",
|
|
1971
2781
|
"required": false,
|
|
1972
2782
|
"style": "form",
|
|
1973
2783
|
"explode": false,
|
|
@@ -1977,13 +2787,15 @@
|
|
|
1977
2787
|
"type": "string",
|
|
1978
2788
|
"enum": [
|
|
1979
2789
|
"sites"
|
|
1980
|
-
]
|
|
2790
|
+
],
|
|
2791
|
+
"example": "sites"
|
|
1981
2792
|
}
|
|
1982
2793
|
}
|
|
1983
2794
|
},
|
|
1984
2795
|
"preferenceSearchExpand": {
|
|
1985
2796
|
"name": "expand",
|
|
1986
2797
|
"in": "query",
|
|
2798
|
+
"description": "Expands the result document to include additional information. For preference search, the expansion \"value\" retrieves the value definitions of the attribute definition.\n",
|
|
1987
2799
|
"required": false,
|
|
1988
2800
|
"style": "form",
|
|
1989
2801
|
"explode": false,
|
|
@@ -1993,26 +2805,602 @@
|
|
|
1993
2805
|
"type": "string",
|
|
1994
2806
|
"enum": [
|
|
1995
2807
|
"value"
|
|
1996
|
-
]
|
|
2808
|
+
],
|
|
2809
|
+
"example": "value"
|
|
1997
2810
|
}
|
|
1998
2811
|
}
|
|
1999
2812
|
},
|
|
2000
2813
|
"preferenceId": {
|
|
2001
2814
|
"name": "preferenceId",
|
|
2002
2815
|
"in": "path",
|
|
2816
|
+
"description": "The preference attribute ID.",
|
|
2003
2817
|
"required": true,
|
|
2004
2818
|
"style": "simple",
|
|
2005
2819
|
"explode": false,
|
|
2006
2820
|
"schema": {
|
|
2007
2821
|
"type": "string",
|
|
2822
|
+
"example": "WapiStringAttr",
|
|
2008
2823
|
"maxLength": 256,
|
|
2009
2824
|
"minLength": 1
|
|
2010
2825
|
}
|
|
2011
2826
|
}
|
|
2012
2827
|
},
|
|
2828
|
+
"examples": {
|
|
2829
|
+
"GlobalCustomPreferenceExample": {
|
|
2830
|
+
"value": {
|
|
2831
|
+
"limit": 10,
|
|
2832
|
+
"data": [
|
|
2833
|
+
{
|
|
2834
|
+
"groupId": "PreferenceGroup1",
|
|
2835
|
+
"id": "booleanValue",
|
|
2836
|
+
"value": true
|
|
2837
|
+
},
|
|
2838
|
+
{
|
|
2839
|
+
"groupId": "PreferenceGroup1",
|
|
2840
|
+
"id": "htmlValue",
|
|
2841
|
+
"value": {
|
|
2842
|
+
"markup": "<h1>HTML Value</h1>",
|
|
2843
|
+
"source": "<h1>HTML Value</h1>"
|
|
2844
|
+
}
|
|
2845
|
+
},
|
|
2846
|
+
{
|
|
2847
|
+
"groupId": "PreferenceGroup1",
|
|
2848
|
+
"id": "dateValue",
|
|
2849
|
+
"value": "2007-06-20T00:00:00.000Z"
|
|
2850
|
+
},
|
|
2851
|
+
{
|
|
2852
|
+
"groupId": "PreferenceGroup2",
|
|
2853
|
+
"id": "integerValueValue",
|
|
2854
|
+
"value": 12345
|
|
2855
|
+
},
|
|
2856
|
+
{
|
|
2857
|
+
"groupId": "PreferenceGroup2",
|
|
2858
|
+
"id": "stringValueList",
|
|
2859
|
+
"value": "s1"
|
|
2860
|
+
},
|
|
2861
|
+
{
|
|
2862
|
+
"groupId": "PreferenceGroup2",
|
|
2863
|
+
"id": "imageValue",
|
|
2864
|
+
"value": {
|
|
2865
|
+
"abs_url": "https://localhost/on/demandware.static/-/Sites/default/v2d48bd5c705782218c66e02f6776751b2e227ac5/img/value.jpg",
|
|
2866
|
+
"dis_base_url": "https://image.demandware.com/dw/image/v2/zzzz_s02/on/demandware.static/-/Sites/default/v2d48bd5c705782218c66e02f6776751b2e227ac5/img/value.jpg",
|
|
2867
|
+
"path": "/img/value.jpg"
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2870
|
+
],
|
|
2871
|
+
"offset": 0,
|
|
2872
|
+
"total": 100
|
|
2873
|
+
}
|
|
2874
|
+
},
|
|
2875
|
+
"InvalidAccessToken": {
|
|
2876
|
+
"value": {
|
|
2877
|
+
"title": "Invalid Access Token",
|
|
2878
|
+
"type": "https://api.commercecloud.salesforce.com/documentation/error/v1/errors/invalid-access-token",
|
|
2879
|
+
"detail": "The request is unauthorized, the access token is invalid.",
|
|
2880
|
+
"accessToken": "hbGciOiJIUzI1NiIsInR5cCI6Ikp"
|
|
2881
|
+
}
|
|
2882
|
+
},
|
|
2883
|
+
"SiteCustomPreferenceExample": {
|
|
2884
|
+
"value": {
|
|
2885
|
+
"limit": 10,
|
|
2886
|
+
"data": [
|
|
2887
|
+
{
|
|
2888
|
+
"groupId": "PreferenceGroup1",
|
|
2889
|
+
"id": "booleanValue",
|
|
2890
|
+
"value": true
|
|
2891
|
+
},
|
|
2892
|
+
{
|
|
2893
|
+
"groupId": "PreferenceGroup1",
|
|
2894
|
+
"id": "htmlValue",
|
|
2895
|
+
"value": {
|
|
2896
|
+
"markup": "<h1>HTML Value</h1>",
|
|
2897
|
+
"source": "<h1>HTML Value</h1>"
|
|
2898
|
+
}
|
|
2899
|
+
},
|
|
2900
|
+
{
|
|
2901
|
+
"groupId": "PreferenceGroup2",
|
|
2902
|
+
"id": "integerValueValue",
|
|
2903
|
+
"value": 12345
|
|
2904
|
+
},
|
|
2905
|
+
{
|
|
2906
|
+
"groupId": "PreferenceGroup2",
|
|
2907
|
+
"id": "imageValue",
|
|
2908
|
+
"value": {
|
|
2909
|
+
"abs_url": "https://localhost/on/demandware.static/-/Sites/default/v2d48bd5c705782218c66e02f6776751b2e227ac5/img/value.jpg",
|
|
2910
|
+
"dis_base_url": "https://image.demandware.com/dw/image/v2/zzzz_s02/on/demandware.static/-/Sites/default/v2d48bd5c705782218c66e02f6776751b2e227ac5/img/value.jpg",
|
|
2911
|
+
"path": "/img/value.jpg"
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
],
|
|
2915
|
+
"offset": 0,
|
|
2916
|
+
"total": 100
|
|
2917
|
+
}
|
|
2918
|
+
},
|
|
2919
|
+
"GetGlobalPreferencesExample": {
|
|
2920
|
+
"summary": "Global preferences with custom attributes.",
|
|
2921
|
+
"value": {
|
|
2922
|
+
"c_WapiStringAttr": "MyString",
|
|
2923
|
+
"c_WapiLocalizedStringAttr": "MyLocalizedString",
|
|
2924
|
+
"c_WapiSitespecificStringAttr": "MySiteSpecificString",
|
|
2925
|
+
"c_WapiSetOfStringAttr": [
|
|
2926
|
+
"value1",
|
|
2927
|
+
"value2"
|
|
2928
|
+
],
|
|
2929
|
+
"c_WapiEnumOfStringAttr": "WapiEnumOfStringValue1",
|
|
2930
|
+
"c_WapiEnumOfStringMSAttr": [
|
|
2931
|
+
"WapiEnumOfStringMSValue1",
|
|
2932
|
+
"WapiEnumOfStringMSValue2"
|
|
2933
|
+
]
|
|
2934
|
+
}
|
|
2935
|
+
},
|
|
2936
|
+
"GetGlobalPreferencesWithSitesExample": {
|
|
2937
|
+
"summary": "Global preferences with site-specific expansions.",
|
|
2938
|
+
"value": {
|
|
2939
|
+
"c_WapiStringAttr": "MyString",
|
|
2940
|
+
"c_WapiLocalizedStringAttr": {
|
|
2941
|
+
"default": "MyLocalizedString",
|
|
2942
|
+
"de-DE": "MeineLokalisierteZeichenkette"
|
|
2943
|
+
},
|
|
2944
|
+
"c_WapiSitespecificStringAttr": "MySiteSpecificString",
|
|
2945
|
+
"c_WapiSetOfStringAttr": [
|
|
2946
|
+
"value1",
|
|
2947
|
+
"value2"
|
|
2948
|
+
],
|
|
2949
|
+
"c_WapiEnumOfStringAttr": "WapiEnumOfStringValue1",
|
|
2950
|
+
"c_WapiEnumOfStringMSAttr": [
|
|
2951
|
+
"WapiEnumOfStringMSValue1",
|
|
2952
|
+
"WapiEnumOfStringMSValue2"
|
|
2953
|
+
],
|
|
2954
|
+
"c_WapiBooleanAttr": true,
|
|
2955
|
+
"c_WapiIntAttr": 42,
|
|
2956
|
+
"sitePreferences": [
|
|
2957
|
+
{
|
|
2958
|
+
"site": {
|
|
2959
|
+
"id": "RefArch"
|
|
2960
|
+
},
|
|
2961
|
+
"c_WapiStringAttr": "SiteSpecificStringRefArch",
|
|
2962
|
+
"c_WapiLocalizedStringAttr": {
|
|
2963
|
+
"default": "SiteLocalizedString",
|
|
2964
|
+
"de-DE": "StandortLokalisierteZeichenkette"
|
|
2965
|
+
},
|
|
2966
|
+
"c_WapiSitespecificStringAttr": "SiteSpecificValue",
|
|
2967
|
+
"c_WapiSetOfStringAttr": [
|
|
2968
|
+
"siteValue1",
|
|
2969
|
+
"siteValue2"
|
|
2970
|
+
],
|
|
2971
|
+
"c_WapiEnumOfStringAttr": "WapiEnumOfStringValue1",
|
|
2972
|
+
"c_WapiBooleanAttr": false,
|
|
2973
|
+
"c_WapiIntAttr": 10
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
"site": {
|
|
2977
|
+
"id": "RefArchGlobal"
|
|
2978
|
+
},
|
|
2979
|
+
"c_WapiStringAttr": "AnotherSiteValue",
|
|
2980
|
+
"c_WapiLocalizedStringAttr": {
|
|
2981
|
+
"default": "AnotherSiteLocalizedString"
|
|
2982
|
+
},
|
|
2983
|
+
"c_WapiSitespecificStringAttr": "AnotherSiteSpecificValue",
|
|
2984
|
+
"c_WapiSetOfStringAttr": [
|
|
2985
|
+
"anotherValue1"
|
|
2986
|
+
],
|
|
2987
|
+
"c_WapiBooleanAttr": true,
|
|
2988
|
+
"c_WapiIntAttr": 99
|
|
2989
|
+
}
|
|
2990
|
+
]
|
|
2991
|
+
}
|
|
2992
|
+
},
|
|
2993
|
+
"IllegalEnumerationValue": {
|
|
2994
|
+
"value": {
|
|
2995
|
+
"title": "Illegal Enumeration Value",
|
|
2996
|
+
"type": "https://api.commercecloud.salesforce.com/documentation/error/v1/errors/illegal-enumeration-value",
|
|
2997
|
+
"detail": "The value 'bad' for type 'InstanceType' is invalid.",
|
|
2998
|
+
"value": "bad"
|
|
2999
|
+
}
|
|
3000
|
+
},
|
|
3001
|
+
"CustomPreferenceGroupNotFound": {
|
|
3002
|
+
"value": {
|
|
3003
|
+
"title": "Custom Preference Group Not Found",
|
|
3004
|
+
"type": "https://api.commercecloud.salesforce.com/documentation/error/v1/errors/custom-preference-group-not-found",
|
|
3005
|
+
"detail": "No preference group with ID 'Bad' could be found.",
|
|
3006
|
+
"preferenceGroupId": "Bad"
|
|
3007
|
+
}
|
|
3008
|
+
},
|
|
3009
|
+
"UpdateGlobalPreferencesRequest": {
|
|
3010
|
+
"summary": "Update global custom preferences.",
|
|
3011
|
+
"value": {
|
|
3012
|
+
"c_WapiStringAttr": "UpdatedString",
|
|
3013
|
+
"c_WapiIntAttr": 42,
|
|
3014
|
+
"c_WapiBooleanAttr": true,
|
|
3015
|
+
"c_WapiSetOfStringAttr": [
|
|
3016
|
+
"newValue1",
|
|
3017
|
+
"newValue2"
|
|
3018
|
+
]
|
|
3019
|
+
}
|
|
3020
|
+
},
|
|
3021
|
+
"UpdateGlobalPreferencesExample": {
|
|
3022
|
+
"summary": "Updated global preferences response.",
|
|
3023
|
+
"value": {
|
|
3024
|
+
"c_WapiStringAttr": "UpdatedString",
|
|
3025
|
+
"c_WapiLocalizedStringAttr": "UpdatedLocalizedString",
|
|
3026
|
+
"c_WapiSetOfStringAttr": [
|
|
3027
|
+
"newValue1",
|
|
3028
|
+
"newValue2"
|
|
3029
|
+
]
|
|
3030
|
+
}
|
|
3031
|
+
},
|
|
3032
|
+
"GetSitePreferencesExample": {
|
|
3033
|
+
"summary": "Site preferences with custom attributes.",
|
|
3034
|
+
"value": {
|
|
3035
|
+
"site": {
|
|
3036
|
+
"id": "RefArch"
|
|
3037
|
+
},
|
|
3038
|
+
"c_WapiStringAttr": "MyString",
|
|
3039
|
+
"c_WapiLocalizedStringAttr": "MyLocalizedString",
|
|
3040
|
+
"c_WapiPasswordAttr": "************"
|
|
3041
|
+
}
|
|
3042
|
+
},
|
|
3043
|
+
"UpdateSitePreferencesRequest": {
|
|
3044
|
+
"summary": "Update site custom preferences.",
|
|
3045
|
+
"value": {
|
|
3046
|
+
"c_WapiStringAttr": "UpdatedString",
|
|
3047
|
+
"c_WapiLocalizedStringAttr": {
|
|
3048
|
+
"default": "UpdatedLocalizedString",
|
|
3049
|
+
"de-DE": "AktualisierteLokalisierteZeichenkette"
|
|
3050
|
+
},
|
|
3051
|
+
"c_WapiIntAttr": 42,
|
|
3052
|
+
"c_WapiBooleanAttr": true,
|
|
3053
|
+
"c_WapiSetOfStringAttr": [
|
|
3054
|
+
"newValue1",
|
|
3055
|
+
"newValue2"
|
|
3056
|
+
]
|
|
3057
|
+
}
|
|
3058
|
+
},
|
|
3059
|
+
"UpdateSitePreferencesExample": {
|
|
3060
|
+
"summary": "Updated site preferences response.",
|
|
3061
|
+
"value": {
|
|
3062
|
+
"site": {
|
|
3063
|
+
"id": "RefArch"
|
|
3064
|
+
},
|
|
3065
|
+
"c_WapiStringAttr": "UpdatedString",
|
|
3066
|
+
"c_WapiLocalizedStringAttr": "UpdatedLocalizedString"
|
|
3067
|
+
}
|
|
3068
|
+
},
|
|
3069
|
+
"SearchSitePreferencesRequest": {
|
|
3070
|
+
"summary": "Search preferences by ID and value type.",
|
|
3071
|
+
"value": {
|
|
3072
|
+
"query": {
|
|
3073
|
+
"boolQuery": {
|
|
3074
|
+
"must": [
|
|
3075
|
+
{
|
|
3076
|
+
"textQuery": {
|
|
3077
|
+
"fields": [
|
|
3078
|
+
"id"
|
|
3079
|
+
],
|
|
3080
|
+
"searchPhrase": "WapiString"
|
|
3081
|
+
}
|
|
3082
|
+
},
|
|
3083
|
+
{
|
|
3084
|
+
"termQuery": {
|
|
3085
|
+
"fields": [
|
|
3086
|
+
"valueType"
|
|
3087
|
+
],
|
|
3088
|
+
"operator": "is",
|
|
3089
|
+
"values": [
|
|
3090
|
+
"string"
|
|
3091
|
+
]
|
|
3092
|
+
}
|
|
3093
|
+
}
|
|
3094
|
+
]
|
|
3095
|
+
}
|
|
3096
|
+
},
|
|
3097
|
+
"sorts": [
|
|
3098
|
+
{
|
|
3099
|
+
"field": "id",
|
|
3100
|
+
"sortOrder": "asc"
|
|
3101
|
+
}
|
|
3102
|
+
],
|
|
3103
|
+
"limit": 25,
|
|
3104
|
+
"offset": 0
|
|
3105
|
+
}
|
|
3106
|
+
},
|
|
3107
|
+
"PreferenceSearchExample": {
|
|
3108
|
+
"summary": "Search result for preferences across sites.",
|
|
3109
|
+
"value": {
|
|
3110
|
+
"limit": 2,
|
|
3111
|
+
"offset": 0,
|
|
3112
|
+
"total": 2,
|
|
3113
|
+
"hits": [
|
|
3114
|
+
{
|
|
3115
|
+
"id": "WapiStringAttr",
|
|
3116
|
+
"displayName": {
|
|
3117
|
+
"default": "String Attribute"
|
|
3118
|
+
},
|
|
3119
|
+
"description": {
|
|
3120
|
+
"default": "String Attribute"
|
|
3121
|
+
},
|
|
3122
|
+
"valueType": "string",
|
|
3123
|
+
"attributeDefinition": {
|
|
3124
|
+
"id": "WapiStringAttr",
|
|
3125
|
+
"displayName": {
|
|
3126
|
+
"default": "String Attribute"
|
|
3127
|
+
},
|
|
3128
|
+
"description": {
|
|
3129
|
+
"default": "String Attribute"
|
|
3130
|
+
},
|
|
3131
|
+
"valueType": "string"
|
|
3132
|
+
},
|
|
3133
|
+
"siteValues": {
|
|
3134
|
+
"RefArch": "MyString-RefArch-Staging",
|
|
3135
|
+
"RefArchGlobal": "MyString-RefArchGlobal-Staging"
|
|
3136
|
+
}
|
|
3137
|
+
},
|
|
3138
|
+
{
|
|
3139
|
+
"id": "WapiLocalizedStringAttr",
|
|
3140
|
+
"displayName": {
|
|
3141
|
+
"default": "Localized String Attribute"
|
|
3142
|
+
},
|
|
3143
|
+
"description": {
|
|
3144
|
+
"default": "Localized String Attribute"
|
|
3145
|
+
},
|
|
3146
|
+
"valueType": "string",
|
|
3147
|
+
"attributeDefinition": {
|
|
3148
|
+
"id": "WapiLocalizedStringAttr",
|
|
3149
|
+
"displayName": {
|
|
3150
|
+
"default": "Localized String Attribute"
|
|
3151
|
+
},
|
|
3152
|
+
"description": {
|
|
3153
|
+
"default": "Localized String Attribute"
|
|
3154
|
+
},
|
|
3155
|
+
"valueType": "string"
|
|
3156
|
+
},
|
|
3157
|
+
"siteValues": {
|
|
3158
|
+
"RefArch": "MyLocalizedString-RefArch-Staging"
|
|
3159
|
+
}
|
|
3160
|
+
}
|
|
3161
|
+
],
|
|
3162
|
+
"query": {
|
|
3163
|
+
"matchAllQuery": {}
|
|
3164
|
+
},
|
|
3165
|
+
"sorts": [
|
|
3166
|
+
{
|
|
3167
|
+
"field": "id",
|
|
3168
|
+
"sortOrder": "asc"
|
|
3169
|
+
}
|
|
3170
|
+
]
|
|
3171
|
+
}
|
|
3172
|
+
},
|
|
3173
|
+
"PreferenceSearchWithExpandValueExample": {
|
|
3174
|
+
"summary": "Search result with expanded value definitions.",
|
|
3175
|
+
"value": {
|
|
3176
|
+
"limit": 1,
|
|
3177
|
+
"offset": 0,
|
|
3178
|
+
"total": 1,
|
|
3179
|
+
"hits": [
|
|
3180
|
+
{
|
|
3181
|
+
"id": "WapiEnumOfStringAttr",
|
|
3182
|
+
"displayName": {
|
|
3183
|
+
"default": "Enum Of String Attribute"
|
|
3184
|
+
},
|
|
3185
|
+
"description": {
|
|
3186
|
+
"default": "Enum Of String Attribute"
|
|
3187
|
+
},
|
|
3188
|
+
"valueType": "enum_of_string",
|
|
3189
|
+
"attributeDefinition": {
|
|
3190
|
+
"id": "WapiEnumOfStringAttr",
|
|
3191
|
+
"displayName": {
|
|
3192
|
+
"default": "Enum Of String Attribute"
|
|
3193
|
+
},
|
|
3194
|
+
"description": {
|
|
3195
|
+
"default": "Enum Of String Attribute"
|
|
3196
|
+
},
|
|
3197
|
+
"valueType": "enum_of_string",
|
|
3198
|
+
"valueDefinitions": [
|
|
3199
|
+
{
|
|
3200
|
+
"id": "WapiEnumOfStringValue1",
|
|
3201
|
+
"displayValue": {
|
|
3202
|
+
"default": "Value 1"
|
|
3203
|
+
},
|
|
3204
|
+
"position": 0,
|
|
3205
|
+
"value": "WapiEnumOfStringValue1"
|
|
3206
|
+
},
|
|
3207
|
+
{
|
|
3208
|
+
"id": "WapiEnumOfStringValue2",
|
|
3209
|
+
"displayValue": {
|
|
3210
|
+
"default": "Value 2"
|
|
3211
|
+
},
|
|
3212
|
+
"position": 1,
|
|
3213
|
+
"value": "WapiEnumOfStringValue2"
|
|
3214
|
+
}
|
|
3215
|
+
]
|
|
3216
|
+
},
|
|
3217
|
+
"siteValues": {
|
|
3218
|
+
"RefArch": "WapiEnumOfStringValue1"
|
|
3219
|
+
}
|
|
3220
|
+
}
|
|
3221
|
+
],
|
|
3222
|
+
"query": {
|
|
3223
|
+
"textQuery": {
|
|
3224
|
+
"fields": [
|
|
3225
|
+
"id"
|
|
3226
|
+
],
|
|
3227
|
+
"searchPhrase": "WapiEnumOfStringAttr"
|
|
3228
|
+
}
|
|
3229
|
+
}
|
|
3230
|
+
}
|
|
3231
|
+
},
|
|
3232
|
+
"FieldNotSortable": {
|
|
3233
|
+
"value": {
|
|
3234
|
+
"title": "Field Not Sortable",
|
|
3235
|
+
"type": "https://api.commercecloud.salesforce.com/documentation/error/v1/errors/field-not-sortable",
|
|
3236
|
+
"detail": "The field 'attributeDefinition' can't be used to sort the results.",
|
|
3237
|
+
"field": "attributeDefinition"
|
|
3238
|
+
}
|
|
3239
|
+
},
|
|
3240
|
+
"GetPreferenceValueExample": {
|
|
3241
|
+
"summary": "A single preference value.",
|
|
3242
|
+
"value": {
|
|
3243
|
+
"id": "WapiStringAttr",
|
|
3244
|
+
"displayName": {
|
|
3245
|
+
"default": "String Attribute",
|
|
3246
|
+
"de-DE": "Zeichenkettenattribut"
|
|
3247
|
+
},
|
|
3248
|
+
"description": {
|
|
3249
|
+
"default": "A custom string preference attribute",
|
|
3250
|
+
"de-DE": "Ein benutzerdefiniertes Zeichenkettenattribut"
|
|
3251
|
+
},
|
|
3252
|
+
"valueType": "string",
|
|
3253
|
+
"siteValues": {
|
|
3254
|
+
"RefArch": "MyString-RefArch-Sandbox",
|
|
3255
|
+
"RefArchGlobal": "MyString-RefArchGlobal-Sandbox"
|
|
3256
|
+
},
|
|
3257
|
+
"attributeDefinition": {
|
|
3258
|
+
"id": "WapiStringAttr",
|
|
3259
|
+
"effectiveId": "c_WapiStringAttr",
|
|
3260
|
+
"displayName": {
|
|
3261
|
+
"default": "String Attribute",
|
|
3262
|
+
"de-DE": "Zeichenkettenattribut"
|
|
3263
|
+
},
|
|
3264
|
+
"description": {
|
|
3265
|
+
"default": "A custom string preference attribute",
|
|
3266
|
+
"de-DE": "Ein benutzerdefiniertes Zeichenkettenattribut"
|
|
3267
|
+
},
|
|
3268
|
+
"valueType": "string",
|
|
3269
|
+
"key": false,
|
|
3270
|
+
"mandatory": false,
|
|
3271
|
+
"localizable": true,
|
|
3272
|
+
"siteSpecific": true,
|
|
3273
|
+
"searchable": false,
|
|
3274
|
+
"queryable": true,
|
|
3275
|
+
"visible": true,
|
|
3276
|
+
"system": false,
|
|
3277
|
+
"unit": {
|
|
3278
|
+
"default": ""
|
|
3279
|
+
},
|
|
3280
|
+
"requiresEncoding": false,
|
|
3281
|
+
"multiValueType": false,
|
|
3282
|
+
"setValueType": false,
|
|
3283
|
+
"externallyManaged": false,
|
|
3284
|
+
"externallyDefined": false,
|
|
3285
|
+
"orderRequired": false,
|
|
3286
|
+
"readOnly": false,
|
|
3287
|
+
"regularExpression": "^[a-zA-Z0-9]*$",
|
|
3288
|
+
"fieldLength": 256,
|
|
3289
|
+
"fieldHeight": 1,
|
|
3290
|
+
"minLength": 1,
|
|
3291
|
+
"minValue": 0,
|
|
3292
|
+
"maxValue": 100,
|
|
3293
|
+
"scale": 2,
|
|
3294
|
+
"defaultValue": {
|
|
3295
|
+
"id": "defaultVal",
|
|
3296
|
+
"value": "defaultString",
|
|
3297
|
+
"position": 1,
|
|
3298
|
+
"displayValue": {
|
|
3299
|
+
"default": "Default Value"
|
|
3300
|
+
},
|
|
3301
|
+
"description": {
|
|
3302
|
+
"default": "The default value"
|
|
3303
|
+
}
|
|
3304
|
+
},
|
|
3305
|
+
"valueDefinitions": []
|
|
3306
|
+
}
|
|
3307
|
+
}
|
|
3308
|
+
},
|
|
3309
|
+
"GetPreferenceValueMultiSiteExample": {
|
|
3310
|
+
"summary": "A single preference value with multiple site values.",
|
|
3311
|
+
"value": {
|
|
3312
|
+
"id": "WapiSetOfStringAttr",
|
|
3313
|
+
"displayName": {
|
|
3314
|
+
"default": "Set Of String Attribute"
|
|
3315
|
+
},
|
|
3316
|
+
"description": {
|
|
3317
|
+
"default": "Set Of String Attribute"
|
|
3318
|
+
},
|
|
3319
|
+
"siteValues": {
|
|
3320
|
+
"RefArch": [
|
|
3321
|
+
"value1-RefArch-Sandbox"
|
|
3322
|
+
],
|
|
3323
|
+
"RefArchGlobal": [
|
|
3324
|
+
"value1-RefArchGlobal-Sandbox"
|
|
3325
|
+
]
|
|
3326
|
+
},
|
|
3327
|
+
"valueType": "set_of_string"
|
|
3328
|
+
}
|
|
3329
|
+
},
|
|
3330
|
+
"PreferenceNotFound": {
|
|
3331
|
+
"value": {
|
|
3332
|
+
"title": "Preference Not Found",
|
|
3333
|
+
"type": "https://api.commercecloud.salesforce.com/documentation/error/v1/errors/preference-not-found",
|
|
3334
|
+
"detail": "No preference with ID 'noExists' could be found.",
|
|
3335
|
+
"preferenceId": "noExists"
|
|
3336
|
+
}
|
|
3337
|
+
},
|
|
3338
|
+
"UpdateSitePreferenceValueRequest": {
|
|
3339
|
+
"summary": "Update a preference value for multiple sites.",
|
|
3340
|
+
"value": {
|
|
3341
|
+
"id": "WapiStringAttr",
|
|
3342
|
+
"valueType": "string",
|
|
3343
|
+
"displayName": {
|
|
3344
|
+
"default": "My String Attribute",
|
|
3345
|
+
"de-DE": "Mein Zeichenkettenattribut"
|
|
3346
|
+
},
|
|
3347
|
+
"description": {
|
|
3348
|
+
"default": "A custom string preference attribute",
|
|
3349
|
+
"de-DE": "Ein benutzerdefiniertes Zeichenkettenattribut"
|
|
3350
|
+
},
|
|
3351
|
+
"siteValues": {
|
|
3352
|
+
"RefArch": "new value for RefArch",
|
|
3353
|
+
"RefArchGlobal": "new value for RefArchGlobal"
|
|
3354
|
+
},
|
|
3355
|
+
"attributeDefinition": {
|
|
3356
|
+
"id": "WapiStringAttr",
|
|
3357
|
+
"displayName": {
|
|
3358
|
+
"default": "My String Attribute",
|
|
3359
|
+
"de-DE": "Mein Zeichenkettenattribut"
|
|
3360
|
+
},
|
|
3361
|
+
"description": {
|
|
3362
|
+
"default": "A custom string preference attribute",
|
|
3363
|
+
"de-DE": "Ein benutzerdefiniertes Zeichenkettenattribut"
|
|
3364
|
+
},
|
|
3365
|
+
"valueType": "string",
|
|
3366
|
+
"key": false,
|
|
3367
|
+
"mandatory": false,
|
|
3368
|
+
"localizable": true,
|
|
3369
|
+
"siteSpecific": true,
|
|
3370
|
+
"searchable": false,
|
|
3371
|
+
"visible": true,
|
|
3372
|
+
"unit": {
|
|
3373
|
+
"default": "kg"
|
|
3374
|
+
},
|
|
3375
|
+
"multiValueType": false,
|
|
3376
|
+
"externallyManaged": false,
|
|
3377
|
+
"externallyDefined": false,
|
|
3378
|
+
"orderRequired": false
|
|
3379
|
+
}
|
|
3380
|
+
}
|
|
3381
|
+
},
|
|
3382
|
+
"UpdatePreferenceValueExample": {
|
|
3383
|
+
"summary": "Updated preference value response.",
|
|
3384
|
+
"value": {
|
|
3385
|
+
"id": "WapiLocalizedStringAttr",
|
|
3386
|
+
"displayName": {
|
|
3387
|
+
"default": "Localized String Attribute"
|
|
3388
|
+
},
|
|
3389
|
+
"description": {
|
|
3390
|
+
"default": "Localized String Attribute"
|
|
3391
|
+
},
|
|
3392
|
+
"siteValues": {
|
|
3393
|
+
"RefArch": "value for RefArch",
|
|
3394
|
+
"RefArchGlobal": "value for RefArchGlobal"
|
|
3395
|
+
},
|
|
3396
|
+
"valueType": "string"
|
|
3397
|
+
}
|
|
3398
|
+
}
|
|
3399
|
+
},
|
|
2013
3400
|
"securitySchemes": {
|
|
2014
3401
|
"AmOAuth2": {
|
|
2015
3402
|
"type": "oauth2",
|
|
3403
|
+
"description": "AccountManager OAuth 2.0 bearer token Authentication.",
|
|
2016
3404
|
"flows": {
|
|
2017
3405
|
"clientCredentials": {
|
|
2018
3406
|
"tokenUrl": "https://account.demandware.com/dwsso/oauth2/access_token",
|
|
@@ -2024,10 +3412,8 @@
|
|
|
2024
3412
|
"authorizationCode": {
|
|
2025
3413
|
"authorizationUrl": "https://account.demandware.com/dwsso/oauth2/authorize",
|
|
2026
3414
|
"tokenUrl": "https://account.demandware.com/dwsso/oauth2/access_token",
|
|
2027
|
-
"
|
|
2028
|
-
|
|
2029
|
-
"sfcc.preferences.rw": "Preferences read/write scope"
|
|
2030
|
-
}
|
|
3415
|
+
"refreshUrl": "https://account.demandware.com/dwsso/oauth2/access_token",
|
|
3416
|
+
"scopes": {}
|
|
2031
3417
|
}
|
|
2032
3418
|
}
|
|
2033
3419
|
}
|