# Add a yearly plan

URL: /products/offers/add-a-yearly-plan · Id: `guide:add-a-yearly-plan`

> Say "add a yearly plan at $290" and get a yearly Offer beside the monthly one, a toggle on the pricing page and revenue recognized month by month.

A yearly [Offer](/business/nouns/offer) sits beside the monthly one on the same [Product](/business/nouns/product). [Price](/business/nouns/price) it at ten months, so the customer gets two free and you get the cash up front.

Needs: [Charge monthly](/systems/finance/charge-monthly) · [Open a bank account](/systems/finance/open-a-bank-account)

**Before it runs**

- Who says yes: You. Your agent shows you the run and waits for your [Approval](/business/nouns/approval).
- You leave the chat: Never: it all happens in the chat.

## What you get
- 1 Offer with a $290 yearly Price (Offer)
- 1 yearly price on the same Stripe product (Price)
- 1 monthly and yearly toggle on the pricing page (Offer)
- 1 renewal notice 30 days before each yearly charge (Message)
- 12 monthly revenue lines per yearly payment, each counted as that month is earned (Entry)

## Your agent does
**For agents**

- Guide: `guide:add-a-yearly-plan`, status `live`. Page: [/products/offers/add-a-yearly-plan.md](/products/offers/add-a-yearly-plan.md).
- Approval: ask the founder first. Show the run, then wait for their Approval; a refusal ends it.
- Leaves the chat: never.
- Needs first: [Charge monthly](/systems/finance/charge-monthly), [Open a bank account](/systems/finance/open-a-bank-account).
- Run: call the steps in order, each through the API, SDK, CLI or MCP tab below; a later step passes the `$id` an earlier one returns. Each value marked example is the sample business’s: pass the founder’s own.

| Step | Verb | Inputs (type, required, this guide’s value) | Returns |
| --- | --- | --- | --- |
| 1 | [`Offer.create`](/business/nouns/offer/create) (`verb:Offer.create`) | `price` money, required: example `{"amount":290,"currency":"USD"}`; `terms` text: example `"Yearly, billed in advance. Cancel any time; access runs to the end of the year paid for."`; `interval` string: example `"year"` | `offer` Offer |
| 2 | [`Offer.publish`](/business/nouns/offer/publish) (`verb:Offer.publish`) | `offer` Offer (an id), required: the `$id` step 1 returns | `offer` Offer |

Returns: the last call answers with `offer` and its `action`, whose `status` is `done`, `pending` (waiting on an Approval or a Worker), `failed`, `canceled` or `refused`:

```json
{
  "api": "https://api.sb/leaseline.app",
  "offer": {
    "$id": "https://api.sb/leaseline.app/offers/offer_1",
    "$type": "Offer",
    "price": {
      "amount": 290,
      "currency": "USD"
    },
    "interval": "year",
    "terms": "Yearly, billed in advance. Cancel any time; access runs to the end of the year paid for."
  },
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/action_1",
    "operation": "Offer.publish",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/leaseline.app/actions/action_1"
  }
}
```

Next: offer “Show yearly first on the pricing page”, or “Give yearly customers priority support”.

Calls: `Offer.create` → `Offer.publish`

Ask:

```text
Add a yearly plan at $290.
Let customers pay once a year.
Offer an annual plan with two months free.
```

API:

```bash
# 1. Offer.create
OFFER=$(curl -X POST https://api.sb/leaseline.app/offers \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"price":{"amount":290,"currency":"USD"},"interval":"year","terms":"Yearly, billed in advance. Cancel any time; access runs to the end of the year paid for."}' | jq -r '.offer["$id"] | split("/") | last')

# 2. Offer.publish
curl -X POST https://api.sb/leaseline.app/offers/$OFFER/publish \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

SDK:

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

const offer = await $.Offer.create({ price: { amount: 290, currency: 'USD' }, interval: 'year', terms: 'Yearly, billed in advance. Cancel any time; access runs to the end of the year paid for.' })
await $.Offer.publish({ offer: offer.$id })
```

CLI:

```bash
OFFER=$(npx startup-builder do Offer.create --json '{"price":{"amount":290,"currency":"USD"},"interval":"year","terms":"Yearly, billed in advance. Cancel any time; access runs to the end of the year paid for."}' | jq -r '.offer["$id"] | split("/") | last')
npx startup-builder do Offer.publish --json '{"offer":"'"$OFFER"'"}'
```

MCP:

```json
{
  "name": "do",
  "arguments": {
    "code": "const offer = await $.Offer.create({ price: { amount: 290, currency: 'USD' }, interval: 'year', terms: 'Yearly, billed in advance. Cancel any time; access runs to the end of the year paid for.' })\nreturn await $.Offer.publish({ offer: offer.$id })"
  }
}
```

## Change it
- Show yearly first on the pricing page.
- Give yearly customers priority support.
- Move a monthly customer to yearly.

## Under the hood
- Systems: [Billing](/systems/billing), [Ledger](/systems/ledger)
- Nouns: [Offer](/business/nouns/offer), [Price](/business/nouns/price), [Subscription](/business/nouns/subscription)
- Events: `Offer.created`, [`Offer.published`](/business/events/Offer.published)
- Stripe objects: `Product`, `Price`, `Pricing Table`