Add a card to an existing CTP enrollment
Enroll an additional card/kit for a customer who is already registered on Click to Pay. The entity must already have an ACTIVE CTP registration.
The operation is asynchronous. Use the returned requestTraceId to poll status.
Validations:
- Entity must already be registered on CTP (CTPCustomer record must exist)
- Entity CTP status must be ACTIVE
- Kit must be assigned to the entity
- Kit must not already be enrolled in CTP
Authorization
BearerAuth TenantHeader JWT Bearer token obtained from the /auth/login endpoint
In: header
Tenant identifier provided by M2P (e.g. ENBDTABBY)
In: header
Request Body
application/json
Entity identifier of the already CTP-registered customer
Kit number of the additional card to enroll
Response Body
application/json
application/json
curl -X POST "https://api.m2p.com/Yappay/click-to-pay/v1/addKit" \ -H "Content-Type: application/json" \ -d '{ "entityId": "f25a9f38-682b-4094-b6e4-9671d500c49b", "kitNo": "12346535" }'{
"result": {
"tenant": "ENBDTABBY",
"entityId": "f25a9f38-682b-4094-b6e4-9671d500c49b",
"requestTraceId": "451562ba-83cf-11ee-b962-0242ac120003",
"event": "CTP_ADD_KIT"
},
"exception": null,
"pagination": null
}{
"result": null,
"exception": {
"detailMessage": "Not a registered Customer",
"shortMessage": "Not a registered Customer",
"errorCode": "Y109",
"languageCode": "en"
},
"pagination": null
}Get secure card details widget URL POST
Generate a secure URL for displaying card details (card number, CVV, expiry date) via a hosted web view or APK. The URL contains a one-time random string and expires after a configured timeout period. This is the recommended secure method for displaying sensitive card details without exposing them directly in your application. The token parameter is an encrypted string composed of kitNo, entityId, and DOB (if configured). The returned URL is valid for a single use only. A new URL must be generated for each card details viewing session.
Get CTP profile with enrolled cards and token details POST
Retrieve the full Click to Pay profile for a customer, including all enrolled cards, CTP status, Visa token details, and payment instrument metadata. This is a synchronous call that fetches live data from the Visa VTS network via the CTP SaaS layer and also syncs the CTP status back to the local M2P database.
