@mbanq/core-sdk-js / commands / GetCardById
Function: GetCardById()
GetCardById(
cardId):Command<{cardId:number; }, {accountId:number;activatedAt?: {date:number[];time: {hour:number;minute:number;nano:number;second:number; }; };atmWithdrawalsEnabled:boolean;bid:number;businessCardIDEnabled:boolean;cardNumber:number;cardProcessorName:string;cardType:string;contactlessPaymentEnabled:boolean;digitalFirst:boolean;embossedNames:string[];expiresOn:number[];fulfillmentStatus:string;id:number;internationalPaymentsEnabled:boolean;maximumAllowedVelocityRules:object[];mergedVelocityRules:object[];network:string;onlinePaymentEnabled:boolean;physicalCardActivated:boolean;posPaymentEnabled:boolean;primaryAccountNumber:string;printAccountNickname:boolean;productId:number;productName:string;registeredOn:number[];replacedDamageCount:number;status:string;token:string;updatedStatusAt?:string;updatedStatusBy?: {string;firstname:string;id:number;isEmailVerified:boolean;isSelfServiceUser:boolean;lastname:string;officeId:number;officeName:string;username:string; };user?: {string;firstname:string;id:number;isEmailVerified:boolean;isSelfServiceUser:boolean;lastname:string;officeId:number;officeName:string;username:string; };velocityRules:object[];virtual:boolean; }>
Defined in: src/commands/rest/card.ts:190
Get card details by ID
Retrieves detailed information for a specific card using its unique identifier. Returns comprehensive card data including limits, features, and status.
Parameters
cardId
number
The unique identifier of the card
Returns
Command<{ cardId: number; }, { accountId: number; activatedAt?: { date: number[]; time: { hour: number; minute: number; nano: number; second: number; }; }; atmWithdrawalsEnabled: boolean; bid: number; businessCardIDEnabled: boolean; cardNumber: number; cardProcessorName: string; cardType: string; contactlessPaymentEnabled: boolean; digitalFirst: boolean; embossedNames: string[]; expiresOn: number[]; fulfillmentStatus: string; id: number; internationalPaymentsEnabled: boolean; maximumAllowedVelocityRules: object[]; mergedVelocityRules: object[]; network: string; onlinePaymentEnabled: boolean; physicalCardActivated: boolean; posPaymentEnabled: boolean; primaryAccountNumber: string; printAccountNickname: boolean; productId: number; productName: string; registeredOn: number[]; replacedDamageCount: number; status: string; token: string; updatedStatusAt?: string; updatedStatusBy?: { email: string; firstname: string; id: number; isEmailVerified: boolean; isSelfServiceUser: boolean; lastname: string; officeId: number; officeName: string; username: string; }; user?: { email: string; firstname: string; id: number; isEmailVerified: boolean; isSelfServiceUser: boolean; lastname: string; officeId: number; officeName: string; username: string; }; velocityRules: object[]; virtual: boolean; }>
Command object that executes the API request and returns card details
Example
const command = GetCardById(67890);
const card = await client.request(command);