Skip to main content
Anchor to customerPaymentMethodCreditCardUpdate

customerPaymentMethodCreditCardUpdate

mutation

Requires write_customers access scope. Also: Requires write_customer_payment_methods scope.

Updates an existing vaulted credit card payment method for a customer, including billing address and card details. Requires a valid cardserver session from a PCI-compliant environment. Use this when a customer's card details have changed (e.g., new expiration date or replacement card) and ongoing subscriptions or saved payment methods need to be updated.

•MailingAddressInput!
required

The billing address.

•ID!
required

The ID of the customer payment method.

•String!
required

The Cardserver session ID.


Was this section helpful?

Anchor to CustomerPaymentMethodCreditCardUpdatePayload returnsCustomerPaymentMethodCreditCardUpdatePayload returns

Anchor to customerPaymentMethodcustomerPaymentMethod
•CustomerPaymentMethod

The customer payment method.

•Boolean

If the card verification result is processing. When this is true, customer_payment_method will be null.

•[UserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?