v1

latestOpenAPI 3.0.1Proprietary2026-07-146923125.8 KB
Payment Method

Update a payment method

put/paymentMethod/{id}

Path parameters

idinteger required

Request body

idinteger
selfstring
labelstring required

Descriptive label for the payment method

defaultMethodboolean

Whether the payment method is the default one

last4string

Last 4 digits of the card

expMonthinteger

Expiration month of the card

expYearinteger

Expiration year of the card

payloadobject

Payment method creation payload

Example request

{
  "self": "subscription/123"
}

Response

OK

idinteger
selfstring
labelstring required

Descriptive label for the payment method

defaultMethodboolean

Whether the payment method is the default one

last4string

Last 4 digits of the card

expMonthinteger

Expiration month of the card

expYearinteger

Expiration year of the card

payloadobject

Payment method creation payload

Example response

{
  "self": "subscription/123"
}