Update a spending card
Update a Moov issued card.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/issued-cards.write scope.
curl -X PATCH "https://api.moov.io/issuing/{accountID}/cards/{issuedCardID}" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2027.01.00"mc, _ := moov.NewClient()
var accountID string
var issuedCardID string
closed := moov.UpdateIssuedCardState_Closed
mc.UpdateIssuedCard(ctx, accountID, issuedCardID, moov.UpdateIssuedCard{
State: &closed,
})
{
"issuedCardID": "string",
"brand": "Visa",
"lastFourCardNumber": "string",
"expiration": {
"month": "01",
"year": "21"
},
"fundingWalletID": "string",
"authorizedUserAccountID": "string",
"nickname": "string",
"metadata": {
"optional": "metadata"
},
"billingAddress": {
"addressLine1": "123 Main Street",
"addressLine2": "Apt 302",
"city": "Boulder",
"stateOrProvince": "CO",
"postalCode": "80301",
"country": "US"
},
"state": "active",
"formFactor": "virtual",
"controls": {
"singleUse": true,
"velocityLimits": [
{
"amount": 10000,
"count": 0,
"interval": "per-transaction",
"amountUsed": 0,
"amountRemaining": 0,
"countUsed": 0,
"countRemaining": 0,
"resetsOn": "2019-08-24T14:15:22Z"
}
],
"merchantCategoryRestrictions": {
"mode": "allow",
"categories": [
"advertising"
],
"customMCCs": [
"string"
],
"exemptMerchants": [
{
"networkID": "string",
"descriptorPattern": "string",
"name": "string"
}
]
},
"merchantRestrictions": {
"mode": "allow",
"merchants": [
{
"networkID": "string",
"descriptorPattern": "string",
"name": "string"
}
]
},
"allowedSchedule": {
"timezone": "string",
"windows": [
{
"days": [
"monday"
],
"startTime": "string",
"endTime": "string"
}
]
},
"expiresOn": "2019-08-24T14:15:22Z"
},
"createdOn": "2019-08-24T14:15:22Z",
"updatedOn": "2019-08-24T14:15:22Z"
}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
{
"state": "string",
"nickname": "string",
"metadata": "string",
"billingAddress": {
"addressLine1": "string",
"addressLine2": "string",
"city": "string",
"stateOrProvince": "string",
"postalCode": "string",
"country": "string"
},
"controls": {
"velocityLimits": {
"property1": {
"amount": "string",
"count": "string",
"interval": "string"
},
"property2": {
"amount": "string",
"count": "string",
"interval": "string"
}
},
"merchantCategoryRestrictions": {
"mode": "string",
"categories": {
"0": "first element failed validation..."
},
"customMCCs": {
"0": "first element failed validation..."
},
"exemptMerchants": {
"property1": {
"networkID": "string",
"descriptorPattern": "string"
},
"property2": {
"networkID": "string",
"descriptorPattern": "string"
}
}
},
"merchantRestrictions": {
"mode": "string",
"merchants": {
"property1": {
"networkID": "string",
"descriptorPattern": "string"
},
"property2": {
"networkID": "string",
"descriptorPattern": "string"
}
}
},
"allowedSchedule": {
"timezone": "string",
"windows": {
"property1": {
"days": "string",
"startTime": "string",
"endTime": "string"
},
"property2": {
"days": "string",
"startTime": "string",
"endTime": "string"
}
}
},
"expiresOn": "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
accountID
string
required
issuedCardID
string
required
Body
billingAddress
object
| null
Show child attributes
billingAddress
addressLine1
string
<=60 characters
Pattern
addressLine2
string
<=32 characters
Pattern
city
string
<=32 characters
Pattern
country
string
<=2 characters
postalCode
string
<=5 characters
stateOrProvince
string
<=2 characters
controls
object
Show child attributes
controls
allowedSchedule
object
| null
null to remove all schedule restrictions.
Show child attributes
controls.allowedSchedule
timezone
string
windows
array<object>
Show child attributes
controls.allowedSchedule.windows[]
days
array<string>
monday,
tuesday,
wednesday,
thursday,
friday,
saturday,
sunday
endTime
string
HH:MM format. If earlier than startTime, the window wraps past midnight.
startTime
string
HH:MM format.
expiresOn
string<date-time>
| null
null to remove the spend cutoff.
merchantCategoryRestrictions
object
| null
null to remove all category restrictions.
Show child attributes
controls.merchantCategoryRestrictions
categories
array<string>
advertising,
airlines,
alcohol-and-bars,
car-rental,
education,
electronics,
fuel-and-gas,
gambling,
groceries,
ground-transportation,
hardware-and-home,
healthcare,
live-entertainment,
lodging,
movies,
office-supplies,
parking,
personal-care,
professional-services,
restaurants-and-dining,
retail-general,
rideshare-and-taxis,
software-and-saas,
sports-and-recreation,
subscriptions,
travel-agencies
customMCCs
array<string>
exemptMerchants
array<object>
Show child attributes
controls.merchantCategoryRestrictions.exemptMerchants[]
descriptorPattern
string
name
string
networkID
string
mode
string<enum>
allow) or blocked (block).
allow,
block
merchantRestrictions
object
| null
null to remove merchant restrictions.
Show child attributes
controls.merchantRestrictions
merchants
array<object>
Show child attributes
controls.merchantRestrictions.merchants[]
descriptorPattern
string
name
string
networkID
string
mode
string<enum>
allow) or blocked (block).
allow,
block
velocityLimits
array<object>
Show child attributes
controls.velocityLimits[]
amount
integer<int64>
count
integer<int64>
amount or count must be set.
interval
string<enum>
per-transaction applies to each individual authorization and never resets. Time-based intervals (where supported) reset at midnight ET.
per-transaction,
daily,
weekly,
monthly
metadata
object
| null
nickname
string
| null
state
string<enum>
Updates the state of a Moov issued card.
active: The card is operational and authorizations can be approved.frozen: The card is temporarily suspended and authorizations cannot be approved. Set the state back toactiveto reactivate it. A card can move betweenfrozenandactiveas often as needed.closed: The card is permanently deactivated. A card is closed by request or when it expires, and cannot be reopened.
active,
frozen,
closed
Response
brand
string<enum>
required
American Express,
Discover,
Mastercard,
Visa,
Unknown
createdOn
string<date-time>
required
expiration
object
required
Show child attributes
expiration
month
string
2 characters
required
year
string
2 characters
required
formFactor
string<enum>
required
virtual
fundingWalletID
string
required
issuedCardID
string
required
lastFourCardNumber
string
required
state
string<enum>
required
The state represents the operational status of an issued card.
Authorizations can only be approved while the card is active:
active: The card is operational and authorizations can be approved.frozen: The card is temporarily suspended and authorizations cannot be approved. Set the state back toactiveto reactivate it. A card can move betweenfrozenandactiveas often as needed.closed: The card is permanently deactivated. A card is closed by request or when it expires, and cannot be reopened.
active,
frozen,
closed
updatedOn
string<date-time>
required
authorizedUserAccountID
string
billingAddress
object
Show child attributes
billingAddress
addressLine1
string
<=60 characters
required
Pattern
addressLine2
string
<=32 characters
Pattern
city
string
<=32 characters
required
Pattern
country
string
<=2 characters
required
postalCode
string
<=5 characters
required
stateOrProvince
string
<=2 characters
required
controls
object
Show child attributes
controls
allowedSchedule
object
| null
Show child attributes
controls.allowedSchedule
timezone
string
required
windows
array<object>
required
Show child attributes
controls.allowedSchedule.windows[]
days
array<string>
monday,
tuesday,
wednesday,
thursday,
friday,
saturday,
sunday
endTime
string
HH:MM format. If earlier than startTime, the window wraps past midnight.
startTime
string
HH:MM format.
expiresOn
string<date-time>
| null
merchantCategoryRestrictions
object
Show child attributes
controls.merchantCategoryRestrictions
mode
string<enum>
required
allow) or blocked (block).
allow,
block
categories
array<string>
advertising,
airlines,
alcohol-and-bars,
car-rental,
education,
electronics,
fuel-and-gas,
gambling,
groceries,
ground-transportation,
hardware-and-home,
healthcare,
live-entertainment,
lodging,
movies,
office-supplies,
parking,
personal-care,
professional-services,
restaurants-and-dining,
retail-general,
rideshare-and-taxis,
software-and-saas,
sports-and-recreation,
subscriptions,
travel-agencies
customMCCs
array<string>
exemptMerchants
array<object>
Show child attributes
controls.merchantCategoryRestrictions.exemptMerchants[]
descriptorPattern
string
name
string
networkID
string
merchantRestrictions
object
Show child attributes
controls.merchantRestrictions
merchants
array<object>
required
Show child attributes
controls.merchantRestrictions.merchants[]
descriptorPattern
string
name
string
networkID
string
mode
string<enum>
required
allow) or blocked (block).
allow,
block
singleUse
boolean
velocityLimits
array<object>
Show child attributes
controls.velocityLimits[]
amount
integer<int64>
amountRemaining
integer<int64>
amountUsed
integer<int64>
count
integer<int64>
countRemaining
integer<int64>
countUsed
integer<int64>
interval
string<enum>
per-transaction applies to each individual authorization and never resets. Time-based intervals (where supported) reset at midnight ET.
per-transaction,
daily,
weekly,
monthly
resetsOn
string<date-time>
metadata
object
nickname
string