tiki-archive / integrations

A collection of example implementations
MIT License
1 stars 1 forks source link

Save Shopify discount options #105

Closed ricardobrg closed 1 year ago

ricardobrg commented 1 year ago

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.

ricardobrg commented 1 year ago

Missing fields in description combinesWith startsAt endsAt