Sign in

Create discount

documented

Create a personalized discount/coupon for use in Remarkety campaigns. The endpoint is described in Remarkety's Coupons/Discounts Swagger documentation. ([support.remarkety.com](https://support.remarkety.com/hc/en-us/articles/212975683-Integrating-custom-platforms-with-Remarkety))

POST /api/remarkety/discountsCouponsno implementation yet0 runs
No 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://app.remarkety.com/api/v1/stores/{{$store_id}}/discounts" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "x-api-key: {{REMARKETY_API_KEY}}" \
  -d '{"title": "{{$title}}", "code": "{{$discount_code}}", "type": "percentage", "value": {{$percentage}}, "startDate": "{{$start_date}}", "endDate": "{{$end_date}}", "usageLimit": {{$usage_limit}}, "appliesTo": {"products": ["{{$product_id}}"], "categories": ["{{$category_id}}"]}, "active": true}'