Delete coupons
[!note] Management API endpoints are not meant to be used in real-time integrations that directly serve your end users. Rate limit: 3 requests per second.
Deletes all the coupons matching the specified criteria.
Request
- Base URLhttps://yourbaseurl.talon.one
- Auth
- API key in header Authorization
- or API key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The ID of the Application. It is displayed in your Talon.One deployment URL.
The ID of the campaign. It is displayed in your Talon.One deployment URL.
Query parameters
Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters.
Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- expired: Matches coupons in which the expiration date is set and in the past.
- validNow: Matches coupons in which start date is null or in the past and expiration date is null or in the future.
- validFuture: Matches coupons in which start date is set and in the future.
Filter results by batches of coupons
- true: only coupons where usageCounter < usageLimit will be returned.
- false: only coupons where usageCounter >= usageLimit will be returned.
Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code.
Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field.
Filter results to an exact case-insensitive matching against the coupon code
Response
No Content
Changes
No recorded changes to this operation across all 2 revisions of this API.