Skip to main content

Enroll Card

Method : POST
URL : https://open.revenuemonster.my/v3/vop/enroll-card
Sandbox URL : https://sb-open.revenuemonster.my/v3/vop/enroll-card

note
  • Enroll card to Visa's VOP with RM.

Request Parameters

ParameterTypeRequiredDescriptionExample
userIdStringYesUser ID provided by us during enrollment"1699331101742889953"
cardPanStringYesCard number of the user"4364484100392451"
nameStringYesName of the card"Ambank Visa Infinite"

Example Request


curl --location --request POST "https://sb-open.revenuemonster.my/v3/vop/enroll-card" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjIwMTgtMDMtMTMiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiKiJdLCJleHAiOjE1MjE2MjkyNTYsImlhdCI6MTUyMTYyMjA1NywiaXNzIjoiaHR0cHM6Ly9zYi1vYXV0aC5yZXZlbnVlbW9uc3Rlci5teSIsImp0aSI6IkVod0tFRTlCZFhSb1FXTmpaWE56Vkc5clpXNFF5cmYza3EzTDY4QnoiLCJuYmYiOjE1MjE2MjIwNTcsInN1YiI6IkVoUUtDRTFsY21Ob1lXNTBFSlhWemQzd3JhcVRPUklRQ2dSVmMyVnlFSXlKcUl6dnlNUFZjUSJ9.dJknY9MZHLNrKx1p7gZxS0_oA3uXLWplDU1r1dpwxIbmdB6yw4tQBTXKlWArDfKLlBDn6v22_gT5Px7sdCMj7e5M9eRoJoMnoPnslgYpmJJ5kjqAbKU7dUxKb1OzFLrvmtSK9r-FRLVtMFHioWYpwgSvSPBgZ6lAYkUyDzH7aKadFYtQcBuJR0hlq2CXtP0mzbHOeu2q6giONf3E5-XqS8lLRtuHPAbJ7_YFwo0Oe2zc6h05IOocmx_NvBVPfDBnuygTU063h70Q987MYeGDV_Os4N6N_I4b-GoHprEPtmntB1RJPrFrY28hvvoUfDHXHZVXT1GlrsozrkWV4EjbTw" \
--header "X-Signature: sha256 Sty3LNcKA8+WlMHtAgIY+y1xbwnzKsN0UdyKaW+yYIgcTkBAtF7G5Lx251qQITURJ4wiXPDODxhs1nFVmBBing==" \
--header "X-Nonce-Str: VYNknZohxwicZMaWbNdBKUrnrxDtaRhN" \
--header "X-Timestamp: 1528450585" \
--data "{
"userId": "1699331101742889953",
"cardPan": "4364484100392451",
"name": "Ambank Visa Infinite"
}"

Response Parameters

ParameterTypeDescriptionExample
item.idStringRM VOP Card ID"1699331146943520156"
item.userIdStringRM VOP User ID"1699331101742889953"
item.nameStringName of the card"Ambank Visa Infinite"
item.panLastFourStringLast four number of the card"2451"
item.typeStringType of card"CREDIT"
item.createdAtStringUser Enrolled Time"2023-11-07T04:25:46Z"
item.updatedAtStringUser Enrolled Time"2023-11-07T04:25:46Z"
codeStringStatus of the enrollment"SUCCESS"

Example Response

{
"item": {
"id": "1699331146943520156",
"userId": "1699331101742889953",
"name": "Ambank Visa Infinite",
"panLastFour": "2451",
"type": "CREDIT",
"createdAt": "2023-11-07T04:25:46Z",
"updatedAt": "2023-11-07T04:25:46Z"
},
"code": "SUCCESS"
}