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.
- Sandbox environmenthttps://sandbox.api.flute.com/v2/payment-methods/{paymentMethodId}
- Production environmenthttps://api.flute.com/v2/payment-methods/{paymentMethodId}
// Language is not supported.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
Identifies the payment method type.
Valid values are:
| Type | Description |
|---|---|
| ACH | Payment made through an ACH (automated clearing house) bank transfer. |
| Card | Payment made with a credit or debit card. |
| Cash | Payment made with physical currency. |
Example: Card
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
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
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:
| Value | Description |
|---|---|
| false | This is not the default payment method. |
| true | This is the default payment method. |
Example: true
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
Indicates the card details.
This is populated when paymentMethodType is Card. It is null for ACH (automated clearing house).
{ "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 }