Assign a spend control to a card

Attach or replace the spend control assigned to a card.

Required permissions: card:update.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

card_idstringRequired

Request

This endpoint expects an object.
spend_control_idstringRequired
The ID of the spend control to assign to the card.

Response

The updated card.
card_idstring
Penny's unique identifier for this card.
versioninteger
A number that increases each time this card's details change. Use it to confirm you are looking at the latest information.
version_timedatetime
The date and time this card's details were last changed.
issued_timedatetime
The date and time this card was issued.
expiration_datedate
The date this card expires and can no longer be used.
bin_idstring
The BIN this card was issued under.
bin_range_idstring
The BIN range this card was issued under.
card_product_idstring
The card product this card was issued under.
business_idstring
The business that owns this card.
business_entity_idstring
The business entity associated with this card.
program_idstring
The program this card was issued under.
capital_account_idstring
The account this card draws funds from.
cardholder_idstring
The cardholder this card is issued to.
statusenum
This card's current lifecycle status.
Allowed values:
activeboolean
Whether this card is currently able to authorize transactions.
terminatedboolean
Whether this card has been permanently terminated.
currencyenum
The currency this card transacts in.
Allowed values:
countrystring

The country this card was issued in, as an ISO 3166-1 alpha-2 code.

usage_typeenum
The usage type this card was issued for.
Allowed values:
scheme_detailsobject
The card network scheme details for this card.
terminated_timedatetime or nullOptional
The date and time this card was terminated, if it has been.
binstring or nullOptional

The first 6-8 digits of the card number, as displayed to end users.

last_fourstring or nullOptional
The last four digits of the card number, as displayed to end users.
control_account_idstring or nullOptional
The control account controlling this card's spend, if one is delegated.
usage_limitsobject or nullOptional

The limits enforcing usage_type and how much of them is used. Present on single_use and single_reload cards only.

aliasstring or nullOptional

A human-readable name for this card, if one has been set.

descriptionstring or nullOptional
A description of this card's purpose, if one has been set.
spend_control_idstring or nullOptional
The spend control policy applied to this card, if one is set.
client_referenceobject or nullOptional
An opaque reference the client attached to this card for their own tracking purposes.
form_factorenumOptionalDefaults to virtual
The form of this card.
Allowed values:

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error