Skip to content

@mbanq/core-sdk-js v0.50.0


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

Function: DeactivatePrepaidCard()

DeactivatePrepaidCard(params): Command<{ params: { prepaidCardId: number; primaryAccountId: number; }; }, { id: string; resourceId: number; savingsId: number; }>

Defined in: src/commands/rest/prepaidCard.ts:213

Deactivate Prepaid Card

Deactivates a prepaid card effectively. This API allows you to disable an existing card, ensuring that it can no longer be used for transactions. Whether you are managing lost or stolen cards or intentionally deactivating the card, this functionality provides a secure and efficient way to protect your funds.

Parameters

params

The parameters object

prepaidCardId

number = ...

The associated prepaid card id

primaryAccountId

number = ...

The associated primary account id

Returns

Command<{ params: { prepaidCardId: number; primaryAccountId: number; }; }, { id: string; resourceId: number; savingsId: number; }>

Command object that executes the API request and returns deactivation confirmation

Example

typescript
const command = DeactivatePrepaidCard({ primaryAccountId: 234, prepaidCardId: 565 });
const result = await client.request(command);
console.log(result.id); // '114'
console.log(result.resourceId); // 114
console.log(result.savingsId); // 66

Released under the MIT License.