Enroll User
Enroll a user into Visa's Offers Platform (VOP) via RM. The first card supplied with the user is automatically registered alongside the user record.
When to Use
▾
Use this endpoint when:
- Registering a new user for card-linked offers
- Onboarding a cardholder into a cashback or rewards program
How to Use
▾
/v3/vop/enroll-userStep 1: Collect User and Card Details
▾
Generate a unique userId (15-char random string), then collect the user's card PAN, card name, and the webhook notifyUrl for transaction events.
Step 2: Send the Enrollment Request
▾
POST the payload to /v3/vop/enroll-user with signed authentication headers.
Step 3: Store the IDs
▾
The response returns the RM-issued user.id and card.id. Use these for Enroll Card, Unenroll Card, or Unenroll User.
Request Parameters
▾
Provide a random generated 15 length string
Example: "KCac44i8NmtnUBo"
Card number of the user
Example: "4364484100392449"
Name of the card
Example: "Ambank Visa Infinite"
Notify Url
Example: "https://google.com"
Response Parameters
▾
Enrollment record.
Card details
RM VOP Card ID
Example: "1699331101967521138"
RM VOP User ID
Example: "1699331101742889953"
Name of the card
Example: "Ambank Visa Infinite"
Last four number of the card
Example: "2449"
Type of card
Example: "CREDIT"
Card Enrolled Time
Example: "2023-11-07T04:25:00Z"
Card Last Updated time
Example: "2023-11-07T04:25:00Z"
User details
RM VOP User ID
Example: "1699331101742889953"
User Enrolled Time
Example: "2023-11-07T04:25:00Z"
User Last Updated Time
Example: "2023-11-07T04:25:00Z"
`"SUCCESS"` if enrollment succeeded. Otherwise returns an error code. See [Error Codes](../error-codes).
Example: "SUCCESS"