@mbanq/core-sdk-js / commands / ChangeCardType
Function: ChangeCardType()
ChangeCardType(
cardId,data):Command<{cardId:number;data: {productId:number; }; }, {id:number;resourceId:number; }>
Defined in: src/commands/rest/card.ts:432
Change card type/product
Changes the product type of an existing card. This can be used to upgrade or downgrade card features, limits, or benefits associated with different product tiers.
Parameters
cardId
number
The unique identifier of the card to modify
data
Request data including the new product ID
productId
number = ...
The new product ID to assign to the card
Returns
Command<{ cardId: number; data: { productId: number; }; }, { id: number; resourceId: number; }>
Command object that executes the API request and returns updated card info
Example
typescript
const command = ChangeCardType(67890, { productId: 789 });
const result = await client.request(command);