m2pfintech
API LibraryCard Management

Update a single card transaction channel preference

Enable or disable a single transaction channel for a customer card. This API updates one preference at a time. For bulk preference updates, use the setPreferences API instead which is more efficient.

Changes take effect immediately after a successful response. Use status ALLOWED to enable a channel and NOTALLOWED to disable it.

Supported channel types are ATM (cash withdrawals), POS (point of sale purchases), ECOM (online purchases), CONTACTLESS (tap-to-pay NFC payments), INTERNATIONAL (foreign currency transactions), and DCC (dynamic currency conversion at merchant).

POST
/Yappay/business-entity-manager/updatePreferenceExternal

Authorization

BearerAuth TenantHeader
AuthorizationBearer <token>

JWT Bearer token obtained from the /auth/login endpoint

In: header

TENANT<token>

Tenant identifier provided by M2P (e.g. ENBDTABBY)

In: header

Request Body

application/json

entityId*string

Customer ID for preference lookup

Lengthlength <= 16
status*string

Preference status value. Use ALLOWED to enable the channel and NOTALLOWED to disable it.

Value in"ALLOWED" | "NOTALLOWED"
type*string

Transaction channel type to update. ATM for cash withdrawals, POS for store purchases, ECOM for online purchases, CONTACTLESS for tap-to-pay, INTERNATIONAL for foreign transactions, DCC for dynamic currency conversion.

Value in"ATM" | "POS" | "ECOM" | "CONTACTLESS" | "INTERNATIONAL" | "DCC"
kitNo?string

Kit number to apply preference to. Optional - if not provided, applies to the primary card.

Lengthlength <= 20

Response Body

application/json

curl -X POST "https://api.m2p.com/Yappay/business-entity-manager/updatePreferenceExternal" \  -H "Content-Type: application/json" \  -d '{    "entityId": "ABCDEF",    "status": "NOTALLOWED",    "type": "DCC"  }'

{
  "result": true,
  "exception": null,
  "pagination": null
}