> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.neetocal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Discount codes

> Create discount codes from the terminal.

Discount codes apply a percentage or fixed reduction to paid bookings. See the [API reference](/api-reference/discount-codes/list) for the full resource shape.

## Create a discount code

```bash theme={"system"}
neetocal discount-codes create \
  --code SUMMER25 --kind percentage --value 25 \
  --meeting-ids mtg_abc,mtg_def --expires-at 2026-09-01
```

| Flag            | Type      | Required | Default | Description                   |
| --------------- | --------- | -------- | ------- | ----------------------------- |
| `--code`        | `string`  | Yes      |         | Discount code                 |
| `--expires-at`  | `string`  |          |         | Expiration date               |
| `--kind`        | `string`  | Yes      |         | Code kind (percentage, fixed) |
| `--meeting-ids` | `string`  |          |         | Comma-separated meeting SIDs  |
| `--value`       | `float64` | Yes      | `0`     | Discount 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.

```json Sample output (--json) theme={"system"}
{
  "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](/api-reference/discount-codes/create) in the API.
