Upload product filter
Uploads a file for the specified bonus campaign and updates the campaign’s associated file reference based on the specified CampaignFileType. Supported file types vary depending on the BonusType of the campaign. Upload will fail if the selected fileType is not compatible with the campaign’s bonus type.
Supported files types for bonus types:
-
ProductBonus: Percentage, FixedPrice
-
BasketBonus: ExcludedProductIds, ExcludedCategories
-
LocalBonus: ProductIds, ExcludedCategories
Authorizations
JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"
Path Parameters
The identifier of the bonus campaign.
The type of the file being uploaded. Determines which property on the campaign should be updated. Defaults to Percentage if not specified.
Percentage, FixedPrice, CampaignPercentage, Custom, ProductIds, ExcludedCategories, MemberIds, ExcludedProductIds Body
The file to be uploaded. Must be provided in the multipart/form-data body.
Response
File uploaded successfully and campaign updated.