# Remove the saved card and turn auto top-up off

> DELETE /v1/billing/auto-top-up/card. .

Source: https://legion.ambient.xyz/docs/api/billing/delete-auto-top-up-card

`DELETE https://api.legion.ambient.xyz/v1/billing/auto-top-up/card`

Authenticate with an API key: `Authorization: Bearer $LEGION_API_KEY`.

. Removes the card on file from Legion's Stripe account and turns auto top-up off; the amounts are
kept. Removing when there is no card answers the same. A charge already under way finishes. Requires
`billing.topup` (owners). Payments failing or not answering within 3 seconds is 503
`payments_unavailable`; retrying is safe.

## Responses

### 200

The auto top-up, now off and without a card.

- `enabled`, boolean, required
- `threshold`, Money, required
  - `amount_minor`, integer (int64), required: Amount in minor units (cents for USD).
  - `currency`, MoneyCurrency, required: ISO 4217 currency code. Only USD is supported.
- `amount`, Money, required
  - `amount_minor`, integer (int64), required: Amount in minor units (cents for USD).
  - `currency`, MoneyCurrency, required: ISO 4217 currency code. Only USD is supported.
- `monthly_limit`, Money, required
  - `amount_minor`, integer (int64), required: Amount in minor units (cents for USD).
  - `currency`, MoneyCurrency, required: ISO 4217 currency code. Only USD is supported.
- `added_this_month`, Money, required
  - `amount_minor`, integer (int64), required: Amount in minor units (cents for USD).
  - `currency`, MoneyCurrency, required: ISO 4217 currency code. Only USD is supported.
- `card`, AutoTopUpCard, required: The card on file, null when there is none.
- `status`, AutoTopUpStatus, required: . `active`: on and charging when needed. `paused`: on, but not charging (see `paused_reason`). `off`: turned off.
- `paused_reason`, AutoTopUpPausedReason, required: Why it is paused, null unless `status` is `paused`.
- `last_attempt`, AutoTopUpAttempt, required: The most recent charge, null before the first.

Example:

```json
{
  "enabled": false,
  "threshold": {
    "amount_minor": 250,
    "currency": "USD"
  },
  "amount": {
    "amount_minor": 250,
    "currency": "USD"
  },
  "monthly_limit": {
    "amount_minor": 250,
    "currency": "USD"
  },
  "added_this_month": {
    "amount_minor": 250,
    "currency": "USD"
  },
  "card": {
    "brand": "string",
    "last4": "string",
    "exp_month": 1,
    "exp_year": 0
  },
  "status": "active",
  "paused_reason": "card_declined",
  "last_attempt": {
    "at": "2026-10-15T12:00:00Z",
    "outcome": "succeeded",
    "amount": {
      "amount_minor": 250,
      "currency": "USD"
    }
  }
}
```

### 401

Missing, unknown, expired or revoked credentials.

### 403

The caller lacks the permission this operation requires (`forbidden`),
or signed in without having joined an organization yet
(`no_organization`; `getOnboarding` and the invitation and
organization operations under it work), or could not sign in
(`email_unverified`, `account_conflict`, and `domain_not_allowed`). `not_invited` is no longer returned to
session tokens.

`access_not_approved`: a signed-in person who is not approved
for the beta yet. Every operation that takes a credential answers it to
them, except `getMe` and `joinMyWaitlist`; the problem carries
`access` (`waitlisted` or `not_requested`, and the email). Approved
means a member of an organization, holding a pending invitation, or Legion; an API key always belongs to a member.

`oauth_token_mcp_only`: the caller sent an OAuth access token (`lgo_`), which is accepted
only by `mcpMessage` and the tool calls it dispatches. Every other operation answers it, whatever
the token's scope. Use an API key or the Legion web app.

`org_suspended`: the caller's organization is suspended. Every operation that takes a
credential answers it, by session or API key, except `getMe` (which shows `org.suspended_at` and
`org.suspension_reason`) and the support operations under `/v1/support/`.

`terms_not_accepted`: an approved caller who has not accepted
the current version of the Terms of Use and the Acceptable Use Policy. Every operation that takes a credential answers it, except `getMe`,
`acceptLegalDocuments`, `joinMyWaitlist` and the wind-down operations
(`listRentals`, `stopRental`, `deleteRental`, `listHosts`,
`updateListing` with `listed` false, `removeHost`); the problem
carries `legal`. An API key acts for the person who created it, so it
is refused until that person accepts. Terminal
operations also return
`session_required` (called with an API key) and `step_up_required`
(neither a sign-in nor a step-up challenge within the step-up window).

### 500

An unexpected server error. Safe to retry.

### 503

The payments service failed or did not answer within 3 seconds
(`payments_unavailable`). Nothing changed; retry with backoff.

## Errors

- 403 [`no_organization`](https://legion.ambient.xyz/docs/errors#no_organization)
- 503 [`payments_unavailable`](https://legion.ambient.xyz/docs/errors#payments_unavailable)

## Example request

```sh
curl -s -X DELETE "https://api.legion.ambient.xyz/v1/billing/auto-top-up/card" \
  -H "Authorization: Bearer $LEGION_API_KEY"
```
