Amelia icon

Amelia

Interact with Amelia API

Actions119

Coupons → Add Coupon

AI-generated

Summary

Creates an Amelia coupon by sending the configured coupon fields in the request body. The request uses the Amelia API key and admin AJAX URL from the required credentials.

Inputs

  • Code — Coupon code; defaults to COUPON.
  • Customer Limit — Maximum number of uses per customer; defaults to 2.
  • Deduction — Deduction amount; defaults to 10.
  • Discount — Discount value; defaults to 0.
  • Events — JSON array of event IDs; defaults to [80].
  • Expiration Date — Coupon expiration date; defaults to 2023-10-06.
  • Limit — Total usage limit; defaults to 20.
  • Notification Interval — Notification interval; defaults to 0.
  • Notification Recurring — Whether notifications recur; defaults to false.
  • Packages — JSON array of package IDs; defaults to [1].
  • Services — JSON array of service IDs; defaults to [1].
  • Status — Coupon status; defaults to visible.
  • Credentials (required) — Amelia API key and admin AJAX URL.
  • Request Options — Optional batching, SSL certificate validation, proxy, and request timeout settings.

Output shape

A single API response item.

The source pack configures the Amelia API request but does not show response transformation or the exact response fields.

Links

Discussion