# Commission routes: pay

URL: /code/api/commission/verbs · Id: `page:code/api/commission/verbs`

> The Commission Verbs pay as api.sb routes, with inputs, result, refusals and an example.

Reference for [Commission](/business/nouns/commission), one group of [Commission routes](/code/api/commission).

### Commission.pay
Pay transfers a Commission’s earned, unpaid amount to the Partner’s connected account through Stripe. [Verb page](/business/nouns/commission/pay?interface=api).

```text
POST /{namespace}/commissions/{commission}/pay
```

Path: `commission`. Emits [`Commission.paid`](/business/events/Commission.paid).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `commission` | [Commission](/business/nouns/commission) | Yes | The Commission with an amount past its clawback window. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `commission` | [Commission](/business/nouns/commission) | Yes | The Commission, its `paid` raised by the transfer. |
| `transaction` | [Transaction](/business/nouns/transaction) | Yes | The transfer as the rail reports it. |

**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
curl -X POST https://api.sb/leaseline.app/commissions/commission_oYhMioUeCH/pay \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/leaseline.app",
  "commission": {
    "$id": "https://api.sb/leaseline.app/commissions/commission_oYhMioUeCH",
    "$type": "Commission",
    "rate": 1,
    "term": 1,
    "clawbackDays": 1
  },
  "transaction": {
    "$id": "https://api.sb/leaseline.app/transactions/txn_XoxtZe3CQI",
    "$type": "Transaction",
    "kind": "charge",
    "amount": {
      "amount": 29,
      "currency": "USD"
    }
  },
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/act_br07HsG8MG",
    "operation": "Commission.pay",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/leaseline.app/actions/act_br07HsG8MG"
  }
}
```