Skip to main content

CreditCard

Represents all the credit cards currently added to the groove account

Fetch all credit cards for the current account:

query CreditCardsQuery {
billing {
creditCards {
id,
name
brand
country
cvcCheck
expiryMonth
expiryYear
funding
last4
}
}
}
type CreditCard {
brand: String!
country: String
cvcCheck: String
expiryMonth: Int!
expiryYear: Int!
funding: CreditCardFunding!
id: ID!
last4: String!
name: String
}

Fields

CreditCard.brand ● String! non-null scalar common

Card brand. Can be American Express, Diners Club, Discover, Eftpos Australia, JCB, MasterCard, UnionPay, Visa, or Unknown.

CreditCard.country ● String scalar common

Two-letter ISO code representing the country of the card.

CreditCard.cvcCheck ● String scalar common

if a CVC was provided, results of the check: pass, fail, unavailable, or unchecked. A result of unchecked indicates that CVC was provided but hasn’t been checked yet.

CreditCard.expiryMonth ● Int! non-null scalar common

Two-digit number representing the card’s expiration month.

CreditCard.expiryYear ● Int! non-null scalar common

Four-digit number representing the card’s expiration year.

CreditCard.funding ● CreditCardFunding! non-null enum common

The state of this plan in the 3rd party system.

CreditCard.id ● ID! non-null scalar common

CreditCard.last4 ● String! non-null scalar common

The last four digits of the card.

CreditCard.name ● String scalar common

Card brand. Can be American Express, Diners Club, Discover, Eftpos Australia, JCB, MasterCard, UnionPay, Visa, or Unknown.

Member of

BillingType object