Skip to main content
Anchor to customerPaymentMethod

customerPaymentMethod

query

Returns a vaulted customer payment method by its ID, including the instrument type (credit card, PayPal, etc.), billing address, and current status. Optionally includes revoked payment methods. Use this to look up a specific saved payment method for a customer — for example, to check whether a subscription's payment method is still valid or to display stored payment details.

ID!
required

The ID of the CustomerPaymentMethod to return.

Boolean
Default:false

Whether to show the customer's revoked payment method.


Was this section helpful?

Anchor to CustomerPaymentMethodCustomerPaymentMethod
CustomerPaymentMethod

A customer's saved payment method. Stores the payment instrument details and billing information for recurring charges.

The payment method supports types included in the CustomerPaymentInstrument union.

Customer

The customer to whom the payment method belongs.

ID!
non-null

The ID of this payment method.

CustomerPaymentInstrument

The instrument for this payment method.

PaymentMandateResourceConnection!
non-null

The mandates associated with the payment method.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.


DateTime

The time that the payment method was revoked.

CustomerPaymentMethodRevocationReason

The revocation reason for this payment method.

Anchor to subscriptionContractssubscriptionContracts
SubscriptionContractConnection!
non-null

List Subscription Contracts.

Arguments

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.



Was this section helpful?