> ## Documentation Index
> Fetch the complete documentation index at: https://docs.recoupable.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove the Payment Method

> Detach the default card on file from an account, whichever tagged Stripe customer holds it. After this call `GET /api/accounts/{id}/payment-method` returns `card: null`, credit purchases route through checkout again, and auto top-up (if enabled) is turned off because it has nothing to charge. Subscriptions collected by invoice are unaffected. `id` may be the authenticated account or an organization the caller belongs to.



## OpenAPI

````yaml api-reference/openapi/accounts.json DELETE /api/accounts/{id}/payment-method
openapi: 3.1.0
info:
  title: Recoup API - Accounts
  description: >-
    API documentation for the Recoup platform - an AI agent platform for the
    music industry
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.recoupable.dev
security: []
paths:
  /api/accounts/{id}/payment-method:
    delete:
      description: >-
        Detach the default card on file from an account, whichever tagged Stripe
        customer holds it. After this call `GET
        /api/accounts/{id}/payment-method` returns `card: null`, credit
        purchases route through checkout again, and auto top-up (if enabled) is
        turned off because it has nothing to charge. Subscriptions collected by
        invoice are unaffected. `id` may be the authenticated account or an
        organization the caller belongs to.
      parameters:
        - name: id
          in: path
          description: >-
            The unique identifier (UUID) of the account. Must be the
            authenticated account or another accessible via organization
            membership.
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Payment method detached; no body.
        '401':
          description: Unauthorized - invalid or missing authentication
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountPaymentMethodErrorResponse'
              example:
                error: Unauthorized
        '403':
          description: >-
            Forbidden - the account is not the caller's and not an organization
            they belong to (an unknown id also returns 403, never 404)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountPaymentMethodErrorResponse'
      security:
        - apiKeyAuth: []
        - bearerAuth: []
components:
  schemas:
    AccountPaymentMethodErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
          example: Unauthorized
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Recoup API key. [Learn more](/quickstart#api-keys).
    bearerAuth:
      type: http
      scheme: bearer

````