Private
impersonatingCreate a new promotion. If ID is provided and an object with that ID already exists, a 409 (conflict) error is returned. Check out the docs for more info
Required fields: Code, EligibleExpression
Delete a promotion. Check out the docs for more info
ID of the promotion.
Delete a promotion assignment. Check out the docs for more info
ID of the promotion.
Optional
buyerID?: stringID of the buyer.
Optional
userID of the user group.
Optional
userID?: stringID of the user.
Get a single promotion. Check out the docs for more info
ID of the promotion.
Get a list of promotions. Check out the docs for more info
Optional
filters?: FiltersAn object or dictionary representing key/value pairs to apply as filters. Valid keys are top-level properties of the returned model or 'xp.???'
Optional
page?: numberPage of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.
Optional
pageNumber of results to return per page. Default: 20, max: 100.
Optional
search?: stringWord or phrase to search for.
Optional
searchComma-delimited list of fields to search on.
Optional
sortComma-delimited list of fields to sort by.
Get a list of promotion assignments. Check out the docs for more info
Optional
buyerID?: stringID of the buyer.
Optional
level?: PartyTypeLevel of the promotion assignment. Possible values: User, Group, Company.
Optional
page?: numberPage of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.
Optional
pageNumber of results to return per page. Default: 20, max: 100.
Optional
promotionID?: stringID of the promotion.
Optional
userID of the user group.
Optional
userID?: stringID of the user.
Partially update a promotion. Check out the docs for more info
ID of the promotion.
Create or update a promotion. If an object with the same ID already exists, it will be overwritten. Check out the docs for more info
ID of the promotion.
Required fields: Code, EligibleExpression
Create or update a promotion assignment. Check out the docs for more info
Required fields: PromotionID, BuyerID
Generated using TypeDoc
Description
enables impersonation by calling the subsequent method with the stored impersonation token
Example