Create product discount
documentedCreate a product discount.
POST /3dCartWebAPI/v1/ProductDiscountProductsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://apirest.3dcart.com/3dCartWebAPI/v1/ProductDiscount" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Token: {{SHIFT4SHOP_TOKEN}}" \
-H "SecureUrl: {{SHIFT4SHOP_SECURE_URL}}" \
-H "PrivateKey: {{SHIFT4SHOP_PRIVATE_KEY}}" \
-d '{"ProductID": {{$product_id}}, "Discount": {{$discount_value}}, "DiscountType": "{{$discount_type}}", "Currency": "{{$currency}}", "StartDate": "{{$start_date}}", "EndDate": "{{$end_date}}", "Description": "{{$description}}"}'