List the cards saved for an account and which one is the default; returns one page of payment methods, which are changed in the billing portal. Requires account.billing.read.
Arguments
inputPaymentMethodListInputinput.limitIntMaximum number of payment methods to return, 1 to 100. Defaults to 100.
input.cursorStringOpaque cursor pointing at the next page. Omit it to read the first page.
Responses
query PaymentMethods { paymentMethods { data { id brand last4 expMonth expYear isDefault } pageInfo { hasNextPage hasPreviousPage startCursor endCursor } }}{ "data": { "paymentMethods": { "data": [ { "id": "string", "brand": "string", "last4": "string", "expMonth": 0, "expYear": 0, "isDefault": false } ], "pageInfo": { "hasNextPage": false, "hasPreviousPage": false, "startCursor": "string", "endCursor": "string" } } }}The PaymentMethodPage! in data.paymentMethods.