Create a discount Check out the docs for more info
Required fields: DiscountBreaks
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalcancelToken?: CancelTokenAxios cancelToken that can be used to cancel the request.
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Delete a discount Check out the docs for more info
ID of the discount.
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalcancelToken?: CancelTokenAxios cancelToken that can be used to cancel the request.
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Delete a discount assignment Check out the docs for more info
ID of the discount.
OptionalbuyerGroupID?: stringID of the buyer group.
OptionalbuyerID?: stringID of the buyer.
OptionaluserGroupID?: stringID of the user group.
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalcancelToken?: CancelTokenAxios cancelToken that can be used to cancel the request.
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Retrieve a discount Check out the docs for more info
ID of the discount.
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalcancelToken?: CancelTokenAxios cancelToken that can be used to cancel the request.
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
List discounts Check out the docs for more info
Optionalfilters?: FiltersAn object or dictionary representing key/value pairs to apply as filters. Valid keys are top-level properties of the returned model or 'xp.???'
Optionalpage?: numberPage of results to return. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.
OptionalpageSize?: numberNumber of results to return per page.
OptionalsortBy?: (Comma-delimited list of fields to sort by.
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalcancelToken?: CancelTokenAxios cancelToken that can be used to cancel the request.
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
List discount assignments Check out the docs for more info
OptionalbuyerGroupID?: stringID of the buyer group.
OptionalbuyerID?: stringID of the buyer.
OptionaldiscountID?: stringID of the discount.
Optionallevel?: "Group" | "Company"Level of the discount assignment. Possible values: Group, Company, BuyerGroup.
Optionalpage?: numberPage of results to return. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.
OptionalpageSize?: numberNumber of results to return per page.
OptionaluserGroupID?: stringID of the user group.
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalcancelToken?: CancelTokenAxios cancelToken that can be used to cancel the request.
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Partially update a discount Check out the docs for more info
ID of the discount.
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalcancelToken?: CancelTokenAxios cancelToken that can be used to cancel the request.
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Create or update a discount If an object with the same ID already exists, it will be overwritten. Check out the docs for more info
ID of the discount.
Required fields: DiscountBreaks
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalcancelToken?: CancelTokenAxios cancelToken that can be used to cancel the request.
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Create or update a discount assignment Check out the docs for more info
Required fields: DiscountID
OptionalaccessToken?: stringAlternative token to the one stored in the sdk instance (useful for impersonation).
OptionalcancelToken?: CancelTokenAxios cancelToken that can be used to cancel the request.
OptionalrequestType?: stringIdentify the type of request. Useful for error logs.
Description
enables impersonation by calling the subsequent method with the stored impersonation token
Example