Skip to main content
Discount codes apply a percentage or fixed reduction to paid bookings. See the API reference for the full resource shape.

Create a discount code

neetocal discount-codes create \
  --code SUMMER25 --kind percentage --value 25 \
  --meeting-ids mtg_abc,mtg_def --expires-at 2026-09-01
FlagTypeRequiredDefaultDescription
--codestringYesDiscount code
--expires-atstringExpiration date
--kindstringYesCode kind (percentage, fixed)
--meeting-idsstringComma-separated meeting SIDs
--valuefloat64Yes0Discount value
Use --kind percentage with a --value between 0 and 100, or --kind fixed with an amount in the workspace currency. In --quiet mode this prints the new code’s identifier.
Sample output (--json)
{
  "data": {
    "message": "Discount code creation successful",
    "discount_code": {
      "id": "d6ccef53-f369-4b54-a818-6e93e2a0455c",
      "code": "SUMMER25",
      "value": 25,
      "kind": "percentage",
      "redeems_limit": 100,
      "redeems_limit_by_email": 10,
      "expires_at": "2026-09-01T00:00:00.000Z",
      "days_valid_after_first_use_per_client": null,
      "meetings": [
        ["mtg_abc", "Product demo"]
      ]
    }
  }
}
Mirrors Create discount code in the API.