payment-methods

Set default payment method

Makes this payment method the customer's default for future charges

post/payment-methods/{id}/set-default

Request

  • Base URL: https://api.agentpaid.io/api/v2
  • URL: https://api.agentpaid.io/api/v2/payment-methods/{id}/set-default
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

object required

Response

200

idstring required

Unique payment method identifier.

customerIdstring required

The customer this payment method belongs to.

externalPaymentMethodIdstring required

The payment processor's identifier for this payment method (e.g. a Stripe payment method ID).

typestring required

Payment method type, e.g. "card".

isDefaultboolean required

Whether this is the customer's default payment method.

createdAtstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.