---
title: "Set default payment method"
method: POST
path: "/payment-methods/{id}/default"
tags: ["PaymentMethods"]
---

# Set default payment method

`POST /payment-methods/{id}/default`

## Request

- Base URL: `https://api.leadping.ai`
- URL: `https://api.leadping.ai/payment-methods/{id}/default`
- Auth: HTTP bearer

Sets a payment method as the default for the current organization's future invoices and billing activity.

## Path parameters

- `id` string, required

## Response `200`

The payment method now selected as the organization's default.

- StripePaymentMethodResponse: Describes Stripe payment method data used in Leadping API requests and responses.
  - `type` 'card' | 'link': Reusable payment types supported for immediate billing payments.
  - `walletName` string, nullable: The wallet name when supplied by a digital wallet.
  - `id` string, required: Unique Leadping identifier for this Stripe payment method.
  - `brand` string, nullable: Card network brand, such as Visa, Mastercard, or American Express.
  - `last4` string, nullable: Last four digits of the payment card number.
  - `expMonth` integer: Two-digit month when the card expires.
  - `expYear` integer: Four-digit year when the card expires.
  - `isDefault` boolean: Whether this Stripe payment method is default.
  - `createdAt` string, date-time, nullable: UTC timestamp for created at on this Stripe payment method.

## Other responses

- `400`: The request contains invalid values or fails validation.
- `401`: Authentication credentials are missing or invalid.
- `403`: The caller does not have permission to perform this operation.
- `404`: The requested resource or required account context was not found.
- `429`: The client or account rate limit was exceeded. Retry after the interval in the Retry-After header.
- `500`: An unexpected error prevented the server from completing the request.

## Changes

- **2026-11-11** `81aed8c9afb7`: 2 info
  - added the non-success response with the status `404`
  - added the non-success response with the status `500`
- **2026-10-28** `2bc0df7d3e08`: 4 breaking, 2 info
  - the response property `allOf[#/components/schemas/StripePaymentMethodResponse]/brand` became nullable for the status `200`
  - the response property `allOf[#/components/schemas/StripePaymentMethodResponse]/last4` became nullable for the status `200`
  - the response property `allOf[#/components/schemas/StripePaymentMethodResponse]/brand` became optional for the status `200`
  - the response property `allOf[#/components/schemas/StripePaymentMethodResponse]/last4` became optional for the status `200`
  - …2 more

[Operation history](https://skmtc.dev/leadping/apis/leadping-api/changes/payment-methods/:id/default/post.md)

---

[API](https://skmtc.dev/leadping/apis/leadping-api.md) - [All operations](https://skmtc.dev/leadping/apis/leadping-api/llms.txt) - [OpenAPI document](https://skmtc.dev/leadping/apis/leadping-api/revisions/bf1852acaf45?raw)
