# Bill commands: approve, pay

URL: /code/cli/bill/verbs · Id: `page:code/cli/bill/verbs`

> The Bill Verbs approve, pay as CLI commands, with inputs, result, refusals and an example.

Reference for [Bill](/business/nouns/bill), one group of [Bill commands](/code/cli/bill).

### Bill.approve
Approve accepts a coded Bill for payment within the approver’s Mandate and schedules it for its due date. [Verb page](/business/nouns/bill/approve?interface=cli).

```text
npx startup-builder do Bill.approve --json '<input>' [--try | --send | --do]
```

Emits [`Bill.approved`](/business/events/Bill.approved).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `bill` | [Bill](/business/nouns/bill) | Yes | The coded Bill. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `bill` | [Bill](/business/nouns/bill) | Yes | The approved Bill, scheduled for its due date. |

**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. | None. |

**Example**

```bash
npx startup-builder do Bill.approve --json '{"bill":"bill_Zorj7Zkbtc"}'
```

### Bill.pay
Pay sends an approved Bill’s amount to its Organization on the due date and reconciles the payment to Entries. [Verb page](/business/nouns/bill/pay?interface=cli).

```text
npx startup-builder do Bill.pay --json '<input>' [--try | --send | --do]
```

Emits [`Bill.paid`](/business/events/Bill.paid).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `bill` | [Bill](/business/nouns/bill) | Yes | The approved Bill. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `transaction` | [Transaction](/business/nouns/transaction) | Yes | The payment Transaction. |
| `bill` | [Bill](/business/nouns/bill) | Yes | The Bill, now paid. |

**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. | None. |

**Example**

```bash
npx startup-builder do Bill.pay --json '{"bill":"bill_Zorj7Zkbtc"}'
```