Type aliases
Static AsyncCreated
AsyncCreated: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:69
Static AttributeDefinition
Attribute
Definition: { defaultValue?: PropertyValueDefinition ; description: L10nString ; id?: string ; key?: boolean ; localizable?: boolean ; mandatory?: boolean ; max?: number ; min?: number ; minLength?: number ; multiValueType?: boolean ; name: L10nString ; possibleValues?: Array < PropertyValueDefinition > ; regularExpression?: string ; scale?: number ; searchable?: boolean ; siteSpecific?: boolean ; system?: boolean ; type: string ; unit?: L10nString ; visible?: boolean }
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:281
Type declaration
Optional id?: string
Optional key?: boolean
Optional localizable?: boolean
Optional mandatory?: boolean
Optional max?: number
Optional min?: number
Optional minLength?: number
Optional multiValueType?: boolean
Optional regularExpression?: string
Optional scale?: number
Optional searchable?: boolean
Optional siteSpecific?: boolean
Optional system?: boolean
type: string
Optional visible?: boolean
Static BoolFilter
Bool
Filter: { filters?: Array < Filter > ; operator: string } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:172
Static BoolQuery
Bool
Query: { must?: Array < Query > ; mustNot?: Array < Query > ; should?: Array < Query > } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:234
Static Campaign
Campaign: { campaignId?: string ; coupons?: Array < string > ; creationDate?: any ; customerGroups?: Array < string > ; description?: string ; enabled?: boolean ; endDate?: any ; lastModified?: any ; siteId?: string ; sourceCodeGroups?: Array < string > ; startDate?: any } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:25
Static CampaignDuplicate
CampaignDuplicate: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:310
Static CampaignNotFound
CampaignNotFound: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:312
Static CampaignSearchResult
Campaign
SearchResult: { hits: Array < Campaign > ; limit: number ; offset: any ; query: Query ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:16
Static ChangeControlled
ChangeControlled: { createdBy?: string ; creationDate?: any ; lastModifiedBy?: string ; modificationDate?: any } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:46
Static ChangeControlledDataType
ChangeControlledDataType: { createdBy?: string ; creationDate?: any ; lastModifiedBy?: string ; modificationDate?: any } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:85
Static ClosedObject
ClosedObject: {} & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:153
Static DateConditionalRequest
DateConditionalRequest: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:63
Static DateRangeFilter
DateRangeFilter: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:53
Static DatetimeRangeFilter
DatetimeRangeFilter: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:83
Static Error
Error: { detail?: string ; instance?: string ; title?: string ; type: string } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:92
Static ErrorResponse
ErrorResponse: { detail?: string ; instance?: string ; title?: string ; type: string } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:39
Static EtagConditionalRequest
EtagConditionalRequest: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:67
Static EtagResponse
EtagResponse: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:55
Static Filter
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:253
Static FilteredQuery
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:189
Static IdConflict
IdConflict: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:314
Static IntegerRangeFilter
IntegerRangeFilter: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:57
Static L10nString
L10nString: {} & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:278
Static LocalizedString
LocalizedString: {} & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:141
Static MatchAllQuery
MatchAllQuery: {} & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:186
Static Money
Money: { currencyMnemonic?: string ; value?: number } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:99
Static MoneyMnemonic
MoneyMnemonic: { currencyMnemonic?: string ; value?: number } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:273
Static NestedQuery
Nested
Query: { path: string ; query: Query ; scoreMode?: string } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:247
Static NoPropertiesAllowed
NoPropertiesAllowed: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:167
Static NumericRangeFilter
NumericRangeFilter: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:81
Static OffsetPaginated
OffsetPaginated: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:75
Static OpenObject
OpenObject: {} & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:156
Static PaginatedSearchResult
Paginated
SearchResult: { hits?: Array < object > ; limit: number ; offset: any ; query: Query ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:144
Static PaginatedSearchResultBase
Paginated
SearchResultBase: { hits?: Array < object > ; limit: number ; offset: any ; query: Query ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:177
Static PropertyDefinition
Property
Definition: { defaultValue?: PropertyValueDefinition ; description: L10nString ; id?: string ; key?: boolean ; localizable?: boolean ; mandatory?: boolean ; max?: number ; min?: number ; minLength?: number ; multiValueType?: boolean ; name: L10nString ; possibleValues?: Array < PropertyValueDefinition > ; regularExpression?: string ; scale?: number ; searchable?: boolean ; siteSpecific?: boolean ; system?: boolean ; type: string ; unit?: L10nString ; visible?: boolean } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:118
Static PropertyValueDefinition
Property
ValueDefinition: { description: L10nString ; displayValue: L10nString ; id: string ; position?: number ; value: string }
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:303
Type declaration
id: string
Optional position?: number
value: string
Static Query
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:198
Static QueryFilter
Query
Filter: { query: Query } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:194
Static QueryParamsLimit
QueryParamsLimit: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:159
Static QueryParamsOffset
QueryParamsOffset: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:161
Static Range2Filter
Range2Filter: { filterMode?: string ; fromField: string ; fromInclusive?: boolean ; fromValue?: any ; toField: string ; toInclusive?: boolean ; toValue?: any } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:224
Static RangeFilter
RangeFilter: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:77
Static RateLimited
RateLimited: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:71
Static RateLimited2
RateLimited2: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:73
Static RateLimited3
RateLimited3: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:59
Static RateLimited4
RateLimited4: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:79
Static RateLimited5
RateLimited5: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:65
Static SearchRequest
Search
Request: { limit?: number ; offset?: any ; query: Query ; sorts?: Array < Sort > } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:111
Static SearchRequestBase
Search
RequestBase: { limit?: number ; offset?: any ; query: Query ; sorts?: Array < Sort > } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:266
Static Selectable
Selectable: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:165
Static SimpleSearchResult
SimpleSearchResult: { hits?: Array < object > ; limit: number ; offset: any ; total: any } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:104
Static SimpleSearchResultBase
SimpleSearchResultBase: { hits?: Array < object > ; limit: number ; offset: any ; total: any } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:240
Static SiteSpecific
SiteSpecific: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:163
Static Sort
Sort: { field: string ; sortOrder?: string } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:261
Static SpecifiedPropertiesAllowed
SpecifiedPropertiesAllowed: {} & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:169
Static SyncCreated
SyncCreated: {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:61
Static TermFilter
TermFilter: { field: string ; operator: string ; values?: Array < any > } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:213
Static TermQuery
TermQuery: { fields: Array < string > ; operator: string ; values?: Array < any > } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:207
Static TextQuery
TextQuery: { fields: Array < string > ; searchPhrase: string } & {}
Defined in renderedTemplates/pricing/campaigns/campaigns.ts:219
Campaigns
Utilize campaign experiences for your customers.
For instructions on how to retrieve access token for admin APIs: https://developer.salesforce.com/docs/commerce/commerce-api/guide/authorization-for-admin-apis.html
Example with admin auth
API Version: 1.0.28import { Pricing, ClientConfig } from "commerce-sdk"; // or const { Pricing, ClientConfig } = require("commerce-sdk"); const clientConfig: ClientConfig = { parameters: { clientId: "XXXXXX", organizationId: "XXXX", shortCode: "XXX", siteId: "XX" } }; token = { access_token: 'INSERT_ACCESS_TOKEN_HERE' }; clientConfig.headers['authorization'] = `Bearer ${token.access_token}`; const campaignsClient = new Pricing.Campaigns(clientConfig);
Last Updated: