# Billing and plan

> widar marks AI output for the EU AI Act and California's AI Transparency Act: an invisible watermark and a signed C2PA credential on text, images, audio and video, in one API, by Bynn Intelligence.

Documentation index: https://widar.com/llms.txt

The examples in these docs use invented companies, such as Lumen Labs B.V., and invented values: none is a real check, mark, signature or certificate.

Section: API reference. URL: https://widar.com/docs/billing

Your plan, usage, credit, receipts and company details, by API. Plans start by Stripe Checkout; an agent can pay by a Checkout link or a Shared Payment Token.

Updated December 4, 2026

Every workspace starts on Free: live keys mark and sign up to 1,000 C2PA-only files and 500 watermarked files a month. Business bills $99 a month with 50,000 files included and draws each file past them from prepaid credit; Volume bills its monthly minimum, spent at its prices. Test mode is never billed. Prices are on [Pricing](https://widar.com/docs/pricing); agent payments on [Sign up and pay](https://widar.com/docs/agents).

## List payments by agents

Every payment, plan change and top-up an AI agent made, by a Checkout link or a Shared Payment Token, with the agent named.

`GET /v1/agent_payments`. Who may: Owner, Admin and Billing. CLI: `widar payments list [--state <paid|awaiting_confirmation|declined|expired>]`. MCP tool: `list_agent_payments`.

**Parameters**
- `state` (enum): The state. One of `paid`, `awaiting_confirmation`, `declined`, `expired`.

**Returns** list of agent payments: Each payment, newest first: the agent (an AI agent member, or a keyless agent), the method, what it bought, the amount, its state, and for a token its grant's seller, limit and expiry.

API:

```bash
curl -X GET https://api.widar.com/v1/agent_payments \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar payments list
```

MCP tool `list_agent_payments`:

```json
{
  "name": "list_agent_payments",
  "arguments": {}
}
```

## Read billing and plan

The plan or the Enterprise contract and its period, what it includes of each unit and how much is used, the credit balance, the card, auto reload, the company on receipts and how agents may pay. Owners, admins and billing members.

`GET /v1/billing`. Who may: Owner, Admin and Billing. CLI: `widar billing get`. MCP tool: `get_billing`.

**Parameters**

**Returns** billing: Everything about how the workspace pays, as it is now.

API:

```bash
curl -X GET https://api.widar.com/v1/billing \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar billing get
```

MCP tool `get_billing`:

```json
{
  "name": "get_billing",
  "arguments": {}
}
```

## List the plans and prices

The four plans (Free, Business, Volume, Enterprise), the price of a file, a minute or a million tokens on each line (C2PA only, the watermark on your servers, the watermark in widar's cloud) on Business and on Volume, the add-ons and what is free. Certificates and checks of widar's own marks are free. Enterprise has no public price. Public: no key or account needed; with a key, GET /v1/plans answers the same.

`GET /v1/public/plans`. Who may: Owner, Admin, Compliance, Developer, Viewer and Billing. CLI: `widar plans list`. MCP tool: `plans_list`.

**Parameters**

**Returns** plans: The plans with the files each includes, the prices per line on Business and Volume, Volume's minimum, the add-ons and what is free.

API:

```bash
curl -X GET https://api.widar.com/v1/public/plans \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar plans list
```

MCP tool `plans_list`:

```json
{
  "name": "plans_list",
  "arguments": {}
}
```

## Read usage

Units by kind and by what paid for them, day by day, with their cost, for this period, the last one or 90 days; and the workspace's limits with their 7-day peak. Owners, admins and billing members.

`GET /v1/usage`. Who may: Owner, Admin and Billing. CLI: `widar usage get [--range <period|last_period|90d>] [--charged-only]`. MCP tool: `get_usage`.

**Parameters**
- `range` (enum): The range. One of `period`, `last_period`, `90d`.
- `charged_only` (boolean): The charged only.

**Returns** usage: The units, the days, the cost and the limits; with charged_only, only the units charged from credit.

API:

```bash
curl -X GET https://api.widar.com/v1/usage \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar usage get
```

MCP tool `get_usage`:

```json
{
  "name": "get_usage",
  "arguments": {}
}
```

## List receipts

Every payment: plan fees, top-ups and auto reloads, newest first, each with its lines. Owners, admins and billing members.

`GET /v1/receipts`. Who may: Owner, Admin and Billing. CLI: `widar receipts list [--limit <n>] [--status <paid|refunded|failed>] [--from <yyyy-mm-dd>] [--to <yyyy-mm-dd>]`. MCP tool: `list_receipts`.

**Parameters**
- `limit` (integer): The limit. At least 1, at most 100.
- `status` (enum): The status. One of `paid`, `refunded`, `failed`.
- `from` (string): The from.
- `to` (string): The to.

**Returns** list of receipts: The receipts, newest first; a failed one carries the bank's reason.

API:

```bash
curl -X GET https://api.widar.com/v1/receipts \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar receipts list
```

MCP tool `list_receipts`:

```json
{
  "name": "list_receipts",
  "arguments": {}
}
```

## Download a receipt

One receipt as a file, with the company details it was issued to.

`GET /v1/receipts/{receipt_id}/file`. Who may: Owner, Admin and Billing. CLI: `widar receipts download <receipt_id> [--output <file>]`. MCP tool: `download_receipt`.

**Parameters**
- `receipt_id` (id (rcp_), required): The receipt's id. In the path.

**Returns** receipt file: The receipt, ready to save.

API:

```bash
curl -X GET https://api.widar.com/v1/receipts/rcp_7Kq2Xw9/file \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar receipts download rcp_7Kq2Xw9
```

MCP tool `download_receipt`:

```json
{
  "name": "download_receipt",
  "arguments": {
    "receipt_id": "rcp_7Kq2Xw9"
  }
}
```

## List changes to billing

Each change to the plan, the way to pay, the card, auto reload, the add-ons and the budgets: who, when, before and after. Owners, admins and billing members.

`GET /v1/billing/activity`. Who may: Owner, Admin and Billing. CLI: `widar billing activity [--limit <n>]`. MCP tool: `list_billing_activity`.

**Parameters**
- `limit` (integer): The limit. At least 1, at most 200.

**Returns** list of billing changes: The changes, newest first.

API:

```bash
curl -X GET https://api.widar.com/v1/billing/activity \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar billing activity
```

MCP tool `list_billing_activity`:

```json
{
  "name": "list_billing_activity",
  "arguments": {}
}
```

## Preview a plan change

What a move to Business or Volume would do before it is made: when it takes effect, what is charged today with its tax, the credit that comes back, and what the workspace gains or loses.

`GET /v1/billing/plan/preview`. Who may: Owner, Admin and Billing. CLI: `widar plan preview --plan <business|volume>`. MCP tool: `preview_plan_change`.

**Parameters**
- `plan` (enum, required): The plan. One of `business`, `volume`, `enterprise`.

**Returns** plan change preview: When it takes effect, due today (fee, tax, total), credit back, the balance after, and the gains and losses.

API:

```bash
curl -X GET "https://api.widar.com/v1/billing/plan/preview?plan=business" \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar plan preview --plan business
```

MCP tool `preview_plan_change`:

```json
{
  "name": "preview_plan_change",
  "arguments": {
    "plan": "business"
  }
}
```

## Change the plan

Move from Free to Business or Volume, or between them. The month's fee or minimum is paid on a secure payment page and the plan starts once paid; moving back from Volume to Business waits for the period's end and charges nothing today. Enterprise is arranged with sales: book a meeting.

`POST /v1/billing/plan`. Who may: Owner, Admin and Billing. CLI: `widar plan change --plan <business|volume>`. MCP tool: `change_plan`.

**Parameters**
- `plan` (enum, required): The plan. One of `business`, `volume`, `enterprise`.

**Returns** plan change: The plan as changed, with the payment session that pays for it.

API:

```bash
curl -X POST https://api.widar.com/v1/billing/plan \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "plan": "business"
  }'
```

CLI:

```bash
widar plan change --plan business
```

MCP tool `change_plan`:

```json
{
  "name": "change_plan",
  "arguments": {
    "plan": "business"
  }
}
```

## Cancel the plan

The plan ends at the period's end and the workspace goes back to Free, with its 1,000 C2PA-only and 500 watermarked live files a month. Purchased credit stays.

`DELETE /v1/billing/plan`. Who may: Owner, Admin and Billing. CLI: `widar plan cancel`. MCP tool: `cancel_plan`.

**Parameters**

**Returns** billing: Billing, with the plan ending at the period's end.

API:

```bash
curl -X DELETE https://api.widar.com/v1/billing/plan \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar plan cancel
```

MCP tool `cancel_plan`:

```json
{
  "name": "cancel_plan",
  "arguments": {}
}
```

## Keep the plan

Undo a cancellation or a downgrade waiting for the period's end, so the plan carries on as it is.

`POST /v1/billing/plan/resume`. Who may: Owner, Admin and Billing. CLI: `widar plan resume`. MCP tool: `resume_plan`.

**Parameters**

**Returns** billing: Billing, with nothing waiting.

API:

```bash
curl -X POST https://api.widar.com/v1/billing/plan/resume \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar plan resume
```

MCP tool `resume_plan`:

```json
{
  "name": "resume_plan",
  "arguments": {}
}
```

## Add credit

Buy credit from $5 to $10,000 on a secure payment page, which saves the card for auto reload. Credit pays for units past the plan's count and units priced per use, and lasts 12 months.

`POST /v1/billing/top_ups`. Who may: Owner, Admin and Billing. CLI: `widar credit add --amount <5-10000>`. MCP tool: `add_credit`.

**Parameters**
- `amount` (number, required): The amount. At least 5, at most 10,000.

**Returns** credit, paid: Billing, and the payment session that pays for the credit.

API:

```bash
curl -X POST https://api.widar.com/v1/billing/top_ups \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": "<amount>"
  }'
```

CLI:

```bash
widar credit add --amount <amount>
```

MCP tool `add_credit`:

```json
{
  "name": "add_credit",
  "arguments": {
    "amount": "<amount>"
  }
}
```

## Replace the card

Add or replace the card on a secure payment page; widar never sees the number. It pays the plan, auto reloads and a failed payment's retry from then on.

`POST /v1/billing/card`. Who may: Owner, Admin and Billing. CLI: `widar billing card replace`. MCP tool: `replace_card`.

**Parameters**

**Returns** card, saved: Billing, and the payment session that saves the card.

API:

```bash
curl -X POST https://api.widar.com/v1/billing/card \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar billing card replace
```

MCP tool `replace_card`:

```json
{
  "name": "replace_card",
  "arguments": {}
}
```

## Remove the card

Removes the card on file. Auto reload turns off, and the plan's next fee needs a card again.

`DELETE /v1/billing/card`. Who may: Owner, Admin and Billing. CLI: `widar billing card remove`. MCP tool: `remove_card`.

**Parameters**

**Returns** billing: Billing, with no card and auto reload off.

API:

```bash
curl -X DELETE https://api.widar.com/v1/billing/card \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar billing card remove
```

MCP tool `remove_card`:

```json
{
  "name": "remove_card",
  "arguments": {}
}
```

## Change auto reload

Buy credit by itself when the balance falls below the threshold, up to a monthly cap, with the saved card. It turns off after three failed charges.

`PATCH /v1/billing/auto_reload`. Who may: Owner, Admin and Billing. CLI: `widar billing auto-reload [--enabled <true|false>] [--threshold <usd>] [--amount <usd>] [--monthly-cap <usd>]`. MCP tool: `update_auto_reload`.

**Parameters**
- `enabled` (boolean): The enabled.
- `threshold` (number): The threshold. At least 5, at most 1,000.
- `amount` (number): The amount. At least 10, at most 5,000.
- `monthly_cap` (number): The monthly cap. At least 10, at most 50,000.

**Returns** billing: Billing, with auto reload changed.

API:

```bash
curl -X PATCH https://api.widar.com/v1/billing/auto_reload \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar billing auto-reload
```

MCP tool `update_auto_reload`:

```json
{
  "name": "update_auto_reload",
  "arguments": {}
}
```

## Change the low-balance email

One email to owners and billing members when the balance falls below an amount, at most once a day. None turns it off.

`PATCH /v1/billing/low_balance_email`. Who may: Owner, Admin and Billing. CLI: `widar billing low-balance-email --amount <usd|none>`. MCP tool: `set_low_balance_email`.

**Parameters**
- `amount` (number, required): The amount. At least 1, at most 100,000. `null` clears it.

**Returns** billing: Billing, with the low-balance email changed.

API:

```bash
curl -X PATCH https://api.widar.com/v1/billing/low_balance_email \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": "<amount>"
  }'
```

CLI:

```bash
widar billing low-balance-email --amount <amount>
```

MCP tool `set_low_balance_email`:

```json
{
  "name": "set_low_balance_email",
  "arguments": {
    "amount": "<amount>"
  }
}
```

## Change company details

The company, billing email, VAT or tax number, address and purchase order printed on every receipt from now on.

`PATCH /v1/billing/company`. Who may: Owner, Admin and Billing. CLI: `widar billing company [--name <text>] [--billing-email <email>] [--tax-id <text>] [--registration-number <text>] [--contact-name <text>] [--regulated <true|false>] [--address-line1 <text>] [--address-line2 <text>] [--city <text>] [--state-region <text>] [--postal-code <text>] [--country <CC>] [--po <text>]`. MCP tool: `update_billing_company`.

**Parameters**
- `name` (string): The name. At most 120 characters.
- `billing_email` (string or email): The billing email.
- `tax_id` (string): The tax id. At most 30 characters.
- `address_line1` (string): The address line1. At most 120 characters.
- `address_line2` (string): The address line2. At most 120 characters.
- `city` (string): The city. At most 80 characters.
- `postal_code` (string): The postal code. At most 20 characters.
- `country` (string): The country.
- `po` (string): The po. At most 60 characters.
- `state_region` (string): The state region. At most 80 characters.
- `registration_number` (string): The registration number. At most 40 characters.
- `contact_name` (string): The contact name. At most 120 characters.
- `regulated` (boolean): The regulated.

**Returns** billing: Billing, with the company details changed.

API:

```bash
curl -X PATCH https://api.widar.com/v1/billing/company \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar billing company
```

MCP tool `update_billing_company`:

```json
{
  "name": "update_billing_company",
  "arguments": {}
}
```

## Choose who pays

Pay from this workspace, or from another one whose plan, credit and bill this one then uses. You must be owner or billing in both.

`PUT /v1/billing/billing_workspace`. Who may: Owner, Admin and Billing. CLI: `widar billing set-payer --workspace-id <workspace_id>`. MCP tool: `set_billing_workspace`.

**Parameters**
- `workspace_id` (string, required): The workspace id.

**Returns** billing: Billing, paid from the chosen workspace.

API:

```bash
curl -X PUT https://api.widar.com/v1/billing/billing_workspace \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workspace_id": "<workspace_id>"
  }'
```

CLI:

```bash
widar billing set-payer --workspace-id <workspace_id>
```

MCP tool `set_billing_workspace`:

```json
{
  "name": "set_billing_workspace",
  "arguments": {
    "workspace_id": "<workspace_id>"
  }
}
```

## List times to meet sales

The times widar's sales team offers for a 30-minute meeting over the next two weeks, for Enterprise, per outcome pricing or volume. Owners, admins and billing members.

`GET /v1/sales_meetings/slots`. Who may: Owner, Admin and Billing. CLI: `widar sales slots [--time-zone <zone>]`. MCP tool: `list_sales_slots`.

**Parameters**
- `time_zone` (string): The time zone. At most 64 characters.

**Returns** times to meet sales: The offered times, in UTC, with the time zone to show them in.

API:

```bash
curl -X GET https://api.widar.com/v1/sales_meetings/slots \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar sales slots
```

MCP tool `list_sales_slots`:

```json
{
  "name": "list_sales_slots",
  "arguments": {}
}
```

## Book a meeting with sales

Book one of the offered times with widar's sales team, with who attends and what you need: per outcome pricing, volume, contract terms or products. An invitation goes to everyone. Owners, admins and billing members.

`POST /v1/sales_meetings`. Who may: Owner, Admin and Billing. CLI: `widar sales book --starts-at <iso> --time-zone <zone> --attendees <name:email>,... --topics <per_outcome|volume|contract|products>,... [--documents-a-month <n>] [--cases-a-month <n>] [--products <name>,...] [--notes <text>]`. MCP tool: `book_sales_meeting`.

**Parameters**
- `starts_at` (string, required): The starts at.
- `time_zone` (string, required): The time zone. At most 64 characters.
- `attendees` (array of object, required): The attendees. At most 8 items.
- `topics` (array of enum, required): The topics. One of `per_outcome`, `volume`, `contract`, `products`. At most 4 items.
- `documents_a_month` (integer): outputs a month, across every system At most 10,000,000,000. `null` clears it.
- `cases_a_month` (integer): systems to mark At most 10,000,000. `null` clears it.
- `products` (array of string): The products. At most 12 items.
- `notes` (string): The notes. At most 1,000 characters.

**Returns** sales meeting: The meeting, booked, with its host and the invitation's attendees.

API:

```bash
curl -X POST https://api.widar.com/v1/sales_meetings \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "starts_at": "<starts_at>",
    "time_zone": "<time_zone>",
    "attendees": "<attendees>",
    "topics": "<topics>"
  }'
```

CLI:

```bash
widar sales book \
  --starts-at <starts_at> \
  --time-zone <time_zone> \
  --attendees <attendees> \
  --topics <topics>
```

MCP tool `book_sales_meeting`:

```json
{
  "name": "book_sales_meeting",
  "arguments": {
    "starts_at": "<starts_at>",
    "time_zone": "<time_zone>",
    "attendees": "<attendees>",
    "topics": "<topics>"
  }
}
```

## List meetings with sales

The workspace's meetings with widar's sales team, the next first: when, who attends, what was asked for and who hosts it.

`GET /v1/sales_meetings`. Who may: Owner, Admin and Billing. CLI: `widar sales meetings`. MCP tool: `list_sales_meetings`.

**Parameters**

**Returns** list of sales meetings: The meetings, the next first.

API:

```bash
curl -X GET https://api.widar.com/v1/sales_meetings \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar sales meetings
```

MCP tool `list_sales_meetings`:

```json
{
  "name": "list_sales_meetings",
  "arguments": {}
}
```

## Ask the owners for a plan

Any member can ask the workspace's owners, admins and billing members to choose a plan or a higher one, with a short note. They are told by email and see it on the Plan page.

`POST /v1/upgrade_requests`. Who may: Owner, Admin, Compliance, Developer, Viewer and Billing. CLI: `widar upgrade-requests create --feature <plan|documents|keys|members|brand_kits|single_sign_on|custom_domain> [--note <text>]`. MCP tool: `create_upgrade_request`.

**Parameters**
- `feature` (enum, required): What the request is for: plan (any plan, for live work), or documents, keys, members, brand_kits, single_sign_on or custom_domain One of `plan`, `documents`, `keys`, `members`, `brand_kits`, `single_sign_on`, `custom_domain`.
- `note` (string): The note. At most 280 characters.

**Returns** upgrade request: The request, open, with the plan that covers it.

API:

```bash
# Members only: a signed-in member makes this call, in the console or with the CLI signed in (widar auth login). An API key is refused with 403 key_scope_denied.
curl -X POST https://api.widar.com/v1/upgrade_requests \
  -H "Content-Type: application/json" \
  -d '{
    "feature": "plan"
  }'
```

CLI:

```bash
widar upgrade-requests create --feature plan
```

MCP tool `create_upgrade_request`:

```json
{
  "name": "create_upgrade_request",
  "arguments": {
    "feature": "plan"
  }
}
```

## List upgrade requests

The members' requests for a plan or a higher one, open first, with who asked, for what and the plan that covers it. Owners, admins and billing members.

`GET /v1/upgrade_requests`. Who may: Owner, Admin and Billing. CLI: `widar upgrade-requests list [--status <open|closed>]`. MCP tool: `list_upgrade_requests`.

**Parameters**
- `status` (enum, default "open"): The status. One of `open`, `closed`.

**Returns** list of upgrade requests: The requests, newest first.

API:

```bash
curl -X GET https://api.widar.com/v1/upgrade_requests \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar upgrade-requests list
```

MCP tool `list_upgrade_requests`:

```json
{
  "name": "list_upgrade_requests",
  "arguments": {}
}
```

## Dismiss an upgrade request

Close a member's request without changing the plan. A plan that covers a request closes it by itself. Owners, admins and billing members.

`POST /v1/upgrade_requests/{request_id}/dismiss`. Who may: Owner, Admin and Billing. CLI: `widar upgrade-requests dismiss <request_id>`. MCP tool: `dismiss_upgrade_request`.

**Parameters**
- `request_id` (id (upr_), required): The request's id. In the path.

**Returns** upgrade request: The request, dismissed.

API:

```bash
# Members only: a signed-in member makes this call, in the console or with the CLI signed in (widar auth login). An API key is refused with 403 key_scope_denied.
curl -X POST https://api.widar.com/v1/upgrade_requests/upr_7Kq2Xw9/dismiss
```

CLI:

```bash
widar upgrade-requests dismiss upr_7Kq2Xw9
```

MCP tool `dismiss_upgrade_request`:

```json
{
  "name": "dismiss_upgrade_request",
  "arguments": {
    "request_id": "upr_7Kq2Xw9"
  }
}
```

## Confirm an agent's payment

Let a payment over the agent payment cap go through. The receipt goes to the owners and billing members.

`POST /v1/agent_payments/{payment_id}/confirm`. Who may: Owner, Admin and Billing. CLI: `widar payments confirm <payment_id>`. MCP tool: `confirm_agent_payment`.

**Parameters**
- `payment_id` (id (apy_), required): The payment's id. In the path.

**Returns** agent payment: The payment, paid, with its receipt number and who confirmed it.

API:

```bash
curl -X POST https://api.widar.com/v1/agent_payments/apy_7Kq2Xw9/confirm \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar payments confirm apy_7Kq2Xw9
```

MCP tool `confirm_agent_payment`:

```json
{
  "name": "confirm_agent_payment",
  "arguments": {
    "payment_id": "apy_7Kq2Xw9"
  }
}
```

## Decline an agent's payment

Refuse a payment over the agent payment cap. Nothing is charged and the agent is told.

`POST /v1/agent_payments/{payment_id}/decline`. Who may: Owner, Admin and Billing. CLI: `widar payments decline <payment_id>`. MCP tool: `decline_agent_payment`.

**Parameters**
- `payment_id` (id (apy_), required): The payment's id. In the path.

**Returns** agent payment: The payment, declined, with who declined it.

API:

```bash
curl -X POST https://api.widar.com/v1/agent_payments/apy_7Kq2Xw9/decline \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar payments decline apy_7Kq2Xw9
```

MCP tool `decline_agent_payment`:

```json
{
  "name": "decline_agent_payment",
  "arguments": {
    "payment_id": "apy_7Kq2Xw9"
  }
}
```

## Change how agents may pay

Whether the workspace's agents may pay by Shared Payment Token, the most one payment charges without a member's confirmation, and whether an agent may change the plan.

`PATCH /v1/settings/billing`. Who may: Owner, Admin and Billing. CLI: `widar settings billing set [--agent-payments <on|off>] [--agent-payment-cap <usd>] [--agent-plan-changes <change_and_top_up|top_up_only>]`. MCP tool: `update_billing_settings`.

**Parameters**
- `agent_payments` (boolean): The agent payments.
- `agent_payment_cap` (number): The agent payment cap. At least 1, at most 100,000.
- `agent_plan_changes` (enum): The agent plan changes. One of `change_and_top_up`, `top_up_only`.

**Returns** billing: Billing, with the agent payment settings changed.

API:

```bash
curl -X PATCH https://api.widar.com/v1/settings/billing \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar settings billing set
```

MCP tool `update_billing_settings`:

```json
{
  "name": "update_billing_settings",
  "arguments": {}
}
```
