Skip to content

@mbanq/core-sdk-js v0.50.0


@mbanq/core-sdk-js / commands / ActivateCard

Function: ActivateCard()

ActivateCard(cardId): Command<{ cardId: number; command: "TERMINATE" | "SUSPEND" | "REACTIVATE" | "ACTIVATE"; }, { cardToken: string; clientId: number; id: number; resourceId: number; }>

Defined in: src/commands/rest/card.ts:1190

Activate a card

Activates a card that has been issued but not yet activated. This is typically required for new cards or cards that were previously suspended. Activation enables the card for transactions according to its configured features.

Parameters

cardId

number

The unique identifier of the card to activate

Returns

Command<{ cardId: number; command: "TERMINATE" | "SUSPEND" | "REACTIVATE" | "ACTIVATE"; }, { cardToken: string; clientId: number; id: number; resourceId: number; }>

Command object that executes the API request and returns activation details

Example

typescript
const command = ActivateCard(67890);
const result = await client.request(command);

Released under the MIT License.