# create

URL: /business/nouns/coupon/create · Id: `verb:Coupon.create` · Call: `await $.Coupon.create({ … })` (SDK) or the `do` tool at `https://api.sb/mcp`. Inputs says what to pass, Outputs what returns, When it waits who approves.

> Creates a Coupon.

Create makes a new [Coupon](/business/nouns/coupon) from the inputs below. It is inherited: every [Noun](/business/nouns/noun) has `get`, `list`, `create`, `update` and `delete`.

## Inputs
| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `percentOff` | `number` | No | The percent taken off each charge it applies to; set this or `amountOff`. Never randomized. |
| `amountOff` | `money` | No | The fixed amount taken off each charge it applies to. Never randomized. |
| `duration` | `string` | Yes | How long it applies: `once`, `repeating` for `months`, or `forever`. |
| `months` | `integer` | No | How many months a `repeating` Coupon applies. |
| `code` | `string` | No | The promotion code a buyer types at checkout, when the Coupon has one. |
| `redeemBy` | `datetime` | No | The last moment it can be redeemed. |
| `maxRedemptions` | `integer` | No | How many times it can be redeemed across all Customers. |

## Outputs
| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `coupon` | [Coupon](/business/nouns/coupon) | Yes | The Coupon. |

## Effects
- Emits `Coupon.created`.
- Two-way: `try`, `send`, `do`.

## Refuses when
| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | [Coupon.create](/business/nouns/coupon/create) |

## When it waits
| Gate | Default |
| --- | --- |
| Decision class | Low: two-way, nothing at stake |
| [Delay window](/systems/trust-and-governance/controls/one-way-windows) | None: it runs once review passes. |
| Limit | The call [Limit](/business/nouns/limit) of the [Permission](/business/nouns/permission) it runs under. |
| Over the Limit | It waits `pending` for an [Approval](/business/nouns/approval) from the [Founder](/agents/founding/founder). Approved, it runs; refused, it ends `refused` with [`limit-exceeded`](/code/api/errors/limit-exceeded); unanswered by its deadline, it ends `canceled`. |

## Example

**Ask**

```text
Add a coupon to QuietCopy.
```

**API**

```bash
curl -X POST https://api.sb/quietcopy.com/coupons \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"duration":"once"}'
```

```json
{
  "api": "https://api.sb/quietcopy.com",
  "coupon": {
    "$id": "https://api.sb/quietcopy.com/coupons/coupon_1",
    "$type": "Coupon",
    "duration": "once"
  },
  "action": {
    "$id": "https://api.sb/quietcopy.com/actions/action_1",
    "operation": "Coupon.create",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/quietcopy.com/actions/action_1"
  }
}
```

**SDK**

```ts
import { $ } from 'startup-builder'

const coupon = await $.Coupon.create({ duration: 'once' })
```

**CLI**

```bash
npx startup-builder do Coupon.create --json '{"duration":"once"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Coupon.create({ duration: 'once' })"
  }
}
```

Next: [`Workflow.create`](/business/nouns/workflow/create) (in `guide:automate-a-workflow`).

Guides that call it: [Automate a workflow](/workflows/automate-a-workflow), [Give a launch discount](/products/offers/give-a-launch-discount).