Coupons
Create coupons asynchronously
[!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.
Create up to 5,000,000 coupons asynchronously. You should typically use this enpdoint when you create at least 20,001 coupons. You receive an email when the creation is complete.
If you want to create less than 20,001 coupons, you can use the Create coupons endpoint.
post/v1/applications/{applicationId}/campaigns/{campaignId}/coupons_async
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
applicationIdinteger required
The ID of the Application. It is displayed in your Talon.One deployment URL.
campaignIdinteger required
The ID of the campaign. It is displayed in your Talon.One deployment URL.
Request body
Example request
{
"usageLimit": 100,
"discountLimit": 30,
"reservationLimit": 45,
"startDate": "2020-01-24T14:15:22Z",
"expiryDate": "2023-08-24T14:15:22Z",
"numberOfCoupons": 200000,
"couponSettings": {
"validCharacters": [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"H",
"I",
"J",
"K",
"L",
"M",
"N",
"O",
"P",
"Q",
"R",
"S",
"T",
"U",
"V",
"W",
"X",
"Y",
"Z",
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
"couponPattern": "SUMMER-####-####"
}
}Response
OK
Example response
{
"batchId": "tqyrgahe"
}Changes
No recorded changes to this operation across all 2 revisions of this API.