@mbanq/core-sdk-js / commands / AddAcquiredCard
Function: AddAcquiredCard()
AddAcquiredCard(
clientId,params):Command<{clientId:number;params: {cardData:string; }; }, {clientId:number;id:number;officeId:number;resourceId:number; }>
Defined in: src/commands/rest/acquiredCard.ts:109
Adds an acquired card to a client
Adds an acquired card to a client by storing the card information in the client's external cards list. This endpoint allows you to add a card that was obtained from an external source or integrated system to a client's list of acquired cards.
Parameters
clientId
number
The unique identifier of the client
params
cardData
string = ...
Object containing the card data to add
Returns
Command<{ clientId: number; params: { cardData: string; }; }, { clientId: number; id: number; officeId: number; resourceId: number; }>
Command object that executes the API request and returns the added acquired card details
const command = AddAcquiredCard(12345, {
cardData: 'cardData'
});