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

# Set Default Payment Method

> Make a saved card the default. The next renewal and every top-up that names no card
charge it.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/billing/payment-methods/{payment_method_id}/default
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/billing/payment-methods/{payment_method_id}/default:
    post:
      tags:
        - Billing
      summary: Set Default Payment Method
      description: >-
        Make a saved card the default. The next renewal and every top-up that
        names no card

        charge it.
      operationId: >-
        set_default_payment_method_v1_billing_payment_methods__payment_method_id__default_post
      parameters:
        - name: payment_method_id
          in: path
          required: true
          schema:
            type: string
            title: Payment Method Id
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentMethodsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PaymentMethodsResponse:
      properties:
        default_payment_method:
          anyOf:
            - type: string
            - type: 'null'
          title: Default Payment Method
        payment_methods:
          items:
            $ref: '#/components/schemas/PaymentMethodItem'
          type: array
          title: Payment Methods
      type: object
      required:
        - default_payment_method
        - payment_methods
      title: PaymentMethodsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PaymentMethodItem:
      properties:
        id:
          type: string
          title: Id
        brand:
          anyOf:
            - type: string
            - type: 'null'
          title: Brand
        last4:
          anyOf:
            - type: string
            - type: 'null'
          title: Last4
        exp_month:
          anyOf:
            - type: integer
            - type: 'null'
          title: Exp Month
        exp_year:
          anyOf:
            - type: integer
            - type: 'null'
          title: Exp Year
        is_default:
          type: boolean
          title: Is Default
      type: object
      required:
        - id
        - brand
        - last4
        - exp_month
        - exp_year
        - is_default
      title: PaymentMethodItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.