List discount codes
This command lists the discount codes in your workspace. Use this when you need a code’s id before updating or deleting it.- Each row carries
redeems_count, the number of times the code has been used on a booking that counts as redeemed. --codematches codes containing the text you pass;--kindmatches exactly. Passing both narrows to codes that satisfy each.
Create a discount code
This command creates a new discount code. Use this when you want to offer percentage or fixed-amount discounts on specific meetings.- Use
--kind percentagewith a--valuefrom 1 to 100, or--kind fixedwith a flat amount up to 100000. A fixed amount is charged in your workspace’s default currency, which the response reports ascurrency; a percentage code returnscurrency: null, because a percentage is not an amount of money. --expires-attakes a date such as2026-12-31. The API stores it as an ISO 8601 timestamp.--meeting-idsare meeting SIDs frommeetings list, not UUIDs. In--quietmode, the command prints the new code’s identifier.--json-filetakes an object whose keys are the fields the API accepts:code,kind,value,expires_at,meeting_ids,allowed_emails,redeems_limit,redeems_limit_by_emailanddays_valid_after_first_use_per_client. The last four have no flag of their own, so a file is the only way to set them. Any flag you also pass wins over the file.
Sample output (--json)
Update a discount code
This command changes an existing discount code. Use this when you need to extend an expiry date, change a value, or point a code at different scheduling links.<id>- Discount code UUID
- The id is the discount code UUID from
discount-codes list, not the code itself. - Only the flags you pass are sent, so omitting
--valueleaves the existing discount untouched rather than resetting it.
Delete a discount code
This command removes a discount code. Use this when a code should stop working immediately.<id>- Discount code UUID
- The code is disabled straight away and removed shortly afterwards, so it stops applying to new bookings as soon as the command returns.
discount-codes listreturns only enabled codes, so a deleted code is gone from the list on the very next call. A script can delete and then list to confirm without waiting.- Bookings that already redeemed the code keep their discount.