Link a card
Link a card to an existing Moov account.
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.
During card linking, the provided data will be verified by submitting a $0 authorization (account verification) request.
If merchantAccountID is provided, the authorization request will contain that account's statement descriptor and address.
Otherwise, the platform account's profile will be used. If no statement descriptor has been set, the authorization will
use the account's name instead.
It is strongly recommended that callers include the X-Wait-For header, set to payment-method, if the newly linked
card is intended to be used right away. If this header is not included, the caller will need to poll the List Payment
Methods
endpoint to wait for the new payment methods to be available for use.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/cards.write scope.
curl -X POST "https://api.moov.io/accounts/{accountID}/cards" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2027.01.00" \
-d '{
"cardNumber": "4111111111111111",
"cardCvv": "123",
"expiration": {
"month": "01",
"year": "21"
},
"holderName": "Jules Jackson",
"billingAddress": {
"postalCode": "80301"
}
}'mc, _ := moov.NewClient()
var accountID string
cardPayload := moov.CreateCard{
BillingAddress: moov.Address{
AddressLine1: "123 Main Street",
City: "Denver",
StateOrProvince: "CO",
PostalCode: "80301",
Country: "US",
},
CardNumber: "4111111111111111",
CardCvv: "123",
Expiration: moov.Expiration{
Month: "01",
Year: "28",
},
HolderName: "Jules Jackson",
}
mc.CreateCard(ctx, accountID, cardPayload)
{
"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",
"existingCardID": "string"
}Response headers
x-request-id
string
required
{
"error": "string",
"e2ee": {
"token": "string"
},
"cardNumber": "string",
"cardCvv": "string",
"expiration": "string",
"holderName": "string",
"billingAddress": "string",
"cardOnFile": "string",
"merchantAccountID": "string",
"verifyName": "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
x-wait-for
string
Optional header to wait for certain events, such as the creation of a payment method, to occur before returning a response.
When this header is set to payment-method, the response will include any payment methods that were created for the newly
linked card in the paymentMethods field. Otherwise, the paymentMethods field will be omitted from the response.
payment-method
Path parameters
Body
billingAddress
object
required
Show child attributes
billingAddress
cardOnFile
boolean
merchantAccountID is provided, the partner account's ID is used as the merchant account for verification.
e2ee
object
Show child attributes
e2ee
token
string<jwe>
required
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