Update a spending card
PATCH
/issuing/{accountID}/cards/{issuedCardID}
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: v2026.10.00"mc, _ := moov.NewClient()
var accountID string
var issuedCardID string
closed := moov.UpdateIssuedCardState_Closed
mc.UpdateIssuedCard(ctx, accountID, issuedCardID, moov.UpdateIssuedCard{
State: &closed,
})
The request completed successfully.
{
"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
A unique identifier used to trace requests.
The server could not understand the request due to invalid syntax.
{
"error": "string"
}Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request contained missing or expired authentication.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The user is not authorized to make the request.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The requested resource was not found.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request conflicted with the current state of the target resource.
{
"error": "string"
}Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields.
{
"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
A unique identifier used to trace requests.
Request was refused due to rate limiting.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request failed due to an unexpected error.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request failed because a downstream service failed to respond.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Headers
X-Moov-Version
string
Set this header to v2026.10.00 to use the API described in this specification.
When omitted, the server defaults to v2024.01.00, the earliest supported version, which may not match the behavior documented here.
An unrecognized well-formed version uses the latest supported version that is not newer than the requested version, when one exists.
For example,
v2026.08.00 uses v2026.07.00.
A malformed value, such as 2022, returns a 404 response.
Possible values:
v2026.10.00
Path parameters
Body
application/json
controls
object
Mutable spend controls for the card.
Each field replaces the entire corresponding value.
Show child attributes
controls
allowedSchedule
object
| null
Limits card usage to specific days and times. Set to
null to remove all schedule restrictions.
Show child attributes
controls.allowedSchedule
timezone
string
IANA timezone string used to evaluate window boundaries against the authorization time.
windows
array<object>
Time windows during which authorizations on the card can be approved. Any matching window allows the transaction.
Show child attributes
controls.allowedSchedule.windows[]
days
array<string>
The days of the week this window applies to.
Possible values:
monday,
tuesday,
wednesday,
thursday,
friday,
saturday,
sunday
expiresOn
string<date-time>
| null
A spend cutoff date and time. Set to
null to remove the spend cutoff.
merchantCategoryRestrictions
object
| null
Restricts card usage by merchant category. Set to
null to remove all category restrictions.
Show child attributes
controls.merchantCategoryRestrictions
categories
array<string>
Predefined category groups to allow or block.
Possible values:
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>
Individual merchant category codes (MCCs) to allow or block, for codes not covered by a predefined category.
exemptMerchants
array<object>
Merchants that are exempt from category restrictions regardless of their category.
merchantRestrictions
object
| null
Restricts card usage to specific merchants, independent of merchant category. Set to
null to remove merchant restrictions.
metadata
object
| null
Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
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.
Possible values:
active,
frozen,
closed
Response
brand
string<enum>
required
The card brand.
Possible values:
American Express,
Discover,
Mastercard,
Visa,
Unknown
formFactor
string<enum>
required
Specifies the type of spend card to be issued. Presently supports virtual only, providing a digital number without a physical card.
Possible values:
virtual
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.
Possible values:
active,
frozen,
closed
billingAddress
object
Billing address associated with the card.
Show child attributes
billingAddress
controls
object
Spend controls applied to an issued card, including velocity runtime state.
Show child attributes
controls
allowedSchedule
object
| null
Limits card usage to specific days and times.
Show child attributes
controls.allowedSchedule
timezone
string
required
IANA timezone string used to evaluate window boundaries against the authorization time.
windows
array<object>
required
Time windows during which authorizations on the card can be approved. Any matching window allows the transaction.
Show child attributes
controls.allowedSchedule.windows[]
days
array<string>
The days of the week this window applies to.
Possible values:
monday,
tuesday,
wednesday,
thursday,
friday,
saturday,
sunday
expiresOn
string<date-time>
| null
A spend cutoff date and time. When set, all authorizations after this datetime are declined regardless of other controls.
merchantCategoryRestrictions
object
Restricts card usage by merchant category. When not set, all categories are allowed.
Show child attributes
controls.merchantCategoryRestrictions
mode
string<enum>
required
Whether the listed items should be allowed (
allow) or blocked (block).
Possible values:
allow,
block
categories
array<string>
Predefined category groups to allow or block.
Possible values:
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>
Individual merchant category codes (MCCs) to allow or block, for codes not covered by a predefined category.
exemptMerchants
array<object>
Merchants that are exempt from category restrictions regardless of their category.
merchantRestrictions
object
Restricts card usage to specific merchants, independent of merchant category.
Show child attributes
controls.merchantRestrictions
singleUse
boolean
Indicates if the card is single-use. If true, the card closes after the first authorization.
velocityLimits
array<object>
The spending limits per time interval, including current runtime state.
Show child attributes
controls.velocityLimits[]