# Sell a service

URL: /products/service/sell-a-service · Id: `guide:sell-a-service`

> Say "sell renewal outreach as a service at $199 a month" and get a Service with its promise, an Offer, and an acceptance step before each delivery bills.

A [Service](/business/nouns/service) sells an outcome: the work done, with a remedy when it is not. Your agents deliver it, the customer accepts each delivery, and the [Offer](/business/nouns/offer) bills.

Needs: [Startup](/business/nouns/startup)

**Before real money moves**

- Who says yes: You. Your agent shows you the run and waits for your [Approval](/business/nouns/approval).
- You leave the chat: Once, at Stripe: to confirm who you are and add the bank account payouts land in.

## What you get
- 1 service with its promise and what you owe if you miss it (Service)
- 1 Offer at $199 a month (Offer)
- 1 Order per delivery, with an acceptance step (Order)
- 1 agent that does the work (Role)
- 1 Portal page where the customer follows each delivery (Portal)

## Your agent does
**For agents**

- Guide: `guide:sell-a-service`, status `beta`. Page: [/products/service/sell-a-service.md](/products/service/sell-a-service.md).
- Approval: ask the founder first. Show the run, then wait for their Approval; a refusal ends it.
- Leaves the chat: Once, at Stripe: to confirm who you are and add the bank account payouts land in.
- Needs first: [Startup](/business/nouns/startup).
- 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 | [`Service.create`](/business/nouns/service/create) (`verb:Service.create`) | `name` string, required: example `"Renewal outreach"`; `promise` text, required: example `"Every tenant hears about their renewal 90 days ahead, or that month is free."` | `service` Service |
| 2 | [`Offer.create`](/business/nouns/offer/create) (`verb:Offer.create`) | `price` money, required: example `{"amount":199,"currency":"USD"}`; `terms` text: example `"Monthly, billed in advance. A missed notice makes that month free."`; `interval` string: example `"month"` | `offer` Offer |
| 3 | [`Offer.publish`](/business/nouns/offer/publish) (`verb:Offer.publish`) | `offer` Offer (an id), required: the `$id` step 2 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": 199,
      "currency": "USD"
    },
    "interval": "month",
    "terms": "Monthly, billed in advance. A missed notice makes that month free."
  },
  "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 “Have a person check every notice before it goes out”, or “Add a $499 tier for 500 units”.

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

Ask:

```text
Sell renewal outreach as a service at $199 a month.
Do the work for my customers and charge monthly?
Turn this into a done-for-you service.
```

API:

```bash
# 1. Service.create
curl -X POST https://api.sb/leaseline.app/services \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Renewal outreach","promise":"Every tenant hears about their renewal 90 days ahead, or that month is free."}'

# 2. 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":199,"currency":"USD"},"interval":"month","terms":"Monthly, billed in advance. A missed notice makes that month free."}' | jq -r '.offer["$id"] | split("/") | last')

# 3. 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'

await $.Service.create({ name: 'Renewal outreach', promise: 'Every tenant hears about their renewal 90 days ahead, or that month is free.' })
const offer = await $.Offer.create({ price: { amount: 199, currency: 'USD' }, interval: 'month', terms: 'Monthly, billed in advance. A missed notice makes that month free.' })
await $.Offer.publish({ offer: offer.$id })
```

CLI:

```bash
npx startup-builder do Service.create --json '{"name":"Renewal outreach","promise":"Every tenant hears about their renewal 90 days ahead, or that month is free."}'
OFFER=$(npx startup-builder do Offer.create --json '{"price":{"amount":199,"currency":"USD"},"interval":"month","terms":"Monthly, billed in advance. A missed notice makes that month free."}' | jq -r '.offer["$id"] | split("/") | last')
npx startup-builder do Offer.publish --json '{"offer":"'"$OFFER"'"}'
```

MCP:

```json
{
  "name": "do",
  "arguments": {
    "code": "await $.Service.create({ name: 'Renewal outreach', promise: 'Every tenant hears about their renewal 90 days ahead, or that month is free.' })\nconst offer = await $.Offer.create({ price: { amount: 199, currency: 'USD' }, interval: 'month', terms: 'Monthly, billed in advance. A missed notice makes that month free.' })\nreturn await $.Offer.publish({ offer: offer.$id })"
  }
}
```

## Change it
- Have a person check every notice before it goes out.
- Add a $499 tier for 500 units.
- Charge per renewal signed instead.

## Under the hood
- Systems: [Service delivery](/systems/service-delivery), [Billing](/systems/billing)
- Nouns: [Service](/business/nouns/service), [Offer](/business/nouns/offer), [Order](/business/nouns/order), [Outcome Contract](/business/nouns/outcome-contract)
- Events: `Service.created`, `Offer.created`, [`Offer.published`](/business/events/Offer.published)
- Stripe objects: `Product`, `Price`