Skip to main content
Discount codes apply either a percentage or fixed reduction to paid bookings. For fields and response details, see the API reference.

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.
  • --code matches codes containing the text you pass; --kind matches 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 percentage with a --value from 1 to 100, or --kind fixed with a flat amount up to 100000. A fixed amount is charged in your workspace’s default currency, which the response reports as currency; a percentage code returns currency: null, because a percentage is not an amount of money.
  • --expires-at takes a date such as 2026-12-31. The API stores it as an ISO 8601 timestamp.
  • --meeting-ids are meeting SIDs from meetings list, not UUIDs. In --quiet mode, the command prints the new code’s identifier.
  • --json-file takes an object whose keys are the fields the API accepts: code, kind, value, expires_at, meeting_ids, allowed_emails, redeems_limit, redeems_limit_by_email and days_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.
Required arguments:
  • <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 --value leaves 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.
Required arguments:
  • <id> - Discount code UUID
Deleting a discount code cannot be undone. There is no restore command; a code you remove by mistake has to be created again.
  • 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 list returns 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.