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_id
Request
This endpoint expects an object.
spend_control_id
The ID of the spend control to assign to the card.
Response
The updated card.
card_id
Penny's unique identifier for this card.
version
A number that increases each time this card's details change. Use it to confirm you are looking at the latest information.
version_time
The date and time this card's details were last changed.
issued_time
The date and time this card was issued.
expiration_date
The date this card expires and can no longer be used.
bin_id
The BIN this card was issued under.
bin_range_id
The BIN range this card was issued under.
card_product_id
The card product this card was issued under.
business_id
The business that owns this card.
business_entity_id
The business entity associated with this card.
program_id
The program this card was issued under.
capital_account_id
The account this card draws funds from.
cardholder_id
The cardholder this card is issued to.
status
This card's current lifecycle status.
Allowed values:
active
Whether this card is currently able to authorize transactions.
terminated
Whether this card has been permanently terminated.
currency
The currency this card transacts in.
Allowed values:
country
The country this card was issued in, as an ISO 3166-1 alpha-2 code.
usage_type
The usage type this card was issued for.
Allowed values:
scheme_details
The card network scheme details for this card.
terminated_time
The date and time this card was terminated, if it has been.
bin
The first 6-8 digits of the card number, as displayed to end users.
last_four
The last four digits of the card number, as displayed to end users.
control_account_id
The control account controlling this card's spend, if one is delegated.
usage_limits
The limits enforcing usage_type and how much of them is used. Present on single_use and single_reload cards only.
alias
A human-readable name for this card, if one has been set.
description
A description of this card's purpose, if one has been set.
spend_control_id
The spend control policy applied to this card, if one is set.
client_reference
An opaque reference the client attached to this card for their own tracking purposes.
form_factor
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