PaymentMethods

Set default payment method

Changed on

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

post/payment-methods/{id}/default

Request

  • Base URL
    https://api.leadping.ai
  • Auth
    HTTP bearer

Path parameters

id, string required

The unique identifier of the payment method to make the default.

Response

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

StripePaymentMethodResponse required

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.

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • breaking

      the response property allOf[#/components/schemas/StripePaymentMethodResponse]/brand became nullable for the status

    5 more changes in this revision