Create discount
documentedCreate a discount.
POST /api/2.1/scheduling/discountsDiscountsno 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://api.agendize.com/api/2.1/scheduling/discounts" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name": "{{$name}}", "duration": "{{$duration}}", "type": "{{$type}}", "details": [ {"order": {{$order}}, "company": {"id": "{{$company_id}}", "name": "{{$company_name}}"}, "service": {"id": "{{$service_id}}", "name": "{{$service_name}}"} } ] }'