Actions119
- Categories Actions
- Payments Actions
- Appointments Actions
- Bookings Actions
- Extras Actions
- Events Actions
- Locations Actions
- Services Actions
- Coupons Actions
- Timeslots Actions
- Custom Fields Actions
- Entities Actions
- Search Actions
- Users Actions
- Customers Actions
- Employees Actions
- Notification Actions
- Stats Actions
- Resources Actions
- Packages Actions
Coupons → Validate Coupon
AI-generatedSummary
Validate an Amelia coupon by sending the supplied coupon code, count, ID, type, and user details in the request body. The node sends the request to the configured Amelia API URL using the required Amelia API key credential.
Inputs
- Code — Coupon code; defaults to
COUPON. - Count — Count to validate; defaults to
1. - Id — Coupon ID; defaults to
1. - Type — Coupon type; defaults to
appointment. - User — JSON user details sent in the body; defaults to an example with email, first name, and last name.
- Request Options — Optional batching, SSL certificate verification, HTTP proxy, and request timeout settings.
- WP Amelia API Key credential (required) — Provides the Amelia API key and configured admin AJAX URL used for the request.
Output shape
A single response item from the Amelia API.
The provided source does not show operation-specific response parsing or a more precise response schema.
Examples
Example 1: Validate an appointment coupon
Use the coupon code, count, ID, type appointment, and user JSON to check whether the coupon is valid for that user.
