Update a card
Update a linked card and/or resubmit it for verification.
If a value is provided for CVV, a new verification ($0 authorization) will be submitted for the card. Updating the expiration date or address will update the information stored on file for the card but will not be verified.
Read our accept card payments guide to learn more.
Only use this endpoint if you have provided Moov with a copy of your PCI attestation of compliance.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/cards.write scope.
curl -X PATCH "https://api.moov.io/accounts/{accountID}/cards/{cardID}" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2027.01.00" \
-d '{
"cardCvv": "456"
}'mc, _ := moov.NewClient()
var accountID string
var cardID string
mc.UpdateCard(ctx, accountID, cardID,
moov.WithCardOnFile(true),
)
{
"cardID": "01234567-89ab-cdef-0123-456789abcdef",
"fingerprint": "9948962d92a1ce40c9f918cd9ece3a22bde62fb325a2f1fe2e833969de672ba3",
"brand": "Visa",
"cardType": "credit",
"cardCategory": "CLASSIC",
"lastFourCardNumber": "1111",
"bin": "411111",
"expiration": {
"month": "01",
"year": "21"
},
"holderName": "Jules Jackson",
"billingAddress": {
"addressLine1": "123 Main Street",
"addressLine2": "Apt 302",
"city": "Boulder",
"stateOrProvince": "CO",
"postalCode": "80301",
"country": "US"
},
"cardVerification": {
"cvv": "match",
"addressLine1": "match",
"postalCode": "match",
"accountName": {
"firstName": "match",
"lastName": "match",
"middleName": "match",
"fullName": "match"
}
},
"issuer": "GRINGOTTS BANK",
"issuerCountry": "US",
"issuerURL": "HTTPS://WWW.EXAMPLE.COM/",
"issuerPhone": "8185551212",
"commercial": false,
"regulated": false,
"cardOnFile": true,
"merchantAccountID": "01234567-89ab-cdef-0123-456789abcdef",
"cardAccountUpdater": {
"updatedOn": "2024-05-06T12:20:38.184Z",
"updateType": "number-update"
},
"domesticPushToCard": "standard",
"domesticPullFromCard": "supported"
}Response headers
x-request-id
string
required
{
"error": "string"
}Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
{
"error": "string"
}Response headers
x-request-id
string
required
{
"e2ee": {
"token": "string"
},
"billingAddress": "string",
"expiration": "string",
"cardCvv": "string",
"cardOnFile": "string",
"merchantAccountID": "string",
"verifyName": "string",
"holderName": "string"
}Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Headers
X-Moov-Version
string
v2026.08.00 uses v2026.07.00.
A malformed value, such as 2022, returns a 404 response.
v2027.01.00
Path parameters
Body
billingAddress
object
Show child attributes
billingAddress
cardCvv
string
cardOnFile
boolean
merchantAccountID is provided, the partner account's ID is automatically used as the merchant account for verification.
e2ee
object
Show child attributes
e2ee
token
string<jwe>
Response
billingAddress
object
required
Show child attributes
billingAddress
bin
string
[6 to 8] characters
required
brand
string<enum>
required
American Express,
Discover,
Mastercard,
Visa,
Unknown
cardType
string<enum>
required
debit,
credit,
prepaid,
unknown
cardVerification
object
required
Show child attributes
cardVerification
addressLine1
string
required
postalCode; the card network returns a single code covering both address fields.
noMatch,
match,
notChecked,
unavailable,
partialMatch
cvv
string
required
noMatch,
match,
notChecked,
unavailable,
partialMatch
postalCode
string
required
addressLine1; the card network returns a single code covering both address fields.
noMatch,
match,
notChecked,
unavailable,
partialMatch
accountName
object
Show child attributes
cardVerification.accountName
firstName
string
noMatch,
match,
notChecked,
unavailable,
partialMatch
fullName
string
noMatch,
match,
notChecked,
unavailable,
partialMatch
fingerprint
string
<=100 characters
required
cardAccountUpdater
object
cardCategory
string
commercial
boolean
domesticPullFromCard
string<enum>
not-supported,
supported,
unknown
domesticPushToCard
string<enum>
not-supported,
standard,
fast-funds,
unknown
merchantAccountID
string
paymentMethods
array<object>
Includes any payment methods created as a result of linking a card with the x-wait-for header set to payment-method.
Only returned by the link card endpoint; not included when getting or listing cards.
Show child attributes
paymentMethods[]
paymentMethodType
string<enum>
moov-wallet,
ach-debit-fund,
ach-debit-collect,
ach-credit-standard,
ach-credit-same-day,
rtp-credit,
card-payment,
push-to-card,
pull-from-card,
apple-pay,
card-present-payment,
instant-bank-credit,
push-to-apple-pay,
pull-from-apple-pay,
google-pay,
push-to-google-pay,
pull-from-google-pay,
wire-credit