Skip to main content
PATCH
Update payment method
Partially updates a payment method: only sent fields change.
  • type cannot be changed and is ignored.
  • settings are merged over the stored ones by key, so a single key can be changed without resending credentials. manualTextRequisites is replaced as a whole list.
  • public_name: null or an empty string resets the subscriber-facing name to the type name.
For stripe, the webhook is registered again only when secret_key changes. If Stripe rejects the new key, nothing is saved and 422 is returned with the error under settings.secret_key.

Authorizations

Authorization
string
header
required

API token from the Zenedu dashboard

Path Parameters

paymentSystem
integer
required

Payment method ID

Body

application/json

Partial update: only sent fields change. type cannot be changed and is ignored.

name
string

Internal name, unique within the account (case-insensitive)

Maximum string length: 255
public_name
string | null

Name shown to subscribers; empty or null resets it to the type name

Maximum string length: 255
settings
object

Merged over the stored settings by key: omitted keys keep their values.

Response

Payment method updated

data
object