Skip to content

Updates a payment method

Request

PATCH {{baseURL}}/v2/payment-methods/{{paymentMethodId}}

This endpoint updates a payment method.

This is a partial update using JSON Merge Patch, defined by RFC (request for comments) 7396. The only field this endpoint can change is paymentMethodName. An omitted paymentMethodName leaves it unchanged. The paymentMethodName field cannot be cleared. Card and bank account details are immutable once vaulted.

This works the same for an orphan and a customer-linked payment method. It answers the full updated payment method.

This endpoint requires a merchant API token. A partner API token is rejected with a 403 response. A merchant API token managed by a partner also requires that partner's account to have the ManageCustomers permission. Otherwise, the request returns a 403 response.

See Also:
To list payment methods, see GET /v2/payment-methods.
To retrieve a payment method by ID, see GET /v2/payment-methods/{{paymentMethodId}}.
To delete a payment method, see DELETE /v2/payment-methods/{{paymentMethodId}}.
To set a payment method as the default, see POST /v2/payment-methods/{{paymentMethodId}}/set-default.

Security
Bearer
Path
paymentMethodIdstring, (UUID)required

Specifies the payment method identifier.

Example: c857af4c-ced9-4b79-b39b-13c077711d7e

Example:c857af4c-ced9-4b79-b39b-13c077711d7e
Bodyapplication/json

Specifies the payment method fields to update.

paymentMethodNamestring or null, <= 20 characters

Specifies the display label for the payment method.

This is a free-form name that is convenient for the merchant to recognize.

This is the only field this endpoint can change, and it cannot be cleared.

Example: Work Visa

Example:"Work Visa"
// Language is not supported.

Responses

OK

Bodyapplication/json
paymentMethodIdstring or null, (UUID)

Indicates the payment method identifier.

This is the identifier of a previously saved ACH (automated clearing house) account to charge.

Example: 39a95e35-6d50-45ec-884b-c2417edf005d

Example:"39a95e35-6d50-45ec-884b-c2417edf005d"
paymentMethodTypestring

Identifies the payment method type.

Valid values are:

TypeDescription
ACHPayment made through an ACH (automated clearing house) bank transfer.
CardPayment made with a credit or debit card.
CashPayment made with physical currency.

Example: Card

Enum:"ACH""Card""Cash"
Example:"Card"
paymentMethodNamestring or null

Indicates the display label for the payment method.

This is a free-form name that is convenient for the merchant to recognize.

This value is null for a payment method saved through a checkout session, a payment link, or an invoice, which carry no label.

Example: Peppared Street Cafe's Preferred Payment

Example:"Peppared Street Cafe's Preferred Payment"
customerIdstring or null, (UUID)

Identifies the customer to link this payment method to.

This value may be null when this payment method is an orphan owned by the merchant directly. An orphan payment method is a payment method in the merchant's vault but has no customer record associated with it.

A list of customer identifiers can be retrieved with GET /v2/customers.

Example: 8fa8e727-73c6-436e-b56f-6f55aabf3b1c

Example:"8fa8e727-73c6-436e-b56f-6f55aabf3b1c"
isDefaultboolean

Indicates whether this payment method is the default payment method for the linked customer.

This value is always false for an orphan payment method, which has no linked customer and so no concept of default.

Valid values are:

ValueDescription
falseThis is not the default payment method.
trueThis is the default payment method.

Example: true

Example:true
createdOnstring, (ISO 8601 date-time)

Indicates the date-time (in an ISO 8601 UTC date-time format) the payment method was created on.

Example: 2026-01-15T10:30:56.264Z

Example:"2026-01-15T10:30:56.264Z"
cardDetailsobject or null

Indicates the card details.

This is populated when paymentMethodType is Card. It is null for ACH (automated clearing house).

achDetailsobject or null

Indicates the ACH (automated clearing house) details.

This is populated when paymentMethodType is ACH. It is null for a card.

Response
{ "paymentMethodId": "c857af4c-ced9-4b79-b39b-13c077711d7e", "paymentMethodType": "Card", "paymentMethodName": "Work Visa", "customerId": "588f57a5-fe6a-4844-851e-e98914e81980", "isDefault": true, "createdOn": "2026-01-15T10:30:00.356Z", "cardDetails": { "maskedCardNumber": "400112******1111", "cardNumberLast4": "1111", "expirationMonth": 12, "expirationYear": 2033, "cardBrand": "Visa", "cardType": "Credit", "cardTokenType": "Local" }, "achDetails": null }