Skip to content

@mbanq/core-sdk-js v0.50.0


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

Function: UpdateCardLimit()

UpdateCardLimit(cardId, data): Command<{ cardId: number; data: { atm?: object[]; purchase?: object[]; }; }, { changes: { velocityRules: object[]; }; clientId: number; id: number; resourceId: number; }>

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

Update card limits and velocity rules

Updates transaction limits and velocity rules for a card including daily/monthly limits, per-transaction limits, and specific limits for different transaction types.

Parameters

cardId

number

The unique identifier of the card to update

data

atm?

object[] = ...

purchase?

object[] = ...

Returns

Command<{ cardId: number; data: { atm?: object[]; purchase?: object[]; }; }, { changes: { velocityRules: object[]; }; clientId: number; id: number; resourceId: number; }>

Command object that executes the API request and returns updated limits

Example

typescript
const command = UpdateCardLimit(67890, {
  purchase: [{
    single: {
      transactionAmount: 1000,
      numberOfTransactions: 5
    },
    daily: {
      transactionAmount: 5000,
      numberOfTransactions: 20
    }
  }],
  atm: [{
    daily: {
      transactionAmount: 2000,
      numberOfTransactions: 10
    }
  }]
});
const result = await client.request(command);

Released under the MIT License.