As a shop owner,
I want to save the discount options as a new discount
so that it can be used in an offer for data licensing.
Get the data from the Discount Settings UI and send it to the /api/latest/discount/{product/order} to save the discount data.
The structure of the sent data should be:
discountType: string;
discountValue: number;
purchaseType: string;
appliesTo: string[];
minValue: number;
minQty: number;
maxUse: number;
onePerUser: boolean;
This endpoint will create a new Discount based on the options.
As a shop owner, I want to save the discount options as a new discount so that it can be used in an offer for data licensing.
Get the data from the Discount Settings UI and send it to the /api/latest/discount/{product/order} to save the discount data.
The structure of the sent data should be: discountType: string; discountValue: number; purchaseType: string; appliesTo: string[]; minValue: number; minQty: number; maxUse: number; onePerUser: boolean;
This endpoint will create a new Discount based on the options.