@salesforce/b2c-tooling-sdk 1.19.1 → 1.20.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/help/index.json +9685 -0
- package/data/script-api/index.json +1 -528
- package/data/tooling/index.json +4 -4
- package/data/xsd/index.json +1 -1
- package/dist/esm/cli/base-command.js +5 -0
- package/dist/esm/cli/base-command.js.map +1 -1
- package/dist/esm/clients/index.d.ts +2 -0
- package/dist/esm/clients/index.js +1 -0
- package/dist/esm/clients/index.js.map +1 -1
- package/dist/esm/clients/middleware-registry.d.ts +1 -1
- package/dist/esm/clients/middleware-registry.js.map +1 -1
- package/dist/esm/clients/preferences.d.ts +83 -0
- package/dist/esm/clients/preferences.generated.d.ts +1651 -0
- package/dist/esm/clients/preferences.generated.js +6 -0
- package/dist/esm/clients/preferences.generated.js.map +1 -0
- package/dist/esm/clients/preferences.js +64 -0
- package/dist/esm/clients/preferences.js.map +1 -0
- package/dist/esm/config/dw-json.d.ts +2 -0
- package/dist/esm/config/dw-json.js.map +1 -1
- package/dist/esm/config/mapping.js +4 -0
- package/dist/esm/config/mapping.js.map +1 -1
- package/dist/esm/config/sources/dw-json-source.js +17 -4
- package/dist/esm/config/sources/dw-json-source.js.map +1 -1
- package/dist/esm/config/sources/env-source.js +2 -0
- package/dist/esm/config/sources/env-source.js.map +1 -1
- package/dist/esm/config/types.d.ts +14 -0
- package/dist/esm/docs/content-cache.d.ts +70 -0
- package/dist/esm/docs/content-cache.js +186 -0
- package/dist/esm/docs/content-cache.js.map +1 -0
- package/dist/esm/docs/index.d.ts +1 -0
- package/dist/esm/docs/index.js +2 -0
- package/dist/esm/docs/index.js.map +1 -1
- package/dist/esm/docs/search.js +34 -6
- package/dist/esm/docs/search.js.map +1 -1
- package/dist/esm/docs/types.d.ts +6 -1
- package/dist/esm/docs/types.js +1 -0
- package/dist/esm/docs/types.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/operations/jobs/discover.d.ts +46 -0
- package/dist/esm/operations/jobs/discover.js +87 -0
- package/dist/esm/operations/jobs/discover.js.map +1 -0
- package/dist/esm/operations/jobs/index.d.ts +2 -0
- package/dist/esm/operations/jobs/index.js +2 -0
- package/dist/esm/operations/jobs/index.js.map +1 -1
- package/dist/esm/operations/jobs/run.js +4 -3
- package/dist/esm/operations/jobs/run.js.map +1 -1
- package/package.json +5 -3
- package/specs/preferences-v1.yaml +2095 -0
- package/data/script-api/TopLevel.APIException.md +0 -119
- package/data/script-api/TopLevel.Array.md +0 -732
- package/data/script-api/TopLevel.ArrayBuffer.md +0 -97
- package/data/script-api/TopLevel.BigInt.md +0 -154
- package/data/script-api/TopLevel.Boolean.md +0 -83
- package/data/script-api/TopLevel.ConversionError.md +0 -51
- package/data/script-api/TopLevel.DataView.md +0 -271
- package/data/script-api/TopLevel.Date.md +0 -688
- package/data/script-api/TopLevel.ES6Iterator.md +0 -47
- package/data/script-api/TopLevel.Error.md +0 -124
- package/data/script-api/TopLevel.EvalError.md +0 -47
- package/data/script-api/TopLevel.Fault.md +0 -133
- package/data/script-api/TopLevel.Float32Array.md +0 -186
- package/data/script-api/TopLevel.Float64Array.md +0 -186
- package/data/script-api/TopLevel.Function.md +0 -114
- package/data/script-api/TopLevel.Generator.md +0 -132
- package/data/script-api/TopLevel.IOError.md +0 -98
- package/data/script-api/TopLevel.Int16Array.md +0 -186
- package/data/script-api/TopLevel.Int32Array.md +0 -186
- package/data/script-api/TopLevel.Int8Array.md +0 -186
- package/data/script-api/TopLevel.InternalError.md +0 -47
- package/data/script-api/TopLevel.Iterable.md +0 -44
- package/data/script-api/TopLevel.Iterator.md +0 -89
- package/data/script-api/TopLevel.JSON.md +0 -173
- package/data/script-api/TopLevel.Map.md +0 -189
- package/data/script-api/TopLevel.Math.md +0 -948
- package/data/script-api/TopLevel.Module.md +0 -152
- package/data/script-api/TopLevel.Namespace.md +0 -152
- package/data/script-api/TopLevel.Number.md +0 -404
- package/data/script-api/TopLevel.Object.md +0 -472
- package/data/script-api/TopLevel.QName.md +0 -147
- package/data/script-api/TopLevel.RangeError.md +0 -47
- package/data/script-api/TopLevel.ReferenceError.md +0 -47
- package/data/script-api/TopLevel.RegExp.md +0 -155
- package/data/script-api/TopLevel.Set.md +0 -150
- package/data/script-api/TopLevel.StopIteration.md +0 -36
- package/data/script-api/TopLevel.String.md +0 -1060
- package/data/script-api/TopLevel.Symbol.md +0 -196
- package/data/script-api/TopLevel.SyntaxError.md +0 -47
- package/data/script-api/TopLevel.SystemError.md +0 -99
- package/data/script-api/TopLevel.TypeError.md +0 -47
- package/data/script-api/TopLevel.URIError.md +0 -47
- package/data/script-api/TopLevel.Uint16Array.md +0 -186
- package/data/script-api/TopLevel.Uint32Array.md +0 -186
- package/data/script-api/TopLevel.Uint8Array.md +0 -186
- package/data/script-api/TopLevel.Uint8ClampedArray.md +0 -186
- package/data/script-api/TopLevel.WeakMap.md +0 -135
- package/data/script-api/TopLevel.WeakSet.md +0 -96
- package/data/script-api/TopLevel.XML.md +0 -922
- package/data/script-api/TopLevel.XMLList.md +0 -418
- package/data/script-api/TopLevel.XMLStreamError.md +0 -115
- package/data/script-api/TopLevel.arguments.md +0 -56
- package/data/script-api/TopLevel.global.md +0 -539
- package/data/script-api/TopLevel.md +0 -58
- package/data/script-api/dw.alert.Alert.md +0 -175
- package/data/script-api/dw.alert.Alerts.md +0 -256
- package/data/script-api/dw.alert.md +0 -7
- package/data/script-api/dw.campaign.ABTest.md +0 -63
- package/data/script-api/dw.campaign.ABTestMgr.md +0 -76
- package/data/script-api/dw.campaign.ABTestSegment.md +0 -107
- package/data/script-api/dw.campaign.AmountDiscount.md +0 -70
- package/data/script-api/dw.campaign.ApproachingDiscount.md +0 -157
- package/data/script-api/dw.campaign.BonusChoiceDiscount.md +0 -190
- package/data/script-api/dw.campaign.BonusDiscount.md +0 -59
- package/data/script-api/dw.campaign.Campaign.md +0 -346
- package/data/script-api/dw.campaign.CampaignMgr.md +0 -436
- package/data/script-api/dw.campaign.CampaignStatusCodes.md +0 -103
- package/data/script-api/dw.campaign.Coupon.md +0 -324
- package/data/script-api/dw.campaign.CouponMgr.md +0 -137
- package/data/script-api/dw.campaign.CouponRedemption.md +0 -87
- package/data/script-api/dw.campaign.CouponStatusCodes.md +0 -130
- package/data/script-api/dw.campaign.Discount.md +0 -271
- package/data/script-api/dw.campaign.DiscountPlan.md +0 -322
- package/data/script-api/dw.campaign.FixedPriceDiscount.md +0 -74
- package/data/script-api/dw.campaign.FixedPriceShippingDiscount.md +0 -74
- package/data/script-api/dw.campaign.FreeDiscount.md +0 -24
- package/data/script-api/dw.campaign.FreeShippingDiscount.md +0 -24
- package/data/script-api/dw.campaign.PercentageDiscount.md +0 -74
- package/data/script-api/dw.campaign.PercentageOptionDiscount.md +0 -59
- package/data/script-api/dw.campaign.PriceBookPriceDiscount.md +0 -56
- package/data/script-api/dw.campaign.Promotion.md +0 -939
- package/data/script-api/dw.campaign.PromotionMgr.md +0 -478
- package/data/script-api/dw.campaign.PromotionPlan.md +0 -378
- package/data/script-api/dw.campaign.SlotContent.md +0 -131
- package/data/script-api/dw.campaign.SourceCodeGroup.md +0 -83
- package/data/script-api/dw.campaign.SourceCodeInfo.md +0 -167
- package/data/script-api/dw.campaign.SourceCodeStatusCodes.md +0 -61
- package/data/script-api/dw.campaign.TotalFixedPriceDiscount.md +0 -56
- package/data/script-api/dw.campaign.md +0 -36
- package/data/script-api/dw.catalog.Catalog.md +0 -158
- package/data/script-api/dw.catalog.CatalogMgr.md +0 -161
- package/data/script-api/dw.catalog.Category.md +0 -1212
- package/data/script-api/dw.catalog.CategoryAssignment.md +0 -179
- package/data/script-api/dw.catalog.CategoryLink.md +0 -142
- package/data/script-api/dw.catalog.PriceBook.md +0 -215
- package/data/script-api/dw.catalog.PriceBookMgr.md +0 -176
- package/data/script-api/dw.catalog.Product.md +0 -2492
- package/data/script-api/dw.catalog.ProductActiveData.md +0 -1244
- package/data/script-api/dw.catalog.ProductAttributeModel.md +0 -409
- package/data/script-api/dw.catalog.ProductAvailabilityLevels.md +0 -125
- package/data/script-api/dw.catalog.ProductAvailabilityModel.md +0 -516
- package/data/script-api/dw.catalog.ProductInventoryList.md +0 -136
- package/data/script-api/dw.catalog.ProductInventoryMgr.md +0 -132
- package/data/script-api/dw.catalog.ProductInventoryRecord.md +0 -638
- package/data/script-api/dw.catalog.ProductLink.md +0 -166
- package/data/script-api/dw.catalog.ProductMgr.md +0 -136
- package/data/script-api/dw.catalog.ProductOption.md +0 -189
- package/data/script-api/dw.catalog.ProductOptionModel.md +0 -209
- package/data/script-api/dw.catalog.ProductOptionValue.md +0 -132
- package/data/script-api/dw.catalog.ProductPriceInfo.md +0 -170
- package/data/script-api/dw.catalog.ProductPriceModel.md +0 -988
- package/data/script-api/dw.catalog.ProductPriceTable.md +0 -121
- package/data/script-api/dw.catalog.ProductSearchHit.md +0 -702
- package/data/script-api/dw.catalog.ProductSearchModel.md +0 -1894
- package/data/script-api/dw.catalog.ProductSearchRefinementDefinition.md +0 -99
- package/data/script-api/dw.catalog.ProductSearchRefinementValue.md +0 -80
- package/data/script-api/dw.catalog.ProductSearchRefinements.md +0 -265
- package/data/script-api/dw.catalog.ProductVariationAttribute.md +0 -107
- package/data/script-api/dw.catalog.ProductVariationAttributeValue.md +0 -215
- package/data/script-api/dw.catalog.ProductVariationModel.md +0 -1010
- package/data/script-api/dw.catalog.Recommendation.md +0 -327
- package/data/script-api/dw.catalog.SearchModel.md +0 -769
- package/data/script-api/dw.catalog.SearchRefinementDefinition.md +0 -145
- package/data/script-api/dw.catalog.SearchRefinementValue.md +0 -194
- package/data/script-api/dw.catalog.SearchRefinements.md +0 -238
- package/data/script-api/dw.catalog.SortingOption.md +0 -120
- package/data/script-api/dw.catalog.SortingRule.md +0 -53
- package/data/script-api/dw.catalog.Store.md +0 -484
- package/data/script-api/dw.catalog.StoreGroup.md +0 -95
- package/data/script-api/dw.catalog.StoreInventoryFilter.md +0 -112
- package/data/script-api/dw.catalog.StoreInventoryFilterValue.md +0 -111
- package/data/script-api/dw.catalog.StoreMgr.md +0 -223
- package/data/script-api/dw.catalog.Variant.md +0 -1000
- package/data/script-api/dw.catalog.VariationGroup.md +0 -869
- package/data/script-api/dw.catalog.md +0 -50
- package/data/script-api/dw.content.Content.md +0 -481
- package/data/script-api/dw.content.ContentMgr.md +0 -147
- package/data/script-api/dw.content.ContentSearchModel.md +0 -618
- package/data/script-api/dw.content.ContentSearchRefinementDefinition.md +0 -61
- package/data/script-api/dw.content.ContentSearchRefinementValue.md +0 -22
- package/data/script-api/dw.content.ContentSearchRefinements.md +0 -218
- package/data/script-api/dw.content.Folder.md +0 -432
- package/data/script-api/dw.content.Library.md +0 -124
- package/data/script-api/dw.content.MarkupText.md +0 -150
- package/data/script-api/dw.content.MediaFile.md +0 -367
- package/data/script-api/dw.content.md +0 -15
- package/data/script-api/dw.crypto.CertificateRef.md +0 -59
- package/data/script-api/dw.crypto.CertificateUtils.md +0 -162
- package/data/script-api/dw.crypto.Cipher.md +0 -1234
- package/data/script-api/dw.crypto.Encoding.md +0 -193
- package/data/script-api/dw.crypto.JWE.md +0 -245
- package/data/script-api/dw.crypto.JWEHeader.md +0 -147
- package/data/script-api/dw.crypto.JWS.md +0 -260
- package/data/script-api/dw.crypto.JWSHeader.md +0 -128
- package/data/script-api/dw.crypto.KeyRef.md +0 -77
- package/data/script-api/dw.crypto.Mac.md +0 -191
- package/data/script-api/dw.crypto.MessageDigest.md +0 -243
- package/data/script-api/dw.crypto.SecureRandom.md +0 -161
- package/data/script-api/dw.crypto.Signature.md +0 -241
- package/data/script-api/dw.crypto.WeakCipher.md +0 -725
- package/data/script-api/dw.crypto.WeakMac.md +0 -163
- package/data/script-api/dw.crypto.WeakMessageDigest.md +0 -220
- package/data/script-api/dw.crypto.WeakSignature.md +0 -208
- package/data/script-api/dw.crypto.X509Certificate.md +0 -180
- package/data/script-api/dw.crypto.md +0 -23
- package/data/script-api/dw.customer.AddressBook.md +0 -158
- package/data/script-api/dw.customer.AgentUserMgr.md +0 -94
- package/data/script-api/dw.customer.AgentUserStatusCodes.md +0 -164
- package/data/script-api/dw.customer.AuthenticationStatus.md +0 -157
- package/data/script-api/dw.customer.Credentials.md +0 -524
- package/data/script-api/dw.customer.Customer.md +0 -488
- package/data/script-api/dw.customer.CustomerActiveData.md +0 -563
- package/data/script-api/dw.customer.CustomerAddress.md +0 -666
- package/data/script-api/dw.customer.CustomerCDPData.md +0 -70
- package/data/script-api/dw.customer.CustomerContextMgr.md +0 -62
- package/data/script-api/dw.customer.CustomerGroup.md +0 -146
- package/data/script-api/dw.customer.CustomerList.md +0 -76
- package/data/script-api/dw.customer.CustomerMgr.md +0 -1046
- package/data/script-api/dw.customer.CustomerPasswordConstraints.md +0 -125
- package/data/script-api/dw.customer.CustomerPaymentInstrument.md +0 -161
- package/data/script-api/dw.customer.CustomerStatusCodes.md +0 -55
- package/data/script-api/dw.customer.EncryptedObject.md +0 -34
- package/data/script-api/dw.customer.ExternalProfile.md +0 -154
- package/data/script-api/dw.customer.OrderHistory.md +0 -167
- package/data/script-api/dw.customer.ProductList.md +0 -870
- package/data/script-api/dw.customer.ProductListItem.md +0 -469
- package/data/script-api/dw.customer.ProductListItemPurchase.md +0 -139
- package/data/script-api/dw.customer.ProductListMgr.md +0 -350
- package/data/script-api/dw.customer.ProductListRegistrant.md +0 -165
- package/data/script-api/dw.customer.Profile.md +0 -940
- package/data/script-api/dw.customer.Wallet.md +0 -136
- package/data/script-api/dw.customer.consent.ConsentStatusEntry.md +0 -92
- package/data/script-api/dw.customer.consent.MarketingConsentSubscription.md +0 -247
- package/data/script-api/dw.customer.consent.ShopperConsentErrorCodes.md +0 -74
- package/data/script-api/dw.customer.consent.ShopperConsentException.md +0 -63
- package/data/script-api/dw.customer.consent.ShopperConsentMgr.md +0 -152
- package/data/script-api/dw.customer.consent.md +0 -10
- package/data/script-api/dw.customer.md +0 -31
- package/data/script-api/dw.customer.oauth.OAuthAccessTokenResponse.md +0 -171
- package/data/script-api/dw.customer.oauth.OAuthFinalizedResponse.md +0 -75
- package/data/script-api/dw.customer.oauth.OAuthLoginFlowMgr.md +0 -165
- package/data/script-api/dw.customer.oauth.OAuthUserInfoResponse.md +0 -84
- package/data/script-api/dw.customer.oauth.md +0 -9
- package/data/script-api/dw.customer.shoppercontext.ShopperContext.md +0 -369
- package/data/script-api/dw.customer.shoppercontext.ShopperContextErrorCodes.md +0 -111
- package/data/script-api/dw.customer.shoppercontext.ShopperContextException.md +0 -77
- package/data/script-api/dw.customer.shoppercontext.ShopperContextMgr.md +0 -209
- package/data/script-api/dw.customer.shoppercontext.md +0 -9
- package/data/script-api/dw.experience.AspectAttributeValidationException.md +0 -25
- package/data/script-api/dw.experience.Component.md +0 -166
- package/data/script-api/dw.experience.ComponentRenderSettings.md +0 -130
- package/data/script-api/dw.experience.ComponentScriptContext.md +0 -148
- package/data/script-api/dw.experience.CustomEditor.md +0 -146
- package/data/script-api/dw.experience.CustomEditorResources.md +0 -100
- package/data/script-api/dw.experience.Page.md +0 -467
- package/data/script-api/dw.experience.PageMgr.md +0 -549
- package/data/script-api/dw.experience.PageScriptContext.md +0 -200
- package/data/script-api/dw.experience.Region.md +0 -119
- package/data/script-api/dw.experience.RegionRenderSettings.md +0 -207
- package/data/script-api/dw.experience.cms.CMSRecord.md +0 -125
- package/data/script-api/dw.experience.cms.md +0 -6
- package/data/script-api/dw.experience.image.FocalPoint.md +0 -71
- package/data/script-api/dw.experience.image.Image.md +0 -101
- package/data/script-api/dw.experience.image.ImageMetaData.md +0 -71
- package/data/script-api/dw.experience.image.md +0 -8
- package/data/script-api/dw.experience.md +0 -16
- package/data/script-api/dw.extensions.applepay.ApplePayHookResult.md +0 -254
- package/data/script-api/dw.extensions.applepay.ApplePayHooks.md +0 -572
- package/data/script-api/dw.extensions.applepay.md +0 -7
- package/data/script-api/dw.extensions.facebook.FacebookFeedHooks.md +0 -102
- package/data/script-api/dw.extensions.facebook.FacebookProduct.md +0 -1343
- package/data/script-api/dw.extensions.facebook.md +0 -7
- package/data/script-api/dw.extensions.paymentapi.PaymentApiHooks.md +0 -136
- package/data/script-api/dw.extensions.paymentapi.md +0 -6
- package/data/script-api/dw.extensions.paymentrequest.PaymentRequestHookResult.md +0 -149
- package/data/script-api/dw.extensions.paymentrequest.PaymentRequestHooks.md +0 -356
- package/data/script-api/dw.extensions.paymentrequest.md +0 -7
- package/data/script-api/dw.extensions.payments.SalesforceAdyenPaymentIntent.md +0 -134
- package/data/script-api/dw.extensions.payments.SalesforceAdyenSavedPaymentMethod.md +0 -283
- package/data/script-api/dw.extensions.payments.SalesforceBancontactPaymentDetails.md +0 -88
- package/data/script-api/dw.extensions.payments.SalesforceCardPaymentDetails.md +0 -107
- package/data/script-api/dw.extensions.payments.SalesforceEpsPaymentDetails.md +0 -63
- package/data/script-api/dw.extensions.payments.SalesforceIdealPaymentDetails.md +0 -63
- package/data/script-api/dw.extensions.payments.SalesforceKlarnaPaymentDetails.md +0 -63
- package/data/script-api/dw.extensions.payments.SalesforcePayPalOrder.md +0 -263
- package/data/script-api/dw.extensions.payments.SalesforcePayPalOrderAddress.md +0 -171
- package/data/script-api/dw.extensions.payments.SalesforcePayPalOrderPayer.md +0 -110
- package/data/script-api/dw.extensions.payments.SalesforcePayPalPaymentDetails.md +0 -88
- package/data/script-api/dw.extensions.payments.SalesforcePaymentDetails.md +0 -83
- package/data/script-api/dw.extensions.payments.SalesforcePaymentIntent.md +0 -273
- package/data/script-api/dw.extensions.payments.SalesforcePaymentMethod.md +0 -368
- package/data/script-api/dw.extensions.payments.SalesforcePaymentRequest.md +0 -1077
- package/data/script-api/dw.extensions.payments.SalesforcePaymentsHooks.md +0 -190
- package/data/script-api/dw.extensions.payments.SalesforcePaymentsMerchantAccount.md +0 -151
- package/data/script-api/dw.extensions.payments.SalesforcePaymentsMerchantAccountPaymentMethod.md +0 -98
- package/data/script-api/dw.extensions.payments.SalesforcePaymentsMgr.md +0 -989
- package/data/script-api/dw.extensions.payments.SalesforcePaymentsSiteConfiguration.md +0 -202
- package/data/script-api/dw.extensions.payments.SalesforcePaymentsZone.md +0 -393
- package/data/script-api/dw.extensions.payments.SalesforceSepaDebitPaymentDetails.md +0 -63
- package/data/script-api/dw.extensions.payments.SalesforceVenmoPaymentDetails.md +0 -88
- package/data/script-api/dw.extensions.payments.md +0 -28
- package/data/script-api/dw.extensions.pinterest.PinterestAvailability.md +0 -85
- package/data/script-api/dw.extensions.pinterest.PinterestFeedHooks.md +0 -118
- package/data/script-api/dw.extensions.pinterest.PinterestOrder.md +0 -263
- package/data/script-api/dw.extensions.pinterest.PinterestOrderHooks.md +0 -89
- package/data/script-api/dw.extensions.pinterest.PinterestProduct.md +0 -677
- package/data/script-api/dw.extensions.pinterest.md +0 -10
- package/data/script-api/dw.io.CSVStreamReader.md +0 -128
- package/data/script-api/dw.io.CSVStreamWriter.md +0 -92
- package/data/script-api/dw.io.File.md +0 -729
- package/data/script-api/dw.io.FileReader.md +0 -70
- package/data/script-api/dw.io.FileWriter.md +0 -159
- package/data/script-api/dw.io.InputStream.md +0 -35
- package/data/script-api/dw.io.OutputStream.md +0 -38
- package/data/script-api/dw.io.PrintWriter.md +0 -66
- package/data/script-api/dw.io.RandomAccessFileReader.md +0 -183
- package/data/script-api/dw.io.Reader.md +0 -284
- package/data/script-api/dw.io.StringWriter.md +0 -89
- package/data/script-api/dw.io.Writer.md +0 -96
- package/data/script-api/dw.io.XMLIndentingStreamWriter.md +0 -121
- package/data/script-api/dw.io.XMLStreamConstants.md +0 -172
- package/data/script-api/dw.io.XMLStreamReader.md +0 -1181
- package/data/script-api/dw.io.XMLStreamWriter.md +0 -478
- package/data/script-api/dw.io.md +0 -21
- package/data/script-api/dw.job.JobExecution.md +0 -111
- package/data/script-api/dw.job.JobStepExecution.md +0 -136
- package/data/script-api/dw.job.md +0 -7
- package/data/script-api/dw.net.FTPClient.md +0 -621
- package/data/script-api/dw.net.FTPFileInfo.md +0 -132
- package/data/script-api/dw.net.HTTPClient.md +0 -775
- package/data/script-api/dw.net.HTTPClientLoggingConfig.md +0 -363
- package/data/script-api/dw.net.HTTPRequestPart.md +0 -296
- package/data/script-api/dw.net.Mail.md +0 -487
- package/data/script-api/dw.net.SFTPClient.md +0 -535
- package/data/script-api/dw.net.SFTPFileInfo.md +0 -128
- package/data/script-api/dw.net.WebDAVClient.md +0 -762
- package/data/script-api/dw.net.WebDAVFileInfo.md +0 -163
- package/data/script-api/dw.net.md +0 -15
- package/data/script-api/dw.object.ActiveData.md +0 -86
- package/data/script-api/dw.object.CustomAttributes.md +0 -165
- package/data/script-api/dw.object.CustomObject.md +0 -82
- package/data/script-api/dw.object.CustomObjectMgr.md +0 -478
- package/data/script-api/dw.object.Extensible.md +0 -71
- package/data/script-api/dw.object.ExtensibleObject.md +0 -85
- package/data/script-api/dw.object.Note.md +0 -118
- package/data/script-api/dw.object.ObjectAttributeDefinition.md +0 -542
- package/data/script-api/dw.object.ObjectAttributeGroup.md +0 -160
- package/data/script-api/dw.object.ObjectAttributeValueDefinition.md +0 -78
- package/data/script-api/dw.object.ObjectTypeDefinition.md +0 -239
- package/data/script-api/dw.object.PersistentObject.md +0 -92
- package/data/script-api/dw.object.SimpleExtensible.md +0 -53
- package/data/script-api/dw.object.SystemObjectMgr.md +0 -520
- package/data/script-api/dw.object.md +0 -19
- package/data/script-api/dw.order.AbstractItem.md +0 -220
- package/data/script-api/dw.order.AbstractItemCtnr.md +0 -219
- package/data/script-api/dw.order.Appeasement.md +0 -398
- package/data/script-api/dw.order.AppeasementItem.md +0 -104
- package/data/script-api/dw.order.Basket.md +0 -868
- package/data/script-api/dw.order.BasketMgr.md +0 -673
- package/data/script-api/dw.order.BonusDiscountLineItem.md +0 -309
- package/data/script-api/dw.order.CouponLineItem.md +0 -289
- package/data/script-api/dw.order.CreateAgentBasketLimitExceededException.md +0 -35
- package/data/script-api/dw.order.CreateBasketFromOrderException.md +0 -54
- package/data/script-api/dw.order.CreateCouponLineItemException.md +0 -67
- package/data/script-api/dw.order.CreateOrderException.md +0 -23
- package/data/script-api/dw.order.CreateTemporaryBasketLimitExceededException.md +0 -35
- package/data/script-api/dw.order.GiftCertificate.md +0 -530
- package/data/script-api/dw.order.GiftCertificateLineItem.md +0 -292
- package/data/script-api/dw.order.GiftCertificateMgr.md +0 -228
- package/data/script-api/dw.order.GiftCertificateStatusCodes.md +0 -108
- package/data/script-api/dw.order.Invoice.md +0 -571
- package/data/script-api/dw.order.InvoiceItem.md +0 -199
- package/data/script-api/dw.order.LineItem.md +0 -577
- package/data/script-api/dw.order.LineItemCtnr.md +0 -2429
- package/data/script-api/dw.order.LineItemTax.md +0 -142
- package/data/script-api/dw.order.Order.md +0 -2770
- package/data/script-api/dw.order.OrderAddress.md +0 -624
- package/data/script-api/dw.order.OrderItem.md +0 -613
- package/data/script-api/dw.order.OrderMgr.md +0 -1502
- package/data/script-api/dw.order.OrderPaymentInstrument.md +0 -231
- package/data/script-api/dw.order.OrderProcessStatusCodes.md +0 -146
- package/data/script-api/dw.order.PaymentCard.md +0 -220
- package/data/script-api/dw.order.PaymentInstrument.md +0 -1416
- package/data/script-api/dw.order.PaymentMethod.md +0 -257
- package/data/script-api/dw.order.PaymentMgr.md +0 -138
- package/data/script-api/dw.order.PaymentProcessor.md +0 -106
- package/data/script-api/dw.order.PaymentStatusCodes.md +0 -70
- package/data/script-api/dw.order.PaymentTransaction.md +0 -291
- package/data/script-api/dw.order.PriceAdjustment.md +0 -745
- package/data/script-api/dw.order.PriceAdjustmentLimitTypes.md +0 -61
- package/data/script-api/dw.order.ProductLineItem.md +0 -1749
- package/data/script-api/dw.order.ProductShippingCost.md +0 -101
- package/data/script-api/dw.order.ProductShippingLineItem.md +0 -336
- package/data/script-api/dw.order.ProductShippingModel.md +0 -143
- package/data/script-api/dw.order.Return.md +0 -396
- package/data/script-api/dw.order.ReturnCase.md +0 -463
- package/data/script-api/dw.order.ReturnCaseItem.md +0 -372
- package/data/script-api/dw.order.ReturnItem.md +0 -335
- package/data/script-api/dw.order.Shipment.md +0 -1132
- package/data/script-api/dw.order.ShipmentShippingCost.md +0 -54
- package/data/script-api/dw.order.ShipmentShippingModel.md +0 -203
- package/data/script-api/dw.order.ShippingLineItem.md +0 -315
- package/data/script-api/dw.order.ShippingLocation.md +0 -313
- package/data/script-api/dw.order.ShippingMethod.md +0 -251
- package/data/script-api/dw.order.ShippingMgr.md +0 -173
- package/data/script-api/dw.order.ShippingOrder.md +0 -630
- package/data/script-api/dw.order.ShippingOrderItem.md +0 -425
- package/data/script-api/dw.order.SumItem.md +0 -158
- package/data/script-api/dw.order.TaxGroup.md +0 -128
- package/data/script-api/dw.order.TaxItem.md +0 -74
- package/data/script-api/dw.order.TaxMgr.md +0 -314
- package/data/script-api/dw.order.TrackingInfo.md +0 -261
- package/data/script-api/dw.order.TrackingRef.md +0 -108
- package/data/script-api/dw.order.hooks.BasketMergeHooks.md +0 -87
- package/data/script-api/dw.order.hooks.CalculateHooks.md +0 -139
- package/data/script-api/dw.order.hooks.CheckoutHooks.md +0 -88
- package/data/script-api/dw.order.hooks.OrderHooks.md +0 -96
- package/data/script-api/dw.order.hooks.PaymentHooks.md +0 -325
- package/data/script-api/dw.order.hooks.ReturnHooks.md +0 -395
- package/data/script-api/dw.order.hooks.ShippingOrderHooks.md +0 -426
- package/data/script-api/dw.order.hooks.TaxHooks.md +0 -495
- package/data/script-api/dw.order.hooks.md +0 -13
- package/data/script-api/dw.order.md +0 -65
- package/data/script-api/dw.rpc.SOAPUtil.md +0 -736
- package/data/script-api/dw.rpc.Stub.md +0 -373
- package/data/script-api/dw.rpc.WebReference.md +0 -133
- package/data/script-api/dw.rpc.md +0 -8
- package/data/script-api/dw.sitemap.SitemapFile.md +0 -137
- package/data/script-api/dw.sitemap.SitemapMgr.md +0 -165
- package/data/script-api/dw.sitemap.md +0 -7
- package/data/script-api/dw.suggest.BrandSuggestions.md +0 -34
- package/data/script-api/dw.suggest.CategorySuggestions.md +0 -76
- package/data/script-api/dw.suggest.ContentSuggestions.md +0 -76
- package/data/script-api/dw.suggest.CustomSuggestions.md +0 -34
- package/data/script-api/dw.suggest.ProductSuggestions.md +0 -76
- package/data/script-api/dw.suggest.SearchPhraseSuggestions.md +0 -126
- package/data/script-api/dw.suggest.SuggestModel.md +0 -471
- package/data/script-api/dw.suggest.SuggestedCategory.md +0 -51
- package/data/script-api/dw.suggest.SuggestedContent.md +0 -51
- package/data/script-api/dw.suggest.SuggestedPhrase.md +0 -70
- package/data/script-api/dw.suggest.SuggestedProduct.md +0 -55
- package/data/script-api/dw.suggest.SuggestedTerm.md +0 -143
- package/data/script-api/dw.suggest.SuggestedTerms.md +0 -144
- package/data/script-api/dw.suggest.Suggestions.md +0 -206
- package/data/script-api/dw.suggest.md +0 -19
- package/data/script-api/dw.svc.FTPService.md +0 -140
- package/data/script-api/dw.svc.FTPServiceDefinition.md +0 -97
- package/data/script-api/dw.svc.HTTPFormService.md +0 -32
- package/data/script-api/dw.svc.HTTPFormServiceDefinition.md +0 -36
- package/data/script-api/dw.svc.HTTPService.md +0 -370
- package/data/script-api/dw.svc.HTTPServiceDefinition.md +0 -290
- package/data/script-api/dw.svc.LocalServiceRegistry.md +0 -63
- package/data/script-api/dw.svc.Result.md +0 -320
- package/data/script-api/dw.svc.SOAPService.md +0 -104
- package/data/script-api/dw.svc.SOAPServiceDefinition.md +0 -32
- package/data/script-api/dw.svc.Service.md +0 -276
- package/data/script-api/dw.svc.ServiceCallback.md +0 -282
- package/data/script-api/dw.svc.ServiceConfig.md +0 -114
- package/data/script-api/dw.svc.ServiceCredential.md +0 -162
- package/data/script-api/dw.svc.ServiceDefinition.md +0 -211
- package/data/script-api/dw.svc.ServiceProfile.md +0 -152
- package/data/script-api/dw.svc.ServiceRegistry.md +0 -118
- package/data/script-api/dw.svc.md +0 -22
- package/data/script-api/dw.system.AgentUserStatusCodes.md +0 -41
- package/data/script-api/dw.system.Cache.md +0 -126
- package/data/script-api/dw.system.CacheMgr.md +0 -70
- package/data/script-api/dw.system.HookMgr.md +0 -78
- package/data/script-api/dw.system.InternalObject.md +0 -47
- package/data/script-api/dw.system.JobProcessMonitor.md +0 -103
- package/data/script-api/dw.system.Log.md +0 -198
- package/data/script-api/dw.system.LogNDC.md +0 -75
- package/data/script-api/dw.system.Logger.md +0 -216
- package/data/script-api/dw.system.OrganizationPreferences.md +0 -53
- package/data/script-api/dw.system.Pipeline.md +0 -94
- package/data/script-api/dw.system.PipelineDictionary.md +0 -42
- package/data/script-api/dw.system.RESTErrorResponse.md +0 -102
- package/data/script-api/dw.system.RESTResponseMgr.md +0 -243
- package/data/script-api/dw.system.RESTSuccessResponse.md +0 -62
- package/data/script-api/dw.system.RemoteInclude.md +0 -146
- package/data/script-api/dw.system.Request.md +0 -785
- package/data/script-api/dw.system.RequestHooks.md +0 -112
- package/data/script-api/dw.system.Response.md +0 -612
- package/data/script-api/dw.system.SearchStatus.md +0 -187
- package/data/script-api/dw.system.Session.md +0 -469
- package/data/script-api/dw.system.Site.md +0 -570
- package/data/script-api/dw.system.SitePreferences.md +0 -90
- package/data/script-api/dw.system.Status.md +0 -330
- package/data/script-api/dw.system.StatusItem.md +0 -273
- package/data/script-api/dw.system.System.md +0 -224
- package/data/script-api/dw.system.Transaction.md +0 -107
- package/data/script-api/dw.system.md +0 -32
- package/data/script-api/dw.template.ISML.md +0 -127
- package/data/script-api/dw.template.Velocity.md +0 -168
- package/data/script-api/dw.template.md +0 -7
- package/data/script-api/dw.util.ArrayList.md +0 -99
- package/data/script-api/dw.util.Assert.md +0 -370
- package/data/script-api/dw.util.BigInteger.md +0 -283
- package/data/script-api/dw.util.Bytes.md +0 -278
- package/data/script-api/dw.util.Calendar.md +0 -1051
- package/data/script-api/dw.util.Collection.md +0 -272
- package/data/script-api/dw.util.Currency.md +0 -147
- package/data/script-api/dw.util.DateUtils.md +0 -82
- package/data/script-api/dw.util.Decimal.md +0 -386
- package/data/script-api/dw.util.FilteringCollection.md +0 -140
- package/data/script-api/dw.util.Geolocation.md +0 -293
- package/data/script-api/dw.util.HashMap.md +0 -50
- package/data/script-api/dw.util.HashSet.md +0 -65
- package/data/script-api/dw.util.Iterator.md +0 -86
- package/data/script-api/dw.util.LinkedHashMap.md +0 -52
- package/data/script-api/dw.util.LinkedHashSet.md +0 -68
- package/data/script-api/dw.util.List.md +0 -429
- package/data/script-api/dw.util.Locale.md +0 -277
- package/data/script-api/dw.util.Map.md +0 -251
- package/data/script-api/dw.util.MapEntry.md +0 -68
- package/data/script-api/dw.util.MappingKey.md +0 -96
- package/data/script-api/dw.util.MappingMgr.md +0 -113
- package/data/script-api/dw.util.PropertyComparator.md +0 -122
- package/data/script-api/dw.util.SecureEncoder.md +0 -582
- package/data/script-api/dw.util.SecureFilter.md +0 -572
- package/data/script-api/dw.util.SeekableIterator.md +0 -187
- package/data/script-api/dw.util.Set.md +0 -39
- package/data/script-api/dw.util.SortedMap.md +0 -148
- package/data/script-api/dw.util.SortedSet.md +0 -173
- package/data/script-api/dw.util.StringUtils.md +0 -655
- package/data/script-api/dw.util.Template.md +0 -141
- package/data/script-api/dw.util.UUIDUtils.md +0 -34
- package/data/script-api/dw.util.md +0 -37
- package/data/script-api/dw.value.EnumValue.md +0 -105
- package/data/script-api/dw.value.MimeEncodedText.md +0 -131
- package/data/script-api/dw.value.Money.md +0 -526
- package/data/script-api/dw.value.Quantity.md +0 -299
- package/data/script-api/dw.value.md +0 -9
- package/data/script-api/dw.web.CSRFProtection.md +0 -105
- package/data/script-api/dw.web.ClickStream.md +0 -177
- package/data/script-api/dw.web.ClickStreamEntry.md +0 -255
- package/data/script-api/dw.web.Cookie.md +0 -431
- package/data/script-api/dw.web.Cookies.md +0 -59
- package/data/script-api/dw.web.Form.md +0 -84
- package/data/script-api/dw.web.FormAction.md +0 -195
- package/data/script-api/dw.web.FormElement.md +0 -211
- package/data/script-api/dw.web.FormElementValidationResult.md +0 -170
- package/data/script-api/dw.web.FormField.md +0 -642
- package/data/script-api/dw.web.FormFieldOption.md +0 -211
- package/data/script-api/dw.web.FormFieldOptions.md +0 -49
- package/data/script-api/dw.web.FormGroup.md +0 -222
- package/data/script-api/dw.web.FormList.md +0 -134
- package/data/script-api/dw.web.FormListItem.md +0 -57
- package/data/script-api/dw.web.Forms.md +0 -25
- package/data/script-api/dw.web.HttpParameter.md +0 -462
- package/data/script-api/dw.web.HttpParameterMap.md +0 -194
- package/data/script-api/dw.web.LoopIterator.md +0 -231
- package/data/script-api/dw.web.PageMetaData.md +0 -197
- package/data/script-api/dw.web.PageMetaTag.md +0 -173
- package/data/script-api/dw.web.PagingModel.md +0 -407
- package/data/script-api/dw.web.Resource.md +0 -147
- package/data/script-api/dw.web.URL.md +0 -174
- package/data/script-api/dw.web.URLAction.md +0 -95
- package/data/script-api/dw.web.URLParameter.md +0 -52
- package/data/script-api/dw.web.URLRedirect.md +0 -72
- package/data/script-api/dw.web.URLRedirectMgr.md +0 -86
- package/data/script-api/dw.web.URLUtils.md +0 -1357
- package/data/script-api/dw.web.md +0 -34
- package/data/script-api/dw.ws.Port.md +0 -126
- package/data/script-api/dw.ws.WSUtil.md +0 -728
- package/data/script-api/dw.ws.WebReference2.md +0 -137
- package/data/script-api/dw.ws.md +0 -8
- package/data/script-api/index.md +0 -40
|
@@ -0,0 +1,2095 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
x-api-type: Admin
|
|
4
|
+
x-api-family: Configuration
|
|
5
|
+
title: Preferences
|
|
6
|
+
version: 1.2.2
|
|
7
|
+
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## 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)"
|
|
8
|
+
servers:
|
|
9
|
+
- url: https://{shortCode}.api.commercecloud.salesforce.com/configuration/preferences/v1
|
|
10
|
+
variables:
|
|
11
|
+
shortCode:
|
|
12
|
+
default: shortCode
|
|
13
|
+
paths:
|
|
14
|
+
/organizations/{organizationId}/global-custom-preferences:
|
|
15
|
+
get:
|
|
16
|
+
summary: Retrieves the Global Custom Preferences.
|
|
17
|
+
operationId: getGlobalCustomPreferenceList
|
|
18
|
+
parameters:
|
|
19
|
+
- $ref: '#/components/parameters/organizationId'
|
|
20
|
+
- $ref: '#/components/parameters/maskPassword'
|
|
21
|
+
- name: limit
|
|
22
|
+
in: query
|
|
23
|
+
required: false
|
|
24
|
+
schema:
|
|
25
|
+
type: integer
|
|
26
|
+
format: int32
|
|
27
|
+
default: 200
|
|
28
|
+
minimum: 1
|
|
29
|
+
maximum: 200
|
|
30
|
+
description: Number of records to retrieve per request. Must be between 1 (minimum) and 200 (maximum). Defaults to 200.
|
|
31
|
+
- name: offset
|
|
32
|
+
in: query
|
|
33
|
+
required: false
|
|
34
|
+
schema:
|
|
35
|
+
type: integer
|
|
36
|
+
format: int32
|
|
37
|
+
default: 0
|
|
38
|
+
minimum: 0
|
|
39
|
+
description: Used to retrieve the results based on a particular resource offset.
|
|
40
|
+
responses:
|
|
41
|
+
'200':
|
|
42
|
+
description: Retrieved Global Custom Preferences successfully.
|
|
43
|
+
content:
|
|
44
|
+
application/json:
|
|
45
|
+
schema:
|
|
46
|
+
$ref: '#/components/schemas/CustomPreferenceList'
|
|
47
|
+
examples:
|
|
48
|
+
GlobalCustomPreferenceExample:
|
|
49
|
+
$ref: '#/components/examples/GlobalCustomPreferenceExample'
|
|
50
|
+
'400':
|
|
51
|
+
description: Thrown if the query is ill-formed.
|
|
52
|
+
'401':
|
|
53
|
+
description: |
|
|
54
|
+
Unauthorized. Your Client ID is invalid, or you are not allowed to access
|
|
55
|
+
the content provided by the requested URL.
|
|
56
|
+
content:
|
|
57
|
+
application/problem+json:
|
|
58
|
+
schema:
|
|
59
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
60
|
+
examples:
|
|
61
|
+
InvalidAccessToken:
|
|
62
|
+
$ref: '#/components/examples/InvalidAccessToken'
|
|
63
|
+
security:
|
|
64
|
+
- AmOAuth2:
|
|
65
|
+
- sfcc.preferences
|
|
66
|
+
- sfcc.preferences.rw
|
|
67
|
+
/organizations/{organizationId}/site-custom-preferences:
|
|
68
|
+
get:
|
|
69
|
+
summary: Retrieves the Custom Preferences for a specified siteId.
|
|
70
|
+
operationId: getSiteCustomPreferenceList
|
|
71
|
+
parameters:
|
|
72
|
+
- $ref: '#/components/parameters/organizationId'
|
|
73
|
+
- $ref: '#/components/parameters/maskPassword'
|
|
74
|
+
- $ref: '#/components/parameters/siteId'
|
|
75
|
+
- name: limit
|
|
76
|
+
in: query
|
|
77
|
+
required: false
|
|
78
|
+
schema:
|
|
79
|
+
type: integer
|
|
80
|
+
format: int32
|
|
81
|
+
default: 200
|
|
82
|
+
minimum: 1
|
|
83
|
+
maximum: 200
|
|
84
|
+
description: Number of records to retrieve per request. Must be between 1 (minimum) and 200 (maximum). Defaults to 200.
|
|
85
|
+
- name: offset
|
|
86
|
+
in: query
|
|
87
|
+
required: false
|
|
88
|
+
schema:
|
|
89
|
+
type: integer
|
|
90
|
+
format: int32
|
|
91
|
+
default: 0
|
|
92
|
+
minimum: 0
|
|
93
|
+
description: Used to retrieve the results based on a particular resource offset.
|
|
94
|
+
responses:
|
|
95
|
+
'200':
|
|
96
|
+
description: Retrieved Site Custom Preferences successfully.
|
|
97
|
+
content:
|
|
98
|
+
application/json:
|
|
99
|
+
schema:
|
|
100
|
+
$ref: '#/components/schemas/CustomPreferenceList'
|
|
101
|
+
examples:
|
|
102
|
+
SiteCustomPreferenceExample:
|
|
103
|
+
$ref: '#/components/examples/SiteCustomPreferenceExample'
|
|
104
|
+
'400':
|
|
105
|
+
description: Thrown if the query is ill-formed.
|
|
106
|
+
'401':
|
|
107
|
+
description: |
|
|
108
|
+
Unauthorized. Your Client ID is invalid, or you are not allowed to access
|
|
109
|
+
the content provided by the requested URL.
|
|
110
|
+
content:
|
|
111
|
+
application/problem+json:
|
|
112
|
+
schema:
|
|
113
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
114
|
+
examples:
|
|
115
|
+
InvalidAccessToken:
|
|
116
|
+
$ref: '#/components/examples/InvalidAccessToken'
|
|
117
|
+
security:
|
|
118
|
+
- AmOAuth2:
|
|
119
|
+
- sfcc.preferences
|
|
120
|
+
- sfcc.preferences.rw
|
|
121
|
+
/organizations/{organizationId}/global-preference-groups/{groupId}/{instanceType}:
|
|
122
|
+
get:
|
|
123
|
+
summary: Read the custom preferences in a global preference group for a given instance type.
|
|
124
|
+
description: |
|
|
125
|
+
For the specified instance, read the custom preferences in the preference group at the
|
|
126
|
+
global (organization) level. Specify 'current' to retrieve the preferences for the instance
|
|
127
|
+
on which this call is being made. The system will recognize its type.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
**Note:** If instance type sandbox is used, the preference values of development instance type
|
|
131
|
+
will be returned as fallback.
|
|
132
|
+
operationId: getGlobalPreferenceGroup
|
|
133
|
+
parameters:
|
|
134
|
+
- $ref: '#/components/parameters/organizationId'
|
|
135
|
+
- $ref: '#/components/parameters/groupId'
|
|
136
|
+
- $ref: '#/components/parameters/instanceType'
|
|
137
|
+
- $ref: '#/components/parameters/maskPasswords'
|
|
138
|
+
- $ref: '#/components/parameters/globalPreferenceGroupExpand'
|
|
139
|
+
responses:
|
|
140
|
+
'200':
|
|
141
|
+
description: Custom preferences retrieved successfully.
|
|
142
|
+
content:
|
|
143
|
+
application/json:
|
|
144
|
+
schema:
|
|
145
|
+
$ref: '#/components/schemas/OrganizationPreferences'
|
|
146
|
+
examples:
|
|
147
|
+
GetGlobalPreferencesExample:
|
|
148
|
+
$ref: '#/components/examples/GetGlobalPreferencesExample'
|
|
149
|
+
GetGlobalPreferencesWithSitesExample:
|
|
150
|
+
$ref: '#/components/examples/GetGlobalPreferencesWithSitesExample'
|
|
151
|
+
'400':
|
|
152
|
+
description: Invalid instance type was provided.
|
|
153
|
+
content:
|
|
154
|
+
application/problem+json:
|
|
155
|
+
schema:
|
|
156
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
157
|
+
examples:
|
|
158
|
+
IllegalEnumerationValue:
|
|
159
|
+
$ref: '#/components/examples/IllegalEnumerationValue'
|
|
160
|
+
'404':
|
|
161
|
+
description: The preference group was not found.
|
|
162
|
+
content:
|
|
163
|
+
application/problem+json:
|
|
164
|
+
schema:
|
|
165
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
166
|
+
examples:
|
|
167
|
+
CustomPreferenceGroupNotFound:
|
|
168
|
+
$ref: '#/components/examples/CustomPreferenceGroupNotFound'
|
|
169
|
+
security:
|
|
170
|
+
- AmOAuth2:
|
|
171
|
+
- sfcc.preferences
|
|
172
|
+
- sfcc.preferences.rw
|
|
173
|
+
patch:
|
|
174
|
+
summary: Update the custom preferences in a global preference group for a given instance type.
|
|
175
|
+
description: |
|
|
176
|
+
For the specified instance, update one or more custom preferences in the preference group
|
|
177
|
+
at the global (organization) level.
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
**Note:** If instance type sandbox is used, the preference values of development instance type
|
|
181
|
+
will be returned as fallback.
|
|
182
|
+
operationId: updateGlobalPreferenceGroup
|
|
183
|
+
parameters:
|
|
184
|
+
- $ref: '#/components/parameters/organizationId'
|
|
185
|
+
- $ref: '#/components/parameters/groupId'
|
|
186
|
+
- $ref: '#/components/parameters/instanceType'
|
|
187
|
+
- $ref: '#/components/parameters/maskPasswords'
|
|
188
|
+
requestBody:
|
|
189
|
+
description: |
|
|
190
|
+
The preferences to update. Custom preference attributes use the "c_" prefix.
|
|
191
|
+
required: true
|
|
192
|
+
content:
|
|
193
|
+
application/json:
|
|
194
|
+
schema:
|
|
195
|
+
$ref: '#/components/schemas/OrganizationPreferences'
|
|
196
|
+
examples:
|
|
197
|
+
UpdateGlobalPreferencesRequest:
|
|
198
|
+
$ref: '#/components/examples/UpdateGlobalPreferencesRequest'
|
|
199
|
+
responses:
|
|
200
|
+
'200':
|
|
201
|
+
description: Custom preferences updated successfully.
|
|
202
|
+
content:
|
|
203
|
+
application/json:
|
|
204
|
+
schema:
|
|
205
|
+
$ref: '#/components/schemas/OrganizationPreferences'
|
|
206
|
+
examples:
|
|
207
|
+
UpdateGlobalPreferencesExample:
|
|
208
|
+
$ref: '#/components/examples/UpdateGlobalPreferencesExample'
|
|
209
|
+
'400':
|
|
210
|
+
description: Invalid instance type was provided.
|
|
211
|
+
content:
|
|
212
|
+
application/problem+json:
|
|
213
|
+
schema:
|
|
214
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
215
|
+
examples:
|
|
216
|
+
IllegalEnumerationValue:
|
|
217
|
+
$ref: '#/components/examples/IllegalEnumerationValue'
|
|
218
|
+
'404':
|
|
219
|
+
description: The preference group was not found.
|
|
220
|
+
content:
|
|
221
|
+
application/problem+json:
|
|
222
|
+
schema:
|
|
223
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
224
|
+
examples:
|
|
225
|
+
CustomPreferenceGroupNotFound:
|
|
226
|
+
$ref: '#/components/examples/CustomPreferenceGroupNotFound'
|
|
227
|
+
security:
|
|
228
|
+
- AmOAuth2:
|
|
229
|
+
- sfcc.preferences.rw
|
|
230
|
+
/organizations/{organizationId}/site-preference-groups/{groupId}/{instanceType}:
|
|
231
|
+
get:
|
|
232
|
+
summary: Read the custom preferences in a site preference group for a given instance type.
|
|
233
|
+
description: |
|
|
234
|
+
For the specified site and instance, read the custom preferences in the preference group.
|
|
235
|
+
Specify 'current' to retrieve the preferences for the instance on which this call is being made.
|
|
236
|
+
The system will recognize its type.
|
|
237
|
+
operationId: getSitePreferenceGroup
|
|
238
|
+
parameters:
|
|
239
|
+
- $ref: '#/components/parameters/organizationId'
|
|
240
|
+
- $ref: '#/components/parameters/groupId'
|
|
241
|
+
- $ref: '#/components/parameters/instanceType'
|
|
242
|
+
- $ref: '#/components/parameters/maskPasswords'
|
|
243
|
+
- $ref: '#/components/parameters/siteId'
|
|
244
|
+
responses:
|
|
245
|
+
'200':
|
|
246
|
+
description: Custom site preferences retrieved successfully.
|
|
247
|
+
content:
|
|
248
|
+
application/json:
|
|
249
|
+
schema:
|
|
250
|
+
$ref: '#/components/schemas/SitePreferences'
|
|
251
|
+
examples:
|
|
252
|
+
GetSitePreferencesExample:
|
|
253
|
+
$ref: '#/components/examples/GetSitePreferencesExample'
|
|
254
|
+
'400':
|
|
255
|
+
description: Invalid instance type was provided.
|
|
256
|
+
content:
|
|
257
|
+
application/problem+json:
|
|
258
|
+
schema:
|
|
259
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
260
|
+
examples:
|
|
261
|
+
IllegalEnumerationValue:
|
|
262
|
+
$ref: '#/components/examples/IllegalEnumerationValue'
|
|
263
|
+
'404':
|
|
264
|
+
description: The preference group was not found.
|
|
265
|
+
content:
|
|
266
|
+
application/problem+json:
|
|
267
|
+
schema:
|
|
268
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
269
|
+
examples:
|
|
270
|
+
CustomPreferenceGroupNotFound:
|
|
271
|
+
$ref: '#/components/examples/CustomPreferenceGroupNotFound'
|
|
272
|
+
security:
|
|
273
|
+
- AmOAuth2:
|
|
274
|
+
- sfcc.preferences
|
|
275
|
+
- sfcc.preferences.rw
|
|
276
|
+
patch:
|
|
277
|
+
summary: Update the custom preferences in a site preference group for a given instance type.
|
|
278
|
+
description: |
|
|
279
|
+
For the specified site and instance, update one or more custom preferences in the preference group.
|
|
280
|
+
Preferences of type password cannot be set to "************" since it is a reserved value.
|
|
281
|
+
operationId: updateSitePreferenceGroup
|
|
282
|
+
parameters:
|
|
283
|
+
- $ref: '#/components/parameters/organizationId'
|
|
284
|
+
- $ref: '#/components/parameters/groupId'
|
|
285
|
+
- $ref: '#/components/parameters/instanceType'
|
|
286
|
+
- $ref: '#/components/parameters/maskPasswords'
|
|
287
|
+
- $ref: '#/components/parameters/siteId'
|
|
288
|
+
requestBody:
|
|
289
|
+
description: |
|
|
290
|
+
The site preferences to update. Custom preference attributes use the "c_" prefix.
|
|
291
|
+
required: true
|
|
292
|
+
content:
|
|
293
|
+
application/json:
|
|
294
|
+
schema:
|
|
295
|
+
$ref: '#/components/schemas/SitePreferences'
|
|
296
|
+
examples:
|
|
297
|
+
UpdateSitePreferencesRequest:
|
|
298
|
+
$ref: '#/components/examples/UpdateSitePreferencesRequest'
|
|
299
|
+
responses:
|
|
300
|
+
'200':
|
|
301
|
+
description: Custom site preferences updated successfully.
|
|
302
|
+
content:
|
|
303
|
+
application/json:
|
|
304
|
+
schema:
|
|
305
|
+
$ref: '#/components/schemas/SitePreferences'
|
|
306
|
+
examples:
|
|
307
|
+
UpdateSitePreferencesExample:
|
|
308
|
+
$ref: '#/components/examples/UpdateSitePreferencesExample'
|
|
309
|
+
'400':
|
|
310
|
+
description: Invalid instance type was provided.
|
|
311
|
+
content:
|
|
312
|
+
application/problem+json:
|
|
313
|
+
schema:
|
|
314
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
315
|
+
examples:
|
|
316
|
+
IllegalEnumerationValue:
|
|
317
|
+
$ref: '#/components/examples/IllegalEnumerationValue'
|
|
318
|
+
'404':
|
|
319
|
+
description: The preference group was not found.
|
|
320
|
+
content:
|
|
321
|
+
application/problem+json:
|
|
322
|
+
schema:
|
|
323
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
324
|
+
examples:
|
|
325
|
+
CustomPreferenceGroupNotFound:
|
|
326
|
+
$ref: '#/components/examples/CustomPreferenceGroupNotFound'
|
|
327
|
+
security:
|
|
328
|
+
- AmOAuth2:
|
|
329
|
+
- sfcc.preferences.rw
|
|
330
|
+
/organizations/{organizationId}/site-preference-groups/{groupId}/{instanceType}/preference-search:
|
|
331
|
+
post:
|
|
332
|
+
summary: Search preferences across sites in a preference group for a given instance type.
|
|
333
|
+
description: |
|
|
334
|
+
Search preferences across sites in the specified preference group and instance.
|
|
335
|
+
The query attribute specifies a complex query that can be used to narrow down the search.
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
The following is a list of searchable fields:
|
|
339
|
+
|
|
340
|
+
| Field | Type |
|
|
341
|
+
|---|---|
|
|
342
|
+
| id | String |
|
|
343
|
+
| display_name | Localized String |
|
|
344
|
+
| description | Localized String |
|
|
345
|
+
| value_type | Enum (see below) |
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
Allowed value_type values: string, int, double, text, html, date, image, boolean, money,
|
|
349
|
+
quantity, datetime, email, password, set_of_string, set_of_int, set_of_double,
|
|
350
|
+
enum_of_string, enum_of_int.
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
**Note:** value_type can only be joined with other attributes using a conjunction (AND).
|
|
354
|
+
Only searchable attributes can be used in sorting.
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
**Note:** If instance type sandbox is used, the preference values of development instance type
|
|
358
|
+
will be returned as fallback.
|
|
359
|
+
operationId: searchSitePreferences
|
|
360
|
+
parameters:
|
|
361
|
+
- $ref: '#/components/parameters/organizationId'
|
|
362
|
+
- $ref: '#/components/parameters/groupId'
|
|
363
|
+
- $ref: '#/components/parameters/instanceType'
|
|
364
|
+
- $ref: '#/components/parameters/maskPasswords'
|
|
365
|
+
- $ref: '#/components/parameters/preferenceSearchExpand'
|
|
366
|
+
requestBody:
|
|
367
|
+
description: The search request document.
|
|
368
|
+
required: true
|
|
369
|
+
content:
|
|
370
|
+
application/json:
|
|
371
|
+
schema:
|
|
372
|
+
$ref: '#/components/schemas/SearchRequest'
|
|
373
|
+
examples:
|
|
374
|
+
SearchSitePreferencesRequest:
|
|
375
|
+
$ref: '#/components/examples/SearchSitePreferencesRequest'
|
|
376
|
+
responses:
|
|
377
|
+
'200':
|
|
378
|
+
description: Preference search executed successfully.
|
|
379
|
+
content:
|
|
380
|
+
application/json:
|
|
381
|
+
schema:
|
|
382
|
+
$ref: '#/components/schemas/PreferenceValueSearchResult'
|
|
383
|
+
examples:
|
|
384
|
+
PreferenceSearchExample:
|
|
385
|
+
$ref: '#/components/examples/PreferenceSearchExample'
|
|
386
|
+
PreferenceSearchWithExpandValueExample:
|
|
387
|
+
$ref: '#/components/examples/PreferenceSearchWithExpandValueExample'
|
|
388
|
+
'400':
|
|
389
|
+
description: |
|
|
390
|
+
The request is malformed. This can be caused by an invalid instance type,
|
|
391
|
+
an ill-formed search query, or attempting to sort by a non-sortable field.
|
|
392
|
+
content:
|
|
393
|
+
application/problem+json:
|
|
394
|
+
schema:
|
|
395
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
396
|
+
examples:
|
|
397
|
+
IllegalEnumerationValue:
|
|
398
|
+
$ref: '#/components/examples/IllegalEnumerationValue'
|
|
399
|
+
FieldNotSortable:
|
|
400
|
+
$ref: '#/components/examples/FieldNotSortable'
|
|
401
|
+
'404':
|
|
402
|
+
description: The preference group was not found.
|
|
403
|
+
content:
|
|
404
|
+
application/problem+json:
|
|
405
|
+
schema:
|
|
406
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
407
|
+
examples:
|
|
408
|
+
CustomPreferenceGroupNotFound:
|
|
409
|
+
$ref: '#/components/examples/CustomPreferenceGroupNotFound'
|
|
410
|
+
security:
|
|
411
|
+
- AmOAuth2:
|
|
412
|
+
- sfcc.preferences
|
|
413
|
+
- sfcc.preferences.rw
|
|
414
|
+
/organizations/{organizationId}/site-preference-groups/{groupId}/{instanceType}/preferences/{preferenceId}:
|
|
415
|
+
get:
|
|
416
|
+
summary: Read a single preference value across sites in a preference group for a given instance type.
|
|
417
|
+
description: |
|
|
418
|
+
Read a specific preference value identified by its ID within the given preference group
|
|
419
|
+
and instance type. Returns the preference value for all sites.
|
|
420
|
+
operationId: getSitePreference
|
|
421
|
+
parameters:
|
|
422
|
+
- $ref: '#/components/parameters/organizationId'
|
|
423
|
+
- $ref: '#/components/parameters/groupId'
|
|
424
|
+
- $ref: '#/components/parameters/instanceType'
|
|
425
|
+
- $ref: '#/components/parameters/preferenceId'
|
|
426
|
+
- $ref: '#/components/parameters/maskPasswords'
|
|
427
|
+
responses:
|
|
428
|
+
'200':
|
|
429
|
+
description: Preference value retrieved successfully.
|
|
430
|
+
content:
|
|
431
|
+
application/json:
|
|
432
|
+
schema:
|
|
433
|
+
$ref: '#/components/schemas/PreferenceValue'
|
|
434
|
+
examples:
|
|
435
|
+
GetPreferenceValueExample:
|
|
436
|
+
$ref: '#/components/examples/GetPreferenceValueExample'
|
|
437
|
+
GetPreferenceValueMultiSiteExample:
|
|
438
|
+
$ref: '#/components/examples/GetPreferenceValueMultiSiteExample'
|
|
439
|
+
'400':
|
|
440
|
+
description: Invalid instance type was provided.
|
|
441
|
+
content:
|
|
442
|
+
application/problem+json:
|
|
443
|
+
schema:
|
|
444
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
445
|
+
examples:
|
|
446
|
+
IllegalEnumerationValue:
|
|
447
|
+
$ref: '#/components/examples/IllegalEnumerationValue'
|
|
448
|
+
'404':
|
|
449
|
+
description: The preference group or preference was not found.
|
|
450
|
+
content:
|
|
451
|
+
application/problem+json:
|
|
452
|
+
schema:
|
|
453
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
454
|
+
examples:
|
|
455
|
+
CustomPreferenceGroupNotFound:
|
|
456
|
+
$ref: '#/components/examples/CustomPreferenceGroupNotFound'
|
|
457
|
+
PreferenceNotFound:
|
|
458
|
+
$ref: '#/components/examples/PreferenceNotFound'
|
|
459
|
+
security:
|
|
460
|
+
- AmOAuth2:
|
|
461
|
+
- sfcc.preferences
|
|
462
|
+
- sfcc.preferences.rw
|
|
463
|
+
patch:
|
|
464
|
+
summary: Update a single preference value across sites in a preference group for a given instance type.
|
|
465
|
+
description: |
|
|
466
|
+
Update a specific preference value identified by its ID within the given preference group
|
|
467
|
+
and instance type. The siteValues map specifies the new values per site.
|
|
468
|
+
operationId: updateSitePreference
|
|
469
|
+
parameters:
|
|
470
|
+
- $ref: '#/components/parameters/organizationId'
|
|
471
|
+
- $ref: '#/components/parameters/groupId'
|
|
472
|
+
- $ref: '#/components/parameters/instanceType'
|
|
473
|
+
- $ref: '#/components/parameters/preferenceId'
|
|
474
|
+
- $ref: '#/components/parameters/maskPasswords'
|
|
475
|
+
requestBody:
|
|
476
|
+
description: The preference value to update with site-specific values.
|
|
477
|
+
required: true
|
|
478
|
+
content:
|
|
479
|
+
application/json:
|
|
480
|
+
schema:
|
|
481
|
+
$ref: '#/components/schemas/PreferenceValue'
|
|
482
|
+
examples:
|
|
483
|
+
UpdateSitePreferenceValueRequest:
|
|
484
|
+
$ref: '#/components/examples/UpdateSitePreferenceValueRequest'
|
|
485
|
+
responses:
|
|
486
|
+
'200':
|
|
487
|
+
description: Preference value updated successfully.
|
|
488
|
+
content:
|
|
489
|
+
application/json:
|
|
490
|
+
schema:
|
|
491
|
+
$ref: '#/components/schemas/PreferenceValue'
|
|
492
|
+
examples:
|
|
493
|
+
UpdatePreferenceValueExample:
|
|
494
|
+
$ref: '#/components/examples/UpdatePreferenceValueExample'
|
|
495
|
+
'400':
|
|
496
|
+
description: Invalid instance type was provided.
|
|
497
|
+
content:
|
|
498
|
+
application/problem+json:
|
|
499
|
+
schema:
|
|
500
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
501
|
+
examples:
|
|
502
|
+
IllegalEnumerationValue:
|
|
503
|
+
$ref: '#/components/examples/IllegalEnumerationValue'
|
|
504
|
+
'404':
|
|
505
|
+
description: The preference group or preference was not found.
|
|
506
|
+
content:
|
|
507
|
+
application/problem+json:
|
|
508
|
+
schema:
|
|
509
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
510
|
+
examples:
|
|
511
|
+
CustomPreferenceGroupNotFound:
|
|
512
|
+
$ref: '#/components/examples/CustomPreferenceGroupNotFound'
|
|
513
|
+
PreferenceNotFound:
|
|
514
|
+
$ref: '#/components/examples/PreferenceNotFound'
|
|
515
|
+
security:
|
|
516
|
+
- AmOAuth2:
|
|
517
|
+
- sfcc.preferences.rw
|
|
518
|
+
components:
|
|
519
|
+
securitySchemes:
|
|
520
|
+
AmOAuth2:
|
|
521
|
+
type: oauth2
|
|
522
|
+
description: AccountManager OAuth 2.0 bearer token Authentication.
|
|
523
|
+
flows:
|
|
524
|
+
clientCredentials:
|
|
525
|
+
tokenUrl: https://account.demandware.com/dwsso/oauth2/access_token
|
|
526
|
+
scopes:
|
|
527
|
+
sfcc.preferences: Preferences read scope
|
|
528
|
+
sfcc.preferences.rw: Preferences read/write scope
|
|
529
|
+
authorizationCode:
|
|
530
|
+
authorizationUrl: https://account.demandware.com/dwsso/oauth2/authorize
|
|
531
|
+
tokenUrl: https://account.demandware.com/dwsso/oauth2/access_token
|
|
532
|
+
scopes:
|
|
533
|
+
sfcc.preferences: Preferences read scope
|
|
534
|
+
sfcc.preferences.rw: Preferences read/write scope
|
|
535
|
+
schemas:
|
|
536
|
+
OrganizationId:
|
|
537
|
+
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).
|
|
538
|
+
example: f_ecom_zzxy_prd
|
|
539
|
+
type: string
|
|
540
|
+
pattern: ^f_ecom_[a-z]{4}_(prd|stg|dev|s[0-9]{2}|[0-9]{3})$
|
|
541
|
+
Total:
|
|
542
|
+
default: 0
|
|
543
|
+
minimum: 0
|
|
544
|
+
format: int32
|
|
545
|
+
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.
|
|
546
|
+
type: integer
|
|
547
|
+
example: 10
|
|
548
|
+
ResultBase:
|
|
549
|
+
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."
|
|
550
|
+
type: object
|
|
551
|
+
required:
|
|
552
|
+
- limit
|
|
553
|
+
- total
|
|
554
|
+
properties:
|
|
555
|
+
limit:
|
|
556
|
+
format: int32
|
|
557
|
+
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.
|
|
558
|
+
type: integer
|
|
559
|
+
example: 10
|
|
560
|
+
total:
|
|
561
|
+
$ref: '#/components/schemas/Total'
|
|
562
|
+
Offset:
|
|
563
|
+
default: 0
|
|
564
|
+
minimum: 0
|
|
565
|
+
format: int32
|
|
566
|
+
description: The zero-based index of the first hit/data to include in the result.
|
|
567
|
+
type: integer
|
|
568
|
+
example: 0
|
|
569
|
+
PaginatedResultBase:
|
|
570
|
+
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`."
|
|
571
|
+
type: object
|
|
572
|
+
allOf:
|
|
573
|
+
- $ref: '#/components/schemas/ResultBase'
|
|
574
|
+
properties:
|
|
575
|
+
offset:
|
|
576
|
+
$ref: '#/components/schemas/Offset'
|
|
577
|
+
required:
|
|
578
|
+
- limit
|
|
579
|
+
- offset
|
|
580
|
+
- total
|
|
581
|
+
CustomPreference:
|
|
582
|
+
description: Preference object
|
|
583
|
+
properties:
|
|
584
|
+
groupId:
|
|
585
|
+
description: The ID of the preference group.
|
|
586
|
+
type: string
|
|
587
|
+
id:
|
|
588
|
+
description: The Preference Id.
|
|
589
|
+
type: string
|
|
590
|
+
value:
|
|
591
|
+
description: The value for the Preference Id.
|
|
592
|
+
required:
|
|
593
|
+
- groupId
|
|
594
|
+
- id
|
|
595
|
+
- value
|
|
596
|
+
type: object
|
|
597
|
+
CustomPreferenceList:
|
|
598
|
+
description: Document representing a Custom Preference result.
|
|
599
|
+
allOf:
|
|
600
|
+
- $ref: '#/components/schemas/PaginatedResultBase'
|
|
601
|
+
properties:
|
|
602
|
+
data:
|
|
603
|
+
description: The list of custom preferences in the search result.
|
|
604
|
+
type: array
|
|
605
|
+
items:
|
|
606
|
+
$ref: '#/components/schemas/CustomPreference'
|
|
607
|
+
required:
|
|
608
|
+
- limit
|
|
609
|
+
- data
|
|
610
|
+
- offset
|
|
611
|
+
- total
|
|
612
|
+
type: object
|
|
613
|
+
ErrorResponse:
|
|
614
|
+
type: object
|
|
615
|
+
additionalProperties: true
|
|
616
|
+
properties:
|
|
617
|
+
title:
|
|
618
|
+
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"
|
|
619
|
+
type: string
|
|
620
|
+
maxLength: 256
|
|
621
|
+
example: You do not have enough credit
|
|
622
|
+
type:
|
|
623
|
+
description: |
|
|
624
|
+
A URI reference [RFC3986] that identifies the
|
|
625
|
+
problem type. This specification encourages that, when
|
|
626
|
+
dereferenced, it provide human-readable documentation for the
|
|
627
|
+
problem type (e.g., using HTML [W3C.REC-html5-20141028]). When
|
|
628
|
+
this member is not present, its value is assumed to be
|
|
629
|
+
"about:blank". It accepts relative URIs; this means
|
|
630
|
+
that they must be resolved relative to the document's base URI, as
|
|
631
|
+
per [RFC3986], Section 5.
|
|
632
|
+
type: string
|
|
633
|
+
maxLength: 2048
|
|
634
|
+
example: NotEnoughMoney
|
|
635
|
+
detail:
|
|
636
|
+
description: A human-readable explanation specific to this occurrence of the problem.
|
|
637
|
+
type: string
|
|
638
|
+
example: Your current balance is 30, but that costs 50
|
|
639
|
+
instance:
|
|
640
|
+
description: |
|
|
641
|
+
A URI reference that identifies the specific
|
|
642
|
+
occurrence of the problem. It may or may not yield further
|
|
643
|
+
information if dereferenced. It accepts relative URIs; this means
|
|
644
|
+
that they must be resolved relative to the document's base URI, as
|
|
645
|
+
per [RFC3986], Section 5.
|
|
646
|
+
type: string
|
|
647
|
+
maxLength: 2048
|
|
648
|
+
example: /account/12345/msgs/abc
|
|
649
|
+
required:
|
|
650
|
+
- title
|
|
651
|
+
- type
|
|
652
|
+
- detail
|
|
653
|
+
SiteId:
|
|
654
|
+
minLength: 1
|
|
655
|
+
maxLength: 32
|
|
656
|
+
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
|
|
657
|
+
example: RefArch
|
|
658
|
+
type: string
|
|
659
|
+
CustomerListLink:
|
|
660
|
+
type: object
|
|
661
|
+
description: Document representing a link to a customer list.
|
|
662
|
+
properties:
|
|
663
|
+
customerListId:
|
|
664
|
+
type: string
|
|
665
|
+
minLength: 1
|
|
666
|
+
maxLength: 256
|
|
667
|
+
description: The customer list identifier
|
|
668
|
+
example: customer-list-1
|
|
669
|
+
title:
|
|
670
|
+
type: string
|
|
671
|
+
maxLength: 256
|
|
672
|
+
description: The title of the customer list link
|
|
673
|
+
example: Default Customer List
|
|
674
|
+
Site:
|
|
675
|
+
type: object
|
|
676
|
+
required:
|
|
677
|
+
- id
|
|
678
|
+
properties:
|
|
679
|
+
id:
|
|
680
|
+
title: ID
|
|
681
|
+
description: The ID of the site.
|
|
682
|
+
allOf:
|
|
683
|
+
- $ref: '#/components/schemas/SiteId'
|
|
684
|
+
displayName:
|
|
685
|
+
type: object
|
|
686
|
+
additionalProperties:
|
|
687
|
+
type: string
|
|
688
|
+
description: Localized string
|
|
689
|
+
example: Site Display Name
|
|
690
|
+
maxLength: 4000
|
|
691
|
+
description:
|
|
692
|
+
type: object
|
|
693
|
+
additionalProperties:
|
|
694
|
+
type: string
|
|
695
|
+
description: Localized string
|
|
696
|
+
example: Site Description
|
|
697
|
+
maxLength: 4000
|
|
698
|
+
customerListLink:
|
|
699
|
+
description: The link to the customer list
|
|
700
|
+
allOf:
|
|
701
|
+
- $ref: '#/components/schemas/CustomerListLink'
|
|
702
|
+
inDeletion:
|
|
703
|
+
type: boolean
|
|
704
|
+
description: Specifies whether the site status is in deletion (true) or not (false)
|
|
705
|
+
example: false
|
|
706
|
+
storefrontStatus:
|
|
707
|
+
type: string
|
|
708
|
+
description: Status of the storefront
|
|
709
|
+
enum:
|
|
710
|
+
- online
|
|
711
|
+
- maintenance
|
|
712
|
+
- to_be_deleted
|
|
713
|
+
- protected
|
|
714
|
+
example: online
|
|
715
|
+
siteCatalogId:
|
|
716
|
+
type: string
|
|
717
|
+
minLength: 1
|
|
718
|
+
maxLength: 256
|
|
719
|
+
description: The catalog bound to the given site.
|
|
720
|
+
example: storefront-catalog-m-en
|
|
721
|
+
cartridges:
|
|
722
|
+
type: string
|
|
723
|
+
maxLength: 4000
|
|
724
|
+
description: The cartridge names assigned to a site delemited by ':'.
|
|
725
|
+
example: app_storefront_core:app_storefront_base
|
|
726
|
+
creationDate:
|
|
727
|
+
type: string
|
|
728
|
+
format: date-time
|
|
729
|
+
description: The timestamp when the site was created.
|
|
730
|
+
example: '2024-01-15T10:00:00.000Z'
|
|
731
|
+
lastModified:
|
|
732
|
+
type: string
|
|
733
|
+
format: date-time
|
|
734
|
+
description: The timestamp when the site was last modified.
|
|
735
|
+
example: '2024-10-14T15:30:00.000Z'
|
|
736
|
+
SitePreferences:
|
|
737
|
+
description: |
|
|
738
|
+
Represents custom preferences at the site level within a preference group. Custom preference attributes are returned with the "c_" prefix.
|
|
739
|
+
type: object
|
|
740
|
+
properties:
|
|
741
|
+
site:
|
|
742
|
+
$ref: '#/components/schemas/Site'
|
|
743
|
+
additionalProperties: true
|
|
744
|
+
OrganizationPreferences:
|
|
745
|
+
description: |
|
|
746
|
+
Represents custom preferences at the global (organization) level within a preference group. Custom preference attributes are returned with the "c_" prefix.
|
|
747
|
+
type: object
|
|
748
|
+
properties:
|
|
749
|
+
sitePreferences:
|
|
750
|
+
description: The list of site-specific preferences, returned when expand=sites.
|
|
751
|
+
type: array
|
|
752
|
+
items:
|
|
753
|
+
$ref: '#/components/schemas/SitePreferences'
|
|
754
|
+
additionalProperties: true
|
|
755
|
+
Query:
|
|
756
|
+
minProperties: 1
|
|
757
|
+
maxProperties: 1
|
|
758
|
+
description: |-
|
|
759
|
+
A set of objects that define criteria used to select records. A query can contain one of the following:
|
|
760
|
+
* `MatchAllQuery`
|
|
761
|
+
- Matches all documents.
|
|
762
|
+
* `TermQuery`
|
|
763
|
+
- Matches one or more documents against one or more document fields.
|
|
764
|
+
* `TextQuery`
|
|
765
|
+
- Matches text against one or more fields.
|
|
766
|
+
* `BoolQuery`
|
|
767
|
+
- Allows construction of a logical expression of multiple queries.
|
|
768
|
+
* `FilteredQuery`
|
|
769
|
+
- Allows a filter to be applied to a query.
|
|
770
|
+
* `NestedQuery`
|
|
771
|
+
- Allows you to query on nested documents.
|
|
772
|
+
- _Only supported by some Commerce APIs. For more details, see the endpoint descriptions in the API documentation._
|
|
773
|
+
example:
|
|
774
|
+
filteredQuery:
|
|
775
|
+
query:
|
|
776
|
+
textQuery:
|
|
777
|
+
fields:
|
|
778
|
+
- couponId
|
|
779
|
+
searchPhrase: disabled
|
|
780
|
+
filter:
|
|
781
|
+
termFilter:
|
|
782
|
+
field: enabled
|
|
783
|
+
operator: is
|
|
784
|
+
values:
|
|
785
|
+
- false
|
|
786
|
+
type: object
|
|
787
|
+
properties:
|
|
788
|
+
boolQuery:
|
|
789
|
+
$ref: '#/components/schemas/BoolQuery'
|
|
790
|
+
filteredQuery:
|
|
791
|
+
$ref: '#/components/schemas/FilteredQuery'
|
|
792
|
+
matchAllQuery:
|
|
793
|
+
$ref: '#/components/schemas/MatchAllQuery'
|
|
794
|
+
nestedQuery:
|
|
795
|
+
$ref: '#/components/schemas/NestedQuery'
|
|
796
|
+
termQuery:
|
|
797
|
+
$ref: '#/components/schemas/TermQuery'
|
|
798
|
+
textQuery:
|
|
799
|
+
$ref: '#/components/schemas/TextQuery'
|
|
800
|
+
additionalProperties: false
|
|
801
|
+
BoolQuery:
|
|
802
|
+
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"
|
|
803
|
+
type: object
|
|
804
|
+
example:
|
|
805
|
+
value:
|
|
806
|
+
must:
|
|
807
|
+
- textQuery:
|
|
808
|
+
fields:
|
|
809
|
+
- couponId
|
|
810
|
+
searchPhrase: DEAL
|
|
811
|
+
- textQuery:
|
|
812
|
+
fields:
|
|
813
|
+
- description
|
|
814
|
+
searchPhrase: Big bargain deal
|
|
815
|
+
mustNot:
|
|
816
|
+
- termQuery:
|
|
817
|
+
fields:
|
|
818
|
+
- enabled
|
|
819
|
+
operator: is
|
|
820
|
+
values:
|
|
821
|
+
- false
|
|
822
|
+
properties:
|
|
823
|
+
must:
|
|
824
|
+
description: List of queries to be evaluated as an `AND` operator.
|
|
825
|
+
type: array
|
|
826
|
+
items:
|
|
827
|
+
$ref: '#/components/schemas/Query'
|
|
828
|
+
mustNot:
|
|
829
|
+
description: List of queries to be evaluated as a `NOT` operator.
|
|
830
|
+
type: array
|
|
831
|
+
items:
|
|
832
|
+
$ref: '#/components/schemas/Query'
|
|
833
|
+
should:
|
|
834
|
+
description: List of queries to be evaluated as an `OR` operator.
|
|
835
|
+
type: array
|
|
836
|
+
items:
|
|
837
|
+
$ref: '#/components/schemas/Query'
|
|
838
|
+
additionalProperties: false
|
|
839
|
+
Filter:
|
|
840
|
+
minProperties: 1
|
|
841
|
+
maxProperties: 1
|
|
842
|
+
description: |-
|
|
843
|
+
Contains a set of objects that define criteria used to select records. A filter can contain one of the following:
|
|
844
|
+
* `TermFilter`
|
|
845
|
+
- Matches records where a field (or fields) exactly matches some simple value (including `null`).
|
|
846
|
+
* `RangeFilter`
|
|
847
|
+
- Matches records where a field value lies within a specified range.
|
|
848
|
+
* `Range2Filter`
|
|
849
|
+
- Matches records in a specified range across fields.
|
|
850
|
+
* `QueryFilter`
|
|
851
|
+
- Matches records based on a query.
|
|
852
|
+
* `BoolFilter`
|
|
853
|
+
- Provides filtering of records using a set of filters combined using a logical operator.
|
|
854
|
+
example: null
|
|
855
|
+
type: object
|
|
856
|
+
properties:
|
|
857
|
+
boolFilter:
|
|
858
|
+
$ref: '#/components/schemas/BoolFilter'
|
|
859
|
+
queryFilter:
|
|
860
|
+
$ref: '#/components/schemas/QueryFilter'
|
|
861
|
+
range2Filter:
|
|
862
|
+
$ref: '#/components/schemas/Range2Filter'
|
|
863
|
+
rangeFilter:
|
|
864
|
+
$ref: '#/components/schemas/RangeFilter'
|
|
865
|
+
termFilter:
|
|
866
|
+
$ref: '#/components/schemas/TermFilter'
|
|
867
|
+
additionalProperties: false
|
|
868
|
+
BoolFilter:
|
|
869
|
+
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.
|
|
870
|
+
example:
|
|
871
|
+
value:
|
|
872
|
+
operator: and
|
|
873
|
+
filters:
|
|
874
|
+
- termFilter:
|
|
875
|
+
field: id
|
|
876
|
+
operator: is
|
|
877
|
+
values:
|
|
878
|
+
- myId
|
|
879
|
+
- termFilter:
|
|
880
|
+
field: couponId
|
|
881
|
+
operator: is
|
|
882
|
+
values:
|
|
883
|
+
- couponOne
|
|
884
|
+
type: object
|
|
885
|
+
properties:
|
|
886
|
+
filters:
|
|
887
|
+
description: A list of filters that are logically combined by an operator.
|
|
888
|
+
type: array
|
|
889
|
+
items:
|
|
890
|
+
$ref: '#/components/schemas/Filter'
|
|
891
|
+
operator:
|
|
892
|
+
description: The logical operator that is used to combine the filters.
|
|
893
|
+
enum:
|
|
894
|
+
- and
|
|
895
|
+
- or
|
|
896
|
+
- not
|
|
897
|
+
type: string
|
|
898
|
+
example: and
|
|
899
|
+
required:
|
|
900
|
+
- operator
|
|
901
|
+
additionalProperties: false
|
|
902
|
+
QueryFilter:
|
|
903
|
+
description: Wraps any query and allows it to be used as a filter.
|
|
904
|
+
type: object
|
|
905
|
+
properties:
|
|
906
|
+
query:
|
|
907
|
+
$ref: '#/components/schemas/Query'
|
|
908
|
+
required:
|
|
909
|
+
- query
|
|
910
|
+
Field:
|
|
911
|
+
description: Name of the field. Might be a custom field name prefixed with c_.
|
|
912
|
+
maxLength: 260
|
|
913
|
+
type: string
|
|
914
|
+
example: couponId
|
|
915
|
+
Range2Filter:
|
|
916
|
+
description: |-
|
|
917
|
+
Allows you to restrict a search result to hits where a range defined by specified attributes has a certain relationship to a specified range.
|
|
918
|
+
|
|
919
|
+
The 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`.
|
|
920
|
+
|
|
921
|
+
The second range (R2) is defined by `fromValue` and `toValue`.
|
|
922
|
+
|
|
923
|
+
The filter mode specifies the method used to compare the two ranges:
|
|
924
|
+
|
|
925
|
+
* `overlap`: R1 overlaps fully or partially with R2.
|
|
926
|
+
* `containing`: R1 contains R2.
|
|
927
|
+
* `contained`: R1 is contained in R2.
|
|
928
|
+
|
|
929
|
+
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.
|
|
930
|
+
|
|
931
|
+
A 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.
|
|
932
|
+
example:
|
|
933
|
+
fromField: validFrom
|
|
934
|
+
toField: validTo
|
|
935
|
+
filterMode: overlap
|
|
936
|
+
fromValue: '2007-01-01T00:00:00.000Z'
|
|
937
|
+
toValue: '2017-01-01T00:00:00.000Z'
|
|
938
|
+
type: object
|
|
939
|
+
properties:
|
|
940
|
+
filterMode:
|
|
941
|
+
default: overlap
|
|
942
|
+
example: overlap
|
|
943
|
+
description: 'Compare mode: overlap, containing, or contained.'
|
|
944
|
+
enum:
|
|
945
|
+
- overlap
|
|
946
|
+
- containing
|
|
947
|
+
- contained
|
|
948
|
+
type: string
|
|
949
|
+
fromField:
|
|
950
|
+
description: The field name of the field that starts the first range.
|
|
951
|
+
example: validFrom
|
|
952
|
+
allOf:
|
|
953
|
+
- $ref: '#/components/schemas/Field'
|
|
954
|
+
fromInclusive:
|
|
955
|
+
default: true
|
|
956
|
+
example: true
|
|
957
|
+
description: A flag indicating if the lower bound of the second range is inclusive. To make the lower bound exclusive, set to `false`.
|
|
958
|
+
type: boolean
|
|
959
|
+
fromValue:
|
|
960
|
+
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.
|
|
961
|
+
example: '2007-01-01T00:00:00.000Z'
|
|
962
|
+
toField:
|
|
963
|
+
description: The field name of the field that ends the first range.
|
|
964
|
+
example: validTo
|
|
965
|
+
allOf:
|
|
966
|
+
- $ref: '#/components/schemas/Field'
|
|
967
|
+
toInclusive:
|
|
968
|
+
default: true
|
|
969
|
+
example: true
|
|
970
|
+
description: A flag indicating if the upper bound of the second range is inclusive. To make the lower bound exclusive, set to `false`.
|
|
971
|
+
type: boolean
|
|
972
|
+
toValue:
|
|
973
|
+
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.
|
|
974
|
+
example: '2017-01-01T00:00:00.000Z'
|
|
975
|
+
required:
|
|
976
|
+
- fromField
|
|
977
|
+
- toField
|
|
978
|
+
additionalProperties: false
|
|
979
|
+
RangeFilter:
|
|
980
|
+
description: |-
|
|
981
|
+
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.
|
|
982
|
+
|
|
983
|
+
A 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.
|
|
984
|
+
type: object
|
|
985
|
+
properties:
|
|
986
|
+
field:
|
|
987
|
+
example: validFrom
|
|
988
|
+
description: The search field.
|
|
989
|
+
allOf:
|
|
990
|
+
- $ref: '#/components/schemas/Field'
|
|
991
|
+
from:
|
|
992
|
+
oneOf:
|
|
993
|
+
- type: string
|
|
994
|
+
format: date-time
|
|
995
|
+
example: '2007-01-01T00:00:00.000Z'
|
|
996
|
+
- type: integer
|
|
997
|
+
example: 1
|
|
998
|
+
- type: number
|
|
999
|
+
example: 1
|
|
1000
|
+
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.
|
|
1001
|
+
fromInclusive:
|
|
1002
|
+
default: true
|
|
1003
|
+
example: true
|
|
1004
|
+
description: A flag indicating if the lower bound of the range is inclusive. To make the lower bound exclusive, set to `false`.
|
|
1005
|
+
type: boolean
|
|
1006
|
+
to:
|
|
1007
|
+
oneOf:
|
|
1008
|
+
- type: string
|
|
1009
|
+
format: date-time
|
|
1010
|
+
example: '2007-01-02T00:00:00.000Z'
|
|
1011
|
+
- type: integer
|
|
1012
|
+
example: 2
|
|
1013
|
+
- type: number
|
|
1014
|
+
example: 2
|
|
1015
|
+
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.
|
|
1016
|
+
toInclusive:
|
|
1017
|
+
default: true
|
|
1018
|
+
example: true
|
|
1019
|
+
description: A flag indicating if the upper bound of the range is inclusive. To make the upper bound exclusive, set to `false`.
|
|
1020
|
+
type: boolean
|
|
1021
|
+
required:
|
|
1022
|
+
- field
|
|
1023
|
+
TermFilter:
|
|
1024
|
+
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.
|
|
1025
|
+
example:
|
|
1026
|
+
field: id
|
|
1027
|
+
operator: is
|
|
1028
|
+
values:
|
|
1029
|
+
- myId
|
|
1030
|
+
type: object
|
|
1031
|
+
properties:
|
|
1032
|
+
field:
|
|
1033
|
+
description: The filter field.
|
|
1034
|
+
allOf:
|
|
1035
|
+
- $ref: '#/components/schemas/Field'
|
|
1036
|
+
operator:
|
|
1037
|
+
description: The operator used to compare the field's values with the given values.
|
|
1038
|
+
example: is
|
|
1039
|
+
enum:
|
|
1040
|
+
- is
|
|
1041
|
+
- one_of
|
|
1042
|
+
- is_null
|
|
1043
|
+
- is_not_null
|
|
1044
|
+
- less
|
|
1045
|
+
- greater
|
|
1046
|
+
- not_in
|
|
1047
|
+
- neq
|
|
1048
|
+
type: string
|
|
1049
|
+
values:
|
|
1050
|
+
description: The filter values.
|
|
1051
|
+
type: array
|
|
1052
|
+
items:
|
|
1053
|
+
type: string
|
|
1054
|
+
example: myId
|
|
1055
|
+
required:
|
|
1056
|
+
- field
|
|
1057
|
+
- operator
|
|
1058
|
+
additionalProperties: false
|
|
1059
|
+
FilteredQuery:
|
|
1060
|
+
description: Allows to filter the result of a possibly complex query using a possibly complex filter.
|
|
1061
|
+
example:
|
|
1062
|
+
query:
|
|
1063
|
+
textQuery:
|
|
1064
|
+
fields:
|
|
1065
|
+
- couponId
|
|
1066
|
+
searchPhrase: disabled
|
|
1067
|
+
filter:
|
|
1068
|
+
termFilter:
|
|
1069
|
+
field: enabled
|
|
1070
|
+
operator: is
|
|
1071
|
+
values:
|
|
1072
|
+
- false
|
|
1073
|
+
type: object
|
|
1074
|
+
properties:
|
|
1075
|
+
filter:
|
|
1076
|
+
$ref: '#/components/schemas/Filter'
|
|
1077
|
+
query:
|
|
1078
|
+
$ref: '#/components/schemas/Query'
|
|
1079
|
+
required:
|
|
1080
|
+
- filter
|
|
1081
|
+
- query
|
|
1082
|
+
additionalProperties: false
|
|
1083
|
+
MatchAllQuery:
|
|
1084
|
+
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.
|
|
1085
|
+
type: object
|
|
1086
|
+
NestedQuery:
|
|
1087
|
+
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"
|
|
1088
|
+
example:
|
|
1089
|
+
path: order.shippingAddresses
|
|
1090
|
+
query:
|
|
1091
|
+
boolQuery:
|
|
1092
|
+
must:
|
|
1093
|
+
- boolQuery:
|
|
1094
|
+
must:
|
|
1095
|
+
- termQuery:
|
|
1096
|
+
fields:
|
|
1097
|
+
- order.shippingAddresses.firstName
|
|
1098
|
+
operator: is
|
|
1099
|
+
values:
|
|
1100
|
+
- John
|
|
1101
|
+
- boolQuery:
|
|
1102
|
+
must:
|
|
1103
|
+
- termQuery:
|
|
1104
|
+
fields:
|
|
1105
|
+
- order.shippingAddresses.lastName
|
|
1106
|
+
operator: is
|
|
1107
|
+
values:
|
|
1108
|
+
- Doe
|
|
1109
|
+
scoreMode: avg
|
|
1110
|
+
type: object
|
|
1111
|
+
properties:
|
|
1112
|
+
path:
|
|
1113
|
+
description: The path to the nested document.
|
|
1114
|
+
type: string
|
|
1115
|
+
example: order.shippingAddresses
|
|
1116
|
+
maxLength: 2048
|
|
1117
|
+
query:
|
|
1118
|
+
$ref: '#/components/schemas/Query'
|
|
1119
|
+
scoreMode:
|
|
1120
|
+
description: Indicates how scores for matching child objects affect the root parent document’s relevance score.
|
|
1121
|
+
enum:
|
|
1122
|
+
- avg
|
|
1123
|
+
- total
|
|
1124
|
+
- max
|
|
1125
|
+
- none
|
|
1126
|
+
type: string
|
|
1127
|
+
example: avg
|
|
1128
|
+
required:
|
|
1129
|
+
- path
|
|
1130
|
+
- query
|
|
1131
|
+
additionalProperties: false
|
|
1132
|
+
TermQuery:
|
|
1133
|
+
description: |-
|
|
1134
|
+
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.
|
|
1135
|
+
|
|
1136
|
+
**Limitations:**
|
|
1137
|
+
|
|
1138
|
+
* The `greater` and `less` operators are not supported under certain conditions. Both operators are permitted unless the API documentation states otherwise.
|
|
1139
|
+
* 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.
|
|
1140
|
+
type: object
|
|
1141
|
+
properties:
|
|
1142
|
+
fields:
|
|
1143
|
+
minItems: 1
|
|
1144
|
+
description: The document fields that the values are matched against, combined with the operator.
|
|
1145
|
+
type: array
|
|
1146
|
+
items:
|
|
1147
|
+
$ref: '#/components/schemas/Field'
|
|
1148
|
+
operator:
|
|
1149
|
+
description: Returns the operator to use for the term query.
|
|
1150
|
+
enum:
|
|
1151
|
+
- is
|
|
1152
|
+
- one_of
|
|
1153
|
+
- is_null
|
|
1154
|
+
- is_not_null
|
|
1155
|
+
- less
|
|
1156
|
+
- greater
|
|
1157
|
+
- not_in
|
|
1158
|
+
- neq
|
|
1159
|
+
type: string
|
|
1160
|
+
example: is
|
|
1161
|
+
values:
|
|
1162
|
+
description: The values that the fields are compared against, combined with the operator.
|
|
1163
|
+
type: array
|
|
1164
|
+
items:
|
|
1165
|
+
oneOf:
|
|
1166
|
+
- type: string
|
|
1167
|
+
example: myCouponId
|
|
1168
|
+
- type: number
|
|
1169
|
+
example: 1
|
|
1170
|
+
- type: boolean
|
|
1171
|
+
example: true
|
|
1172
|
+
- type: integer
|
|
1173
|
+
example: 1
|
|
1174
|
+
example: myCouponId
|
|
1175
|
+
required:
|
|
1176
|
+
- fields
|
|
1177
|
+
- operator
|
|
1178
|
+
TextQuery:
|
|
1179
|
+
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.
|
|
1180
|
+
example:
|
|
1181
|
+
fields:
|
|
1182
|
+
- couponId
|
|
1183
|
+
searchPhrase: limit
|
|
1184
|
+
type: object
|
|
1185
|
+
properties:
|
|
1186
|
+
fields:
|
|
1187
|
+
minItems: 1
|
|
1188
|
+
description: The document fields that the search phrase matches against.
|
|
1189
|
+
type: array
|
|
1190
|
+
items:
|
|
1191
|
+
$ref: '#/components/schemas/Field'
|
|
1192
|
+
searchPhrase:
|
|
1193
|
+
description: A search phrase, which can include multiple terms separated by spaces.
|
|
1194
|
+
type: string
|
|
1195
|
+
example: campaign summer
|
|
1196
|
+
required:
|
|
1197
|
+
- fields
|
|
1198
|
+
- searchPhrase
|
|
1199
|
+
additionalProperties: false
|
|
1200
|
+
Sort:
|
|
1201
|
+
description: Document representing a sort request. Each API has a different default sort configuration that can be modified in the request.
|
|
1202
|
+
example:
|
|
1203
|
+
field: couponId
|
|
1204
|
+
sortOrder: desc
|
|
1205
|
+
type: object
|
|
1206
|
+
properties:
|
|
1207
|
+
field:
|
|
1208
|
+
description: The name of the field to sort on.
|
|
1209
|
+
type: string
|
|
1210
|
+
maxLength: 256
|
|
1211
|
+
example: couponId
|
|
1212
|
+
sortOrder:
|
|
1213
|
+
default: asc
|
|
1214
|
+
description: The sort order to be applied when sorting. When omitted, the default sort order (asc) is used.
|
|
1215
|
+
example: asc
|
|
1216
|
+
enum:
|
|
1217
|
+
- asc
|
|
1218
|
+
- desc
|
|
1219
|
+
type: string
|
|
1220
|
+
required:
|
|
1221
|
+
- field
|
|
1222
|
+
additionalProperties: false
|
|
1223
|
+
SearchRequest:
|
|
1224
|
+
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.
|
|
1225
|
+
type: object
|
|
1226
|
+
properties:
|
|
1227
|
+
limit:
|
|
1228
|
+
description: Maximum records to retrieve per request, not to exceed 200.
|
|
1229
|
+
type: integer
|
|
1230
|
+
format: int32
|
|
1231
|
+
minimum: 1
|
|
1232
|
+
example: 10
|
|
1233
|
+
maximum: 200
|
|
1234
|
+
query:
|
|
1235
|
+
$ref: '#/components/schemas/Query'
|
|
1236
|
+
sorts:
|
|
1237
|
+
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.
|
|
1238
|
+
type: array
|
|
1239
|
+
items:
|
|
1240
|
+
$ref: '#/components/schemas/Sort'
|
|
1241
|
+
offset:
|
|
1242
|
+
$ref: '#/components/schemas/Offset'
|
|
1243
|
+
required:
|
|
1244
|
+
- query
|
|
1245
|
+
PaginatedSearchResult:
|
|
1246
|
+
description: Document representing a generic search result. Each search resource should extend this to define what is returned in the `hits`.
|
|
1247
|
+
properties:
|
|
1248
|
+
query:
|
|
1249
|
+
$ref: '#/components/schemas/Query'
|
|
1250
|
+
sorts:
|
|
1251
|
+
description: The sorting that was applied to the result.
|
|
1252
|
+
type: array
|
|
1253
|
+
items:
|
|
1254
|
+
$ref: '#/components/schemas/Sort'
|
|
1255
|
+
hits:
|
|
1256
|
+
description: The sorted array of search hits. Can be empty.
|
|
1257
|
+
type: array
|
|
1258
|
+
items:
|
|
1259
|
+
type: object
|
|
1260
|
+
allOf:
|
|
1261
|
+
- $ref: '#/components/schemas/PaginatedResultBase'
|
|
1262
|
+
type: object
|
|
1263
|
+
required:
|
|
1264
|
+
- query
|
|
1265
|
+
example:
|
|
1266
|
+
limit: 1
|
|
1267
|
+
hits:
|
|
1268
|
+
- couponId: coupon1
|
|
1269
|
+
creationDate: '2019-10-20T12:00:00Z'
|
|
1270
|
+
description: This coupon is used to give 10% off stuff.
|
|
1271
|
+
enabled: false
|
|
1272
|
+
exportedCodeCount: 0
|
|
1273
|
+
lastModified: '2019-10-30T04:23:59Z'
|
|
1274
|
+
redemptionCount: 3
|
|
1275
|
+
redemptionLimits:
|
|
1276
|
+
limitPerCode: 1
|
|
1277
|
+
limitPerCustomer: 1
|
|
1278
|
+
limitPerTimeFrame:
|
|
1279
|
+
limit: 2
|
|
1280
|
+
redemptionTimeFrame: 24
|
|
1281
|
+
singleCode: MyCode
|
|
1282
|
+
systemCodesConfig:
|
|
1283
|
+
codePrefix: SG
|
|
1284
|
+
numberOfCodes: 500000
|
|
1285
|
+
totalCodesCount: 50
|
|
1286
|
+
type: single_code
|
|
1287
|
+
query:
|
|
1288
|
+
textQuery:
|
|
1289
|
+
fields:
|
|
1290
|
+
- id
|
|
1291
|
+
- description
|
|
1292
|
+
searchPhrase: stuff
|
|
1293
|
+
sorts:
|
|
1294
|
+
- field: couponId
|
|
1295
|
+
sortOrder: desc
|
|
1296
|
+
offset: 2
|
|
1297
|
+
total: 8
|
|
1298
|
+
additionalProperties: false
|
|
1299
|
+
ValueType:
|
|
1300
|
+
type: string
|
|
1301
|
+
description: The type of an attribute value
|
|
1302
|
+
enum:
|
|
1303
|
+
- string
|
|
1304
|
+
- int
|
|
1305
|
+
- double
|
|
1306
|
+
- text
|
|
1307
|
+
- html
|
|
1308
|
+
- date
|
|
1309
|
+
- image
|
|
1310
|
+
- boolean
|
|
1311
|
+
- money
|
|
1312
|
+
- quantity
|
|
1313
|
+
- datetime
|
|
1314
|
+
- email
|
|
1315
|
+
- password
|
|
1316
|
+
- set_of_string
|
|
1317
|
+
- set_of_int
|
|
1318
|
+
- set_of_double
|
|
1319
|
+
- enum_of_string
|
|
1320
|
+
- enum_of_int
|
|
1321
|
+
example: string
|
|
1322
|
+
ObjectAttributeValueDefinition:
|
|
1323
|
+
type: object
|
|
1324
|
+
description: An attribute definition value
|
|
1325
|
+
properties:
|
|
1326
|
+
id:
|
|
1327
|
+
type: string
|
|
1328
|
+
readOnly: true
|
|
1329
|
+
maxLength: 256
|
|
1330
|
+
description: The ID of the attribute value
|
|
1331
|
+
example: value-1
|
|
1332
|
+
value:
|
|
1333
|
+
type: string
|
|
1334
|
+
readOnly: true
|
|
1335
|
+
maxLength: 4000
|
|
1336
|
+
description: The value of the attribute
|
|
1337
|
+
example: '1'
|
|
1338
|
+
displayValue:
|
|
1339
|
+
type: object
|
|
1340
|
+
readOnly: true
|
|
1341
|
+
additionalProperties:
|
|
1342
|
+
type: string
|
|
1343
|
+
maxLength: 4000
|
|
1344
|
+
description: Localized string
|
|
1345
|
+
example: Localized value
|
|
1346
|
+
example:
|
|
1347
|
+
default: One
|
|
1348
|
+
de: Eins
|
|
1349
|
+
en: One
|
|
1350
|
+
description:
|
|
1351
|
+
type: object
|
|
1352
|
+
readOnly: true
|
|
1353
|
+
additionalProperties:
|
|
1354
|
+
type: string
|
|
1355
|
+
maxLength: 4000
|
|
1356
|
+
description: Localized string
|
|
1357
|
+
example: Localized value
|
|
1358
|
+
example:
|
|
1359
|
+
default: Object type representing products.
|
|
1360
|
+
de: Objekttyp, der Produkte repräsentiert.
|
|
1361
|
+
en: Object type representing products.
|
|
1362
|
+
position:
|
|
1363
|
+
type: number
|
|
1364
|
+
readOnly: true
|
|
1365
|
+
format: double
|
|
1366
|
+
description: The position of the attribute value within the set of attribute values
|
|
1367
|
+
example: 1
|
|
1368
|
+
ObjectAttributeDefinition:
|
|
1369
|
+
type: object
|
|
1370
|
+
description: Document representing an attribute definition
|
|
1371
|
+
required:
|
|
1372
|
+
- id
|
|
1373
|
+
properties:
|
|
1374
|
+
id:
|
|
1375
|
+
type: string
|
|
1376
|
+
minLength: 1
|
|
1377
|
+
maxLength: 256
|
|
1378
|
+
description: The user supplied ID of the attribute
|
|
1379
|
+
example: color
|
|
1380
|
+
effectiveId:
|
|
1381
|
+
type: string
|
|
1382
|
+
readOnly: true
|
|
1383
|
+
maxLength: 256
|
|
1384
|
+
description: The effective ID, which is c_id if the attribute is custom, and just the id otherwise
|
|
1385
|
+
example: c_color
|
|
1386
|
+
displayName:
|
|
1387
|
+
type: object
|
|
1388
|
+
additionalProperties:
|
|
1389
|
+
type: string
|
|
1390
|
+
maxLength: 4000
|
|
1391
|
+
description: Localized string
|
|
1392
|
+
example: Localized value
|
|
1393
|
+
example:
|
|
1394
|
+
default: Product
|
|
1395
|
+
de: Produkt
|
|
1396
|
+
en: Product
|
|
1397
|
+
description:
|
|
1398
|
+
type: object
|
|
1399
|
+
additionalProperties:
|
|
1400
|
+
type: string
|
|
1401
|
+
maxLength: 4000
|
|
1402
|
+
description: Localized string
|
|
1403
|
+
example: Localized value
|
|
1404
|
+
example:
|
|
1405
|
+
default: Object type representing products.
|
|
1406
|
+
de: Objekttyp, der Produkte repräsentiert.
|
|
1407
|
+
en: Object type representing products.
|
|
1408
|
+
key:
|
|
1409
|
+
type: boolean
|
|
1410
|
+
description: Flag indicating if this is a key attribute
|
|
1411
|
+
example: false
|
|
1412
|
+
mandatory:
|
|
1413
|
+
type: boolean
|
|
1414
|
+
description: Flag indicating if a value is mandatory for the attribute
|
|
1415
|
+
example: false
|
|
1416
|
+
localizable:
|
|
1417
|
+
type: boolean
|
|
1418
|
+
description: Flag indicating if this attribute can be localized
|
|
1419
|
+
example: false
|
|
1420
|
+
siteSpecific:
|
|
1421
|
+
type: boolean
|
|
1422
|
+
description: Flag indicating if this attribute is site-specific
|
|
1423
|
+
example: false
|
|
1424
|
+
searchable:
|
|
1425
|
+
type: boolean
|
|
1426
|
+
description: Flag indicating if this attribute is searchable
|
|
1427
|
+
example: true
|
|
1428
|
+
queryable:
|
|
1429
|
+
type: boolean
|
|
1430
|
+
readOnly: true
|
|
1431
|
+
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.
|
|
1432
|
+
example: true
|
|
1433
|
+
valueType:
|
|
1434
|
+
$ref: '#/components/schemas/ValueType'
|
|
1435
|
+
visible:
|
|
1436
|
+
type: boolean
|
|
1437
|
+
description: Flag indicating if this attribute is visible
|
|
1438
|
+
example: true
|
|
1439
|
+
system:
|
|
1440
|
+
type: boolean
|
|
1441
|
+
description: Flag indicating if this attribute is a system attribute
|
|
1442
|
+
example: false
|
|
1443
|
+
unit:
|
|
1444
|
+
type: object
|
|
1445
|
+
additionalProperties:
|
|
1446
|
+
type: string
|
|
1447
|
+
maxLength: 4000
|
|
1448
|
+
description: Localized string
|
|
1449
|
+
example: Localized value
|
|
1450
|
+
example:
|
|
1451
|
+
default: General unit
|
|
1452
|
+
de: Allgemeine Einheit
|
|
1453
|
+
en: General unit
|
|
1454
|
+
requiresEncoding:
|
|
1455
|
+
type: boolean
|
|
1456
|
+
readOnly: true
|
|
1457
|
+
description: Flag indicating if this attribute can be encoded using the encoding='off' flag in ISML templates
|
|
1458
|
+
example: false
|
|
1459
|
+
multiValueType:
|
|
1460
|
+
type: boolean
|
|
1461
|
+
description: True if the attribute can have multiple values. Applicable to set_of_* and enum_of_* types.
|
|
1462
|
+
example: false
|
|
1463
|
+
setValueType:
|
|
1464
|
+
type: boolean
|
|
1465
|
+
readOnly: true
|
|
1466
|
+
description: Flag indicating if this attribute is of type 'Set of'
|
|
1467
|
+
example: false
|
|
1468
|
+
externallyManaged:
|
|
1469
|
+
type: boolean
|
|
1470
|
+
description: Flag indicating if this attribute is externally managed
|
|
1471
|
+
example: false
|
|
1472
|
+
externallyDefined:
|
|
1473
|
+
type: boolean
|
|
1474
|
+
description: Flag indicating if this attribute is externally defined
|
|
1475
|
+
example: false
|
|
1476
|
+
orderRequired:
|
|
1477
|
+
type: boolean
|
|
1478
|
+
description: Flag indicating if this attribute is required for order of the attribute model's product
|
|
1479
|
+
example: false
|
|
1480
|
+
regularExpression:
|
|
1481
|
+
type: string
|
|
1482
|
+
readOnly: true
|
|
1483
|
+
maxLength: 4000
|
|
1484
|
+
description: A regular expression that defines the legal values for this attribute
|
|
1485
|
+
example: ^[a-zA-Z]+$
|
|
1486
|
+
fieldLength:
|
|
1487
|
+
type: integer
|
|
1488
|
+
readOnly: true
|
|
1489
|
+
format: int32
|
|
1490
|
+
description: The length of the field for this attribute in the editor
|
|
1491
|
+
example: 50
|
|
1492
|
+
fieldHeight:
|
|
1493
|
+
type: integer
|
|
1494
|
+
readOnly: true
|
|
1495
|
+
format: int32
|
|
1496
|
+
description: The height of the field for this attribute in the editor
|
|
1497
|
+
example: 1
|
|
1498
|
+
minLength:
|
|
1499
|
+
type: integer
|
|
1500
|
+
readOnly: true
|
|
1501
|
+
format: int32
|
|
1502
|
+
description: The minimum length of the field for this attribute
|
|
1503
|
+
example: 1
|
|
1504
|
+
readOnly:
|
|
1505
|
+
type: boolean
|
|
1506
|
+
readOnly: true
|
|
1507
|
+
description: Flag indicating if this attribute is read-only
|
|
1508
|
+
example: false
|
|
1509
|
+
minValue:
|
|
1510
|
+
type: number
|
|
1511
|
+
readOnly: true
|
|
1512
|
+
format: double
|
|
1513
|
+
description: The minimum possible value for this attribute
|
|
1514
|
+
example: 0
|
|
1515
|
+
maxValue:
|
|
1516
|
+
type: number
|
|
1517
|
+
readOnly: true
|
|
1518
|
+
format: double
|
|
1519
|
+
description: The maximum possible value for this attribute
|
|
1520
|
+
example: 100
|
|
1521
|
+
scale:
|
|
1522
|
+
type: integer
|
|
1523
|
+
readOnly: true
|
|
1524
|
+
format: int32
|
|
1525
|
+
description: The minimum number of fraction digits for a value of this attribute
|
|
1526
|
+
example: 2
|
|
1527
|
+
defaultValue:
|
|
1528
|
+
description: The default value of this attribute. It can be updated, but not created.
|
|
1529
|
+
allOf:
|
|
1530
|
+
- $ref: '#/components/schemas/ObjectAttributeValueDefinition'
|
|
1531
|
+
valueDefinitions:
|
|
1532
|
+
type: array
|
|
1533
|
+
readOnly: true
|
|
1534
|
+
items:
|
|
1535
|
+
$ref: '#/components/schemas/ObjectAttributeValueDefinition'
|
|
1536
|
+
description: A set of values that are possible for this attribute
|
|
1537
|
+
creationDate:
|
|
1538
|
+
type: string
|
|
1539
|
+
readOnly: true
|
|
1540
|
+
format: date-time
|
|
1541
|
+
description: The date/time when the attribute definition was created
|
|
1542
|
+
example: '2024-01-15T10:30:00Z'
|
|
1543
|
+
lastModified:
|
|
1544
|
+
type: string
|
|
1545
|
+
readOnly: true
|
|
1546
|
+
format: date-time
|
|
1547
|
+
description: The date/time when the attribute definition was last modified
|
|
1548
|
+
example: '2024-01-15T11:00:00Z'
|
|
1549
|
+
PreferenceValue:
|
|
1550
|
+
description: Represents a single preference value with its attribute definition and site-specific values.
|
|
1551
|
+
type: object
|
|
1552
|
+
properties:
|
|
1553
|
+
id:
|
|
1554
|
+
description: The preference attribute ID
|
|
1555
|
+
type: string
|
|
1556
|
+
minLength: 1
|
|
1557
|
+
maxLength: 256
|
|
1558
|
+
example: WapiStringAttr
|
|
1559
|
+
description:
|
|
1560
|
+
type: object
|
|
1561
|
+
additionalProperties:
|
|
1562
|
+
type: string
|
|
1563
|
+
description: Localized string
|
|
1564
|
+
example: Preference Description
|
|
1565
|
+
maxLength: 4000
|
|
1566
|
+
displayName:
|
|
1567
|
+
type: object
|
|
1568
|
+
additionalProperties:
|
|
1569
|
+
type: string
|
|
1570
|
+
description: Localized string
|
|
1571
|
+
example: Preference Display Name
|
|
1572
|
+
maxLength: 4000
|
|
1573
|
+
attributeDefinition:
|
|
1574
|
+
$ref: '#/components/schemas/ObjectAttributeDefinition'
|
|
1575
|
+
siteValues:
|
|
1576
|
+
description: A mapping of site IDs to their preference values.
|
|
1577
|
+
type: object
|
|
1578
|
+
additionalProperties: true
|
|
1579
|
+
valueType:
|
|
1580
|
+
$ref: '#/components/schemas/ValueType'
|
|
1581
|
+
required:
|
|
1582
|
+
- id
|
|
1583
|
+
PreferenceValueSearchResult:
|
|
1584
|
+
description: Document representing a preference value search result.
|
|
1585
|
+
allOf:
|
|
1586
|
+
- $ref: '#/components/schemas/PaginatedSearchResult'
|
|
1587
|
+
properties:
|
|
1588
|
+
hits:
|
|
1589
|
+
description: The sorted array of search hits. Can be empty.
|
|
1590
|
+
type: array
|
|
1591
|
+
items:
|
|
1592
|
+
$ref: '#/components/schemas/PreferenceValue'
|
|
1593
|
+
type: object
|
|
1594
|
+
parameters:
|
|
1595
|
+
organizationId:
|
|
1596
|
+
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).
|
|
1597
|
+
name: organizationId
|
|
1598
|
+
in: path
|
|
1599
|
+
required: true
|
|
1600
|
+
example: f_ecom_zzxy_prd
|
|
1601
|
+
schema:
|
|
1602
|
+
$ref: '#/components/schemas/OrganizationId'
|
|
1603
|
+
maskPassword:
|
|
1604
|
+
name: maskPassword
|
|
1605
|
+
in: query
|
|
1606
|
+
description: Whether to mask password or not.
|
|
1607
|
+
required: false
|
|
1608
|
+
schema:
|
|
1609
|
+
type: boolean
|
|
1610
|
+
default: false
|
|
1611
|
+
example: true
|
|
1612
|
+
siteId:
|
|
1613
|
+
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.
|
|
1614
|
+
name: siteId
|
|
1615
|
+
in: query
|
|
1616
|
+
required: true
|
|
1617
|
+
examples:
|
|
1618
|
+
SiteId:
|
|
1619
|
+
value: RefArch
|
|
1620
|
+
schema:
|
|
1621
|
+
$ref: '#/components/schemas/SiteId'
|
|
1622
|
+
groupId:
|
|
1623
|
+
name: groupId
|
|
1624
|
+
in: path
|
|
1625
|
+
description: The preference group ID.
|
|
1626
|
+
required: true
|
|
1627
|
+
schema:
|
|
1628
|
+
type: string
|
|
1629
|
+
minLength: 1
|
|
1630
|
+
maxLength: 256
|
|
1631
|
+
example: WapiStringGroup
|
|
1632
|
+
instanceType:
|
|
1633
|
+
name: instanceType
|
|
1634
|
+
in: path
|
|
1635
|
+
description: The instance type for which to read or update preferences.
|
|
1636
|
+
required: true
|
|
1637
|
+
schema:
|
|
1638
|
+
type: string
|
|
1639
|
+
enum:
|
|
1640
|
+
- staging
|
|
1641
|
+
- development
|
|
1642
|
+
- sandbox
|
|
1643
|
+
- production
|
|
1644
|
+
example: staging
|
|
1645
|
+
example: staging
|
|
1646
|
+
maskPasswords:
|
|
1647
|
+
name: maskPasswords
|
|
1648
|
+
in: query
|
|
1649
|
+
description: The preference values of type Password are masked when set.
|
|
1650
|
+
required: false
|
|
1651
|
+
schema:
|
|
1652
|
+
type: boolean
|
|
1653
|
+
default: false
|
|
1654
|
+
example: true
|
|
1655
|
+
globalPreferenceGroupExpand:
|
|
1656
|
+
name: expand
|
|
1657
|
+
in: query
|
|
1658
|
+
description: |
|
|
1659
|
+
Expands the result document to include additional information. For global preference groups, the expansion "sites" retrieves the custom preferences for all the available sites.
|
|
1660
|
+
required: false
|
|
1661
|
+
schema:
|
|
1662
|
+
type: array
|
|
1663
|
+
items:
|
|
1664
|
+
type: string
|
|
1665
|
+
enum:
|
|
1666
|
+
- sites
|
|
1667
|
+
example: sites
|
|
1668
|
+
style: form
|
|
1669
|
+
explode: false
|
|
1670
|
+
preferenceSearchExpand:
|
|
1671
|
+
name: expand
|
|
1672
|
+
in: query
|
|
1673
|
+
description: |
|
|
1674
|
+
Expands the result document to include additional information. For preference search, the expansion "value" retrieves the value definitions of the attribute definition.
|
|
1675
|
+
required: false
|
|
1676
|
+
schema:
|
|
1677
|
+
type: array
|
|
1678
|
+
items:
|
|
1679
|
+
type: string
|
|
1680
|
+
enum:
|
|
1681
|
+
- value
|
|
1682
|
+
example: value
|
|
1683
|
+
style: form
|
|
1684
|
+
explode: false
|
|
1685
|
+
preferenceId:
|
|
1686
|
+
name: preferenceId
|
|
1687
|
+
in: path
|
|
1688
|
+
description: The preference attribute ID.
|
|
1689
|
+
required: true
|
|
1690
|
+
schema:
|
|
1691
|
+
type: string
|
|
1692
|
+
minLength: 1
|
|
1693
|
+
maxLength: 256
|
|
1694
|
+
example: WapiStringAttr
|
|
1695
|
+
examples:
|
|
1696
|
+
GlobalCustomPreferenceExample:
|
|
1697
|
+
value:
|
|
1698
|
+
limit: 10
|
|
1699
|
+
data:
|
|
1700
|
+
- groupId: PreferenceGroup1
|
|
1701
|
+
id: booleanValue
|
|
1702
|
+
value: true
|
|
1703
|
+
- groupId: PreferenceGroup1
|
|
1704
|
+
id: htmlValue
|
|
1705
|
+
value:
|
|
1706
|
+
markup: <h1>HTML Value</h1>
|
|
1707
|
+
source: <h1>HTML Value</h1>
|
|
1708
|
+
- groupId: PreferenceGroup1
|
|
1709
|
+
id: dateValue
|
|
1710
|
+
value: '2007-06-20T00:00:00.000Z'
|
|
1711
|
+
- groupId: PreferenceGroup2
|
|
1712
|
+
id: integerValueValue
|
|
1713
|
+
value: 12345
|
|
1714
|
+
- groupId: PreferenceGroup2
|
|
1715
|
+
id: stringValueList
|
|
1716
|
+
value: s1
|
|
1717
|
+
- groupId: PreferenceGroup2
|
|
1718
|
+
id: imageValue
|
|
1719
|
+
value:
|
|
1720
|
+
abs_url: https://localhost/on/demandware.static/-/Sites/default/v2d48bd5c705782218c66e02f6776751b2e227ac5/img/value.jpg
|
|
1721
|
+
dis_base_url: https://image.demandware.com/dw/image/v2/zzzz_s02/on/demandware.static/-/Sites/default/v2d48bd5c705782218c66e02f6776751b2e227ac5/img/value.jpg
|
|
1722
|
+
path: /img/value.jpg
|
|
1723
|
+
offset: 0
|
|
1724
|
+
total: 100
|
|
1725
|
+
InvalidAccessToken:
|
|
1726
|
+
value:
|
|
1727
|
+
title: Invalid Access Token
|
|
1728
|
+
type: https://api.commercecloud.salesforce.com/documentation/error/v1/errors/invalid-access-token
|
|
1729
|
+
detail: The request is unauthorized, the access token is invalid.
|
|
1730
|
+
accessToken: hbGciOiJIUzI1NiIsInR5cCI6Ikp
|
|
1731
|
+
SiteCustomPreferenceExample:
|
|
1732
|
+
value:
|
|
1733
|
+
limit: 10
|
|
1734
|
+
data:
|
|
1735
|
+
- groupId: PreferenceGroup1
|
|
1736
|
+
id: booleanValue
|
|
1737
|
+
value: true
|
|
1738
|
+
- groupId: PreferenceGroup1
|
|
1739
|
+
id: htmlValue
|
|
1740
|
+
value:
|
|
1741
|
+
markup: <h1>HTML Value</h1>
|
|
1742
|
+
source: <h1>HTML Value</h1>
|
|
1743
|
+
- groupId: PreferenceGroup2
|
|
1744
|
+
id: integerValueValue
|
|
1745
|
+
value: 12345
|
|
1746
|
+
- groupId: PreferenceGroup2
|
|
1747
|
+
id: imageValue
|
|
1748
|
+
value:
|
|
1749
|
+
abs_url: https://localhost/on/demandware.static/-/Sites/default/v2d48bd5c705782218c66e02f6776751b2e227ac5/img/value.jpg
|
|
1750
|
+
dis_base_url: https://image.demandware.com/dw/image/v2/zzzz_s02/on/demandware.static/-/Sites/default/v2d48bd5c705782218c66e02f6776751b2e227ac5/img/value.jpg
|
|
1751
|
+
path: /img/value.jpg
|
|
1752
|
+
offset: 0
|
|
1753
|
+
total: 100
|
|
1754
|
+
GetGlobalPreferencesExample:
|
|
1755
|
+
summary: Global preferences with custom attributes.
|
|
1756
|
+
value:
|
|
1757
|
+
c_WapiStringAttr: MyString
|
|
1758
|
+
c_WapiLocalizedStringAttr: MyLocalizedString
|
|
1759
|
+
c_WapiSitespecificStringAttr: MySiteSpecificString
|
|
1760
|
+
c_WapiSetOfStringAttr:
|
|
1761
|
+
- value1
|
|
1762
|
+
- value2
|
|
1763
|
+
c_WapiEnumOfStringAttr: WapiEnumOfStringValue1
|
|
1764
|
+
c_WapiEnumOfStringMSAttr:
|
|
1765
|
+
- WapiEnumOfStringMSValue1
|
|
1766
|
+
- WapiEnumOfStringMSValue2
|
|
1767
|
+
GetGlobalPreferencesWithSitesExample:
|
|
1768
|
+
summary: Global preferences with site-specific expansions.
|
|
1769
|
+
value:
|
|
1770
|
+
c_WapiStringAttr: MyString
|
|
1771
|
+
c_WapiLocalizedStringAttr:
|
|
1772
|
+
default: MyLocalizedString
|
|
1773
|
+
de-DE: MeineLokalisierteZeichenkette
|
|
1774
|
+
c_WapiSitespecificStringAttr: MySiteSpecificString
|
|
1775
|
+
c_WapiSetOfStringAttr:
|
|
1776
|
+
- value1
|
|
1777
|
+
- value2
|
|
1778
|
+
c_WapiEnumOfStringAttr: WapiEnumOfStringValue1
|
|
1779
|
+
c_WapiEnumOfStringMSAttr:
|
|
1780
|
+
- WapiEnumOfStringMSValue1
|
|
1781
|
+
- WapiEnumOfStringMSValue2
|
|
1782
|
+
c_WapiBooleanAttr: true
|
|
1783
|
+
c_WapiIntAttr: 42
|
|
1784
|
+
sitePreferences:
|
|
1785
|
+
- site:
|
|
1786
|
+
id: RefArch
|
|
1787
|
+
c_WapiStringAttr: SiteSpecificStringRefArch
|
|
1788
|
+
c_WapiLocalizedStringAttr:
|
|
1789
|
+
default: SiteLocalizedString
|
|
1790
|
+
de-DE: StandortLokalisierteZeichenkette
|
|
1791
|
+
c_WapiSitespecificStringAttr: SiteSpecificValue
|
|
1792
|
+
c_WapiSetOfStringAttr:
|
|
1793
|
+
- siteValue1
|
|
1794
|
+
- siteValue2
|
|
1795
|
+
c_WapiEnumOfStringAttr: WapiEnumOfStringValue1
|
|
1796
|
+
c_WapiBooleanAttr: false
|
|
1797
|
+
c_WapiIntAttr: 10
|
|
1798
|
+
- site:
|
|
1799
|
+
id: RefArchGlobal
|
|
1800
|
+
c_WapiStringAttr: AnotherSiteValue
|
|
1801
|
+
c_WapiLocalizedStringAttr:
|
|
1802
|
+
default: AnotherSiteLocalizedString
|
|
1803
|
+
c_WapiSitespecificStringAttr: AnotherSiteSpecificValue
|
|
1804
|
+
c_WapiSetOfStringAttr:
|
|
1805
|
+
- anotherValue1
|
|
1806
|
+
c_WapiBooleanAttr: true
|
|
1807
|
+
c_WapiIntAttr: 99
|
|
1808
|
+
IllegalEnumerationValue:
|
|
1809
|
+
value:
|
|
1810
|
+
title: Illegal Enumeration Value
|
|
1811
|
+
type: https://api.commercecloud.salesforce.com/documentation/error/v1/errors/illegal-enumeration-value
|
|
1812
|
+
detail: The value 'bad' for type 'InstanceType' is invalid.
|
|
1813
|
+
value: bad
|
|
1814
|
+
CustomPreferenceGroupNotFound:
|
|
1815
|
+
value:
|
|
1816
|
+
title: Custom Preference Group Not Found
|
|
1817
|
+
type: https://api.commercecloud.salesforce.com/documentation/error/v1/errors/custom-preference-group-not-found
|
|
1818
|
+
detail: No preference group with ID 'Bad' could be found.
|
|
1819
|
+
preferenceGroupId: Bad
|
|
1820
|
+
UpdateGlobalPreferencesRequest:
|
|
1821
|
+
summary: Update global custom preferences.
|
|
1822
|
+
value:
|
|
1823
|
+
c_WapiStringAttr: UpdatedString
|
|
1824
|
+
c_WapiIntAttr: 42
|
|
1825
|
+
c_WapiBooleanAttr: true
|
|
1826
|
+
c_WapiSetOfStringAttr:
|
|
1827
|
+
- newValue1
|
|
1828
|
+
- newValue2
|
|
1829
|
+
UpdateGlobalPreferencesExample:
|
|
1830
|
+
summary: Updated global preferences response.
|
|
1831
|
+
value:
|
|
1832
|
+
c_WapiStringAttr: UpdatedString
|
|
1833
|
+
c_WapiLocalizedStringAttr: UpdatedLocalizedString
|
|
1834
|
+
c_WapiSetOfStringAttr:
|
|
1835
|
+
- newValue1
|
|
1836
|
+
- newValue2
|
|
1837
|
+
GetSitePreferencesExample:
|
|
1838
|
+
summary: Site preferences with custom attributes.
|
|
1839
|
+
value:
|
|
1840
|
+
site:
|
|
1841
|
+
id: RefArch
|
|
1842
|
+
c_WapiStringAttr: MyString
|
|
1843
|
+
c_WapiLocalizedStringAttr: MyLocalizedString
|
|
1844
|
+
c_WapiPasswordAttr: '************'
|
|
1845
|
+
UpdateSitePreferencesRequest:
|
|
1846
|
+
summary: Update site custom preferences.
|
|
1847
|
+
value:
|
|
1848
|
+
c_WapiStringAttr: UpdatedString
|
|
1849
|
+
c_WapiLocalizedStringAttr:
|
|
1850
|
+
default: UpdatedLocalizedString
|
|
1851
|
+
de-DE: AktualisierteLokalisierteZeichenkette
|
|
1852
|
+
c_WapiIntAttr: 42
|
|
1853
|
+
c_WapiBooleanAttr: true
|
|
1854
|
+
c_WapiSetOfStringAttr:
|
|
1855
|
+
- newValue1
|
|
1856
|
+
- newValue2
|
|
1857
|
+
UpdateSitePreferencesExample:
|
|
1858
|
+
summary: Updated site preferences response.
|
|
1859
|
+
value:
|
|
1860
|
+
site:
|
|
1861
|
+
id: RefArch
|
|
1862
|
+
c_WapiStringAttr: UpdatedString
|
|
1863
|
+
c_WapiLocalizedStringAttr: UpdatedLocalizedString
|
|
1864
|
+
SearchSitePreferencesRequest:
|
|
1865
|
+
summary: Search preferences by ID and value type.
|
|
1866
|
+
value:
|
|
1867
|
+
query:
|
|
1868
|
+
boolQuery:
|
|
1869
|
+
must:
|
|
1870
|
+
- textQuery:
|
|
1871
|
+
fields:
|
|
1872
|
+
- id
|
|
1873
|
+
searchPhrase: WapiString
|
|
1874
|
+
- termQuery:
|
|
1875
|
+
fields:
|
|
1876
|
+
- valueType
|
|
1877
|
+
operator: is
|
|
1878
|
+
values:
|
|
1879
|
+
- string
|
|
1880
|
+
sorts:
|
|
1881
|
+
- field: id
|
|
1882
|
+
sortOrder: asc
|
|
1883
|
+
limit: 25
|
|
1884
|
+
offset: 0
|
|
1885
|
+
PreferenceSearchExample:
|
|
1886
|
+
summary: Search result for preferences across sites.
|
|
1887
|
+
value:
|
|
1888
|
+
limit: 2
|
|
1889
|
+
offset: 0
|
|
1890
|
+
total: 2
|
|
1891
|
+
hits:
|
|
1892
|
+
- id: WapiStringAttr
|
|
1893
|
+
displayName:
|
|
1894
|
+
default: String Attribute
|
|
1895
|
+
description:
|
|
1896
|
+
default: String Attribute
|
|
1897
|
+
valueType: string
|
|
1898
|
+
attributeDefinition:
|
|
1899
|
+
id: WapiStringAttr
|
|
1900
|
+
displayName:
|
|
1901
|
+
default: String Attribute
|
|
1902
|
+
description:
|
|
1903
|
+
default: String Attribute
|
|
1904
|
+
valueType: string
|
|
1905
|
+
siteValues:
|
|
1906
|
+
RefArch: MyString-RefArch-Staging
|
|
1907
|
+
RefArchGlobal: MyString-RefArchGlobal-Staging
|
|
1908
|
+
- id: WapiLocalizedStringAttr
|
|
1909
|
+
displayName:
|
|
1910
|
+
default: Localized String Attribute
|
|
1911
|
+
description:
|
|
1912
|
+
default: Localized String Attribute
|
|
1913
|
+
valueType: string
|
|
1914
|
+
attributeDefinition:
|
|
1915
|
+
id: WapiLocalizedStringAttr
|
|
1916
|
+
displayName:
|
|
1917
|
+
default: Localized String Attribute
|
|
1918
|
+
description:
|
|
1919
|
+
default: Localized String Attribute
|
|
1920
|
+
valueType: string
|
|
1921
|
+
siteValues:
|
|
1922
|
+
RefArch: MyLocalizedString-RefArch-Staging
|
|
1923
|
+
query:
|
|
1924
|
+
matchAllQuery: {}
|
|
1925
|
+
sorts:
|
|
1926
|
+
- field: id
|
|
1927
|
+
sortOrder: asc
|
|
1928
|
+
PreferenceSearchWithExpandValueExample:
|
|
1929
|
+
summary: Search result with expanded value definitions.
|
|
1930
|
+
value:
|
|
1931
|
+
limit: 1
|
|
1932
|
+
offset: 0
|
|
1933
|
+
total: 1
|
|
1934
|
+
hits:
|
|
1935
|
+
- id: WapiEnumOfStringAttr
|
|
1936
|
+
displayName:
|
|
1937
|
+
default: Enum Of String Attribute
|
|
1938
|
+
description:
|
|
1939
|
+
default: Enum Of String Attribute
|
|
1940
|
+
valueType: enum_of_string
|
|
1941
|
+
attributeDefinition:
|
|
1942
|
+
id: WapiEnumOfStringAttr
|
|
1943
|
+
displayName:
|
|
1944
|
+
default: Enum Of String Attribute
|
|
1945
|
+
description:
|
|
1946
|
+
default: Enum Of String Attribute
|
|
1947
|
+
valueType: enum_of_string
|
|
1948
|
+
valueDefinitions:
|
|
1949
|
+
- id: WapiEnumOfStringValue1
|
|
1950
|
+
displayValue:
|
|
1951
|
+
default: Value 1
|
|
1952
|
+
position: 0
|
|
1953
|
+
value: WapiEnumOfStringValue1
|
|
1954
|
+
- id: WapiEnumOfStringValue2
|
|
1955
|
+
displayValue:
|
|
1956
|
+
default: Value 2
|
|
1957
|
+
position: 1
|
|
1958
|
+
value: WapiEnumOfStringValue2
|
|
1959
|
+
siteValues:
|
|
1960
|
+
RefArch: WapiEnumOfStringValue1
|
|
1961
|
+
query:
|
|
1962
|
+
textQuery:
|
|
1963
|
+
fields:
|
|
1964
|
+
- id
|
|
1965
|
+
searchPhrase: WapiEnumOfStringAttr
|
|
1966
|
+
FieldNotSortable:
|
|
1967
|
+
value:
|
|
1968
|
+
title: Field Not Sortable
|
|
1969
|
+
type: https://api.commercecloud.salesforce.com/documentation/error/v1/errors/field-not-sortable
|
|
1970
|
+
detail: The field 'attributeDefinition' can't be used to sort the results.
|
|
1971
|
+
field: attributeDefinition
|
|
1972
|
+
GetPreferenceValueExample:
|
|
1973
|
+
summary: A single preference value.
|
|
1974
|
+
value:
|
|
1975
|
+
id: WapiStringAttr
|
|
1976
|
+
displayName:
|
|
1977
|
+
default: String Attribute
|
|
1978
|
+
de-DE: Zeichenkettenattribut
|
|
1979
|
+
description:
|
|
1980
|
+
default: A custom string preference attribute
|
|
1981
|
+
de-DE: Ein benutzerdefiniertes Zeichenkettenattribut
|
|
1982
|
+
valueType: string
|
|
1983
|
+
siteValues:
|
|
1984
|
+
RefArch: MyString-RefArch-Sandbox
|
|
1985
|
+
RefArchGlobal: MyString-RefArchGlobal-Sandbox
|
|
1986
|
+
attributeDefinition:
|
|
1987
|
+
id: WapiStringAttr
|
|
1988
|
+
effectiveId: c_WapiStringAttr
|
|
1989
|
+
displayName:
|
|
1990
|
+
default: String Attribute
|
|
1991
|
+
de-DE: Zeichenkettenattribut
|
|
1992
|
+
description:
|
|
1993
|
+
default: A custom string preference attribute
|
|
1994
|
+
de-DE: Ein benutzerdefiniertes Zeichenkettenattribut
|
|
1995
|
+
valueType: string
|
|
1996
|
+
key: false
|
|
1997
|
+
mandatory: false
|
|
1998
|
+
localizable: true
|
|
1999
|
+
siteSpecific: true
|
|
2000
|
+
searchable: false
|
|
2001
|
+
queryable: true
|
|
2002
|
+
visible: true
|
|
2003
|
+
system: false
|
|
2004
|
+
unit:
|
|
2005
|
+
default: ''
|
|
2006
|
+
requiresEncoding: false
|
|
2007
|
+
multiValueType: false
|
|
2008
|
+
setValueType: false
|
|
2009
|
+
externallyManaged: false
|
|
2010
|
+
externallyDefined: false
|
|
2011
|
+
orderRequired: false
|
|
2012
|
+
readOnly: false
|
|
2013
|
+
regularExpression: ^[a-zA-Z0-9]*$
|
|
2014
|
+
fieldLength: 256
|
|
2015
|
+
fieldHeight: 1
|
|
2016
|
+
minLength: 1
|
|
2017
|
+
minValue: 0
|
|
2018
|
+
maxValue: 100
|
|
2019
|
+
scale: 2
|
|
2020
|
+
defaultValue:
|
|
2021
|
+
id: defaultVal
|
|
2022
|
+
value: defaultString
|
|
2023
|
+
position: 1
|
|
2024
|
+
displayValue:
|
|
2025
|
+
default: Default Value
|
|
2026
|
+
description:
|
|
2027
|
+
default: The default value
|
|
2028
|
+
valueDefinitions: []
|
|
2029
|
+
GetPreferenceValueMultiSiteExample:
|
|
2030
|
+
summary: A single preference value with multiple site values.
|
|
2031
|
+
value:
|
|
2032
|
+
id: WapiSetOfStringAttr
|
|
2033
|
+
displayName:
|
|
2034
|
+
default: Set Of String Attribute
|
|
2035
|
+
description:
|
|
2036
|
+
default: Set Of String Attribute
|
|
2037
|
+
siteValues:
|
|
2038
|
+
RefArch:
|
|
2039
|
+
- value1-RefArch-Sandbox
|
|
2040
|
+
RefArchGlobal:
|
|
2041
|
+
- value1-RefArchGlobal-Sandbox
|
|
2042
|
+
valueType: set_of_string
|
|
2043
|
+
PreferenceNotFound:
|
|
2044
|
+
value:
|
|
2045
|
+
title: Preference Not Found
|
|
2046
|
+
type: https://api.commercecloud.salesforce.com/documentation/error/v1/errors/preference-not-found
|
|
2047
|
+
detail: No preference with ID 'noExists' could be found.
|
|
2048
|
+
preferenceId: noExists
|
|
2049
|
+
UpdateSitePreferenceValueRequest:
|
|
2050
|
+
summary: Update a preference value for multiple sites.
|
|
2051
|
+
value:
|
|
2052
|
+
id: WapiStringAttr
|
|
2053
|
+
valueType: string
|
|
2054
|
+
displayName:
|
|
2055
|
+
default: My String Attribute
|
|
2056
|
+
de-DE: Mein Zeichenkettenattribut
|
|
2057
|
+
description:
|
|
2058
|
+
default: A custom string preference attribute
|
|
2059
|
+
de-DE: Ein benutzerdefiniertes Zeichenkettenattribut
|
|
2060
|
+
siteValues:
|
|
2061
|
+
RefArch: new value for RefArch
|
|
2062
|
+
RefArchGlobal: new value for RefArchGlobal
|
|
2063
|
+
attributeDefinition:
|
|
2064
|
+
id: WapiStringAttr
|
|
2065
|
+
displayName:
|
|
2066
|
+
default: My String Attribute
|
|
2067
|
+
de-DE: Mein Zeichenkettenattribut
|
|
2068
|
+
description:
|
|
2069
|
+
default: A custom string preference attribute
|
|
2070
|
+
de-DE: Ein benutzerdefiniertes Zeichenkettenattribut
|
|
2071
|
+
valueType: string
|
|
2072
|
+
key: false
|
|
2073
|
+
mandatory: false
|
|
2074
|
+
localizable: true
|
|
2075
|
+
siteSpecific: true
|
|
2076
|
+
searchable: false
|
|
2077
|
+
visible: true
|
|
2078
|
+
unit:
|
|
2079
|
+
default: kg
|
|
2080
|
+
multiValueType: false
|
|
2081
|
+
externallyManaged: false
|
|
2082
|
+
externallyDefined: false
|
|
2083
|
+
orderRequired: false
|
|
2084
|
+
UpdatePreferenceValueExample:
|
|
2085
|
+
summary: Updated preference value response.
|
|
2086
|
+
value:
|
|
2087
|
+
id: WapiLocalizedStringAttr
|
|
2088
|
+
displayName:
|
|
2089
|
+
default: Localized String Attribute
|
|
2090
|
+
description:
|
|
2091
|
+
default: Localized String Attribute
|
|
2092
|
+
siteValues:
|
|
2093
|
+
RefArch: value for RefArch
|
|
2094
|
+
RefArchGlobal: value for RefArchGlobal
|
|
2095
|
+
valueType: string
|