Skip to main content
POST
/
v1
/
cards
/
{cardId}
/
unblock
JavaScript
import Chron from '@chron/sdk';

const client = new Chron({
  apiKey: 'My API Key',
});

const card = await client.cards.unblock('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');

console.log(card.cardId);
{
  "cardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "clientReference": "<string>",
  "status": "WAITING_ACTIVATION",
  "initialBalance": 123,
  "currentBalance": 123,
  "expiryDate": "2023-11-07T05:31:56Z",
  "design": "<string>",
  "metadata": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "activatedAt": "2023-11-07T05:31:56Z",
  "cancelledAt": "2023-11-07T05:31:56Z",
  "cancellationAmount": 123,
  "cancellationAction": "EXPIRY",
  "transactions": [
    {
      "transactionId": "<string>",
      "amount": 123,
      "type": "LOAD",
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

cardId
string<uuid>
required

Unique identifier for the card.

Response

Card unblocked successfully.

cardId
string<uuid>
required

Unique identifier for the card.

clientReference
string
required

Unique identifier provided by the client to prevent duplication.

status
enum<string>
required

Current status of the card.

Available options:
WAITING_ACTIVATION,
ACTIVE,
CANCELLED,
BLOCKED,
REISSUED,
EXPIRED
initialBalance
number
required

The starting balance on the card.

expiryDate
string<date-time>
required

The date and time when the card expires.

design
string
required

The design or template selected for the card.

metadata
object
required

Updateable custom data associated with the card.

createdAt
string<date-time>
required

Timestamp when the card was created.

updatedAt
string<date-time>
required

Timestamp when the card was last updated.

currentBalance
number

The current available balance.

activatedAt
string<date-time>

Timestamp when the card was activated (if applicable).

cancelledAt
string<date-time>

Timestamp when the card was cancelled (null if not cancelled).

cancellationAmount
number

The amount that was unloaded from the card at cancellation (null if not cancelled).

cancellationAction
enum<string>

Action that led to the card's cancellation.

Available options:
EXPIRY,
CANCELLATION,
REISSUE
transactions
object[]

A list of transactions associated with the card.

I