Update a Payment Method
Update the billing details or default status of an existing payment method
default and billingDetails can be changed.
Returns
Returns the updated PaymentMethod object.Authorizations
Server-side API key from the Crossmint dashboard.
Path Parameters
PaymentMethod identifier.
Query Parameters
Identifies the target user. Format: <type>:<value> (e.g., email:alice@example.com, userId:abc123). Required with server API key auth; ignored with JWT.
Body
At least one of default or billingDetails must be provided. Payment type, card details, and account numbers cannot be changed after creation.
Response
Updated PaymentMethod object.
A saved payment method. Sensitive fields (full PAN, CVC, full account numbers) are never included in responses.
Unique identifier (UUID v4), assigned by the server on creation.
Whether this is the user's default payment method. Only one per user can be the default; setting a new default automatically unsets the previous one.
Human-readable label derived by the server (e.g., "Visa ••1111", "SEPA Account ••6789"). Not settable by the client.
Payment method type. Determines which sub-object (card or bankAccount) is present.
card, bank-account-us, bank-account-mx, bank-account-co, sepa Card details. Present when type is card.
Bank account details. Present when type is a bank type. Full account numbers and IBANs are never included.

