m2pfintech
API LibraryClick To Pay

Remove customer from Click to Pay

Remove a customer and all their enrolled cards from the Visa Click to Pay network. Use this when a cardholder opts out entirely or withdraws consent.

The entity and all associated payment instruments transition to REMOVAL_IN_PROGRESS immediately and are set to REMOVED on successful webhook confirmation.

Validations:

  1. Entity must be registered on CTP
  2. Entity CTP status must be ACTIVE
POST
/Yappay/click-to-pay/v1/removeEntity

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

Entity identifier to remove from CTP

Response Body

application/json

application/json

curl -X POST "https://api.m2p.com/Yappay/click-to-pay/v1/removeEntity" \  -H "Content-Type: application/json" \  -d '{    "entityId": "a2e3bd09-7676-4bc5-88c6-625483b29821"  }'
{
  "result": {
    "tenant": "ENDTABBY",
    "entityId": "a2e3bd09-7676-4bc5-88c6-625483b29821",
    "requestTraceId": "551562ba-83cf-11ee-b962-0242ac120004",
    "event": "CTP_REMOVE_ENTITY"
  },
  "exception": null,
  "pagination": null
}
{
  "result": null,
  "exception": {
    "detailMessage": "Not a registered Customer",
    "shortMessage": "Not a registered Customer",
    "errorCode": "Y109",
    "languageCode": "en"
  },
  "pagination": null
}