{your-workspace} with your workspace’s subdomain. Learn how to find your subdomain in Identifying your subdomain.
Headers
X-Api-Key is used to authenticate requests using an API key. Provide your API key in this header to access protected endpoints. Refer to Authentication for more information.
Body
Code of the new code. This value should be unique.
"OFF50"
Value of the discount code. This value should be between 1-100 if kind is percentage.
50
Type of the discount code. Either fixed or percentage.
fixed, percentage "percentage"
Number of times the discount code can be redeemed. If left empty, the discount can be redeemed unlimited times.
10
Number of times the discount code can be redeemed by using a particular email. If left empty, the discount can be redeemed unlimited times.
5
Date upto which the discount code can be used. If left empty, discount code can be used forever. It should be of the format "DD-MM-YYYY"
"12-05-2025"
Number of days upto which the discount code can be used by a particular client after their first use. If left empty, the discount code can be used forever.
7
Array of allowed email addresses that can redeem the discount code. If left empty, the discount code can be redeemed using any email address.
Valid email address
[
"eve@bigbinary.com",
"charlie@bigbinary.com"
]Array of meeting SIDs in which the discount code can be used in. You can get sid in different ways. Visit the scheduling link page and then click on "Settings" > "Show SID". That will give you sid. The other way you can get sid is by listing scheduling links using our List all scheduling links API. Here you will see sid for each scheduling link.
["ktr8qu3", "xzfpwqg", "csesbjq", "c64h5yx"]