Update Beneficiary API

The Update Beneficiary API updates an existing beneficiary for the customer in the prepaid system..

Environment

  
Sandboxhttps://payusandbox-kong.pc.enstage-sas.com/uat/sbx/api/onboarding/v3/beneficiary
ProductionContact your WIBMO KAM or support.
Sample request
curl --request PATCH \
     --url https://payusandbox-kong.pc.enstage-sas.com/uat/sbx/api/onboarding/v3/beneficiary \
     --header 'X-Consumer-Custom-ID: F42BC4E7B801C834B630DE498473533F' \
     --header 'bankId: 6060' \
     --header 'clientId: 1060' \
     --header 'content-type: application/json' \
     --header 'entityId: 100' \
     --header 'secureCode: pu8gSMLNE7pNv36IlUmstU' \
     --header 'x-api-key: 4A02C4267C9A97A1488AB3259FD1A725' \
     --data '
{
  "token": "8fxfVh1idLL19B4O5ZIYgw+4l/SAQ8pDK7yYz/3vEivzqv2VxD/Y7QFZJE+2wreYZpHxRF/qNnWizb2Ev62qv4ydSHBLok++hSp7crt3hXvO1K0TzYRxHrkYJaAquSrfOxFT0ktpN3bTd/9AfgaU2tdpUlp3MenjmIHUFdUb7jfSmHji+APVjrcDYWVCzbP6m7I5pikxE8cXMH+cOE0NAqUjokk3TFnXrBLc8E5enodVj31I7kaidXH9oClXNZq3l2CCiepp4eWekQrAEo1dpbsVR4dRZuVomNkKl4TPYu4="
}
'
Response parameters (Decrypted)

This API will provide a token in the response that must be decrypted using the Decrypt API. The decrypted response is similar to the following:

 Parameter

Type

Parameter Requirement

Description

messageCode

Numeric (4)

Mandatory

API response identifier.

clientTxnId

String (100)

Mandatory

Value echoed from the request.

responseDateTime

Numeric (14)

Mandatory

Response date time in the format YYYYMMDDHHMMSS with time in 24-hour format.

urn

Numeric (11)

Conditional

A unique reference number for the card(urn)

clientId

String (10)

Mandatory

Unique ID for the client

bankId

String (10)

Mandatory

Value echoed from the request.

responseCode

String (4)

Mandatory

Represents the status of the transaction.

responseMessage

String (100)

Mandatory

Response message based on the response code.

accosaTransactionId

Numeric (10)

Mandatory

Unique id for a particular transaction generated in Prepaid.

beneficiaryId

String (15)

Conditional

A unique Beneficiary Id got generated for the beneficiary.

accountNumber

String (15)

Conditional

Conditional with urn and customerId

newBeneficiaryType

String (15)

optional

Updated beneficiary type

 SELF / OTHERS

beneficiaryTypeCode

Numeric (2)

Mandatory

Value echoed from the request.

beneficiaryMobileNumber

Numeric (14)

Conditional

Value echoed from the request.

maxTransactionAmountPerTxn

Numeric (10)

Optional

Value echoed from the request.

maxTransactionAmountPerDay

Numeric (10)

Optional

Value echoed from the request.

maxTransactionAmountPerMonth

Numeric (10)

Optional

Value echoed from the request.

maxCountTransactionPerDay

Numeric (10)

Optional

Value echoed from the request.

maxCountTransactionPerMonth

Numeric (10)

Optional

Value echoed from the request.

Sample response (Decrypted)
{
    "responseCode": "00",
    "messageCode": 20001,
    "clientTxnId": "SeUNjc1705652745",
    "clientId": "2030",
    "responseDateTime": "20240119135546",
    "accosaTransactionId": 11375,
    "responseMessage": "SUCCESS",
    "bankId": 7030,
    "beneficiaryId": "37477009",
    "newBeneficiaryType": "SELF",
    "beneficiaryTypeCode": 1
}
Error codes
Error CodeDescription
00SUCCESS
1030INVALID MESSAGE
1031INVALID BANK ID
1032INVALID_CLIENT_CHANNEL
1034INVALID MOBILE NUMBER
1034INVALID MOBILE NUMBER
1049INVALID SECURE CODE
1052SYSTEM_ERROR
1054DUPLICATE REQUEST
1055MALFORMED_REQUEST
1085PRODUCT NOT ALLOWED
1093INVALID CLIENT TXN ID
1262CLIENT ID NOT PRESENT IN THE REQUEST
1264BANK ID NOT PRESENT IN THE REQUEST
1276INVALID BENEFICIAY MOBILE NUMBER
1279BENEFICIARY IS BLOCKED
1311SECURE CODE NOT PRESENT IN REQUEST
1320REQUEST_DATETIME_IS_MANDATORY
7905INVALID BENEFICIARY LIMIT
7920BENEFICIARY MOBILE NUMBER CANNOT BE UPDATED AS BENEFICIARY MODE IS NOT 3
7921BENEFICIARY ALREADY EXIST WITH THIS MOBILE NUMBER
7922BENEFICIARY ALREADY EXIST WITH THIS NAME
7923BENEFICIARY ALREADY EXIST WITH THIS EMAIL
7924REQUEST AMOUNT PER TXN EXCEEDS GLOBAL LIMIT
7925REQUEST DAILY LIMIT EXCEEDS GLOBAL LIMIT
7926REQUEST MONTHLY LIMIT EXCEEDS GLOBAL LIMIT
7927REQUEST DAILY FREQUENCE EXCEEDS GLOBAL LIMIT
7928REQUEST MONTHLY FREQUENCE EXCEEDS GLOBAL LIMIT
10043Invalid Mobile Number Length
10048INVALID EMAIL FORMAT
10080INVALID BENEFICIARY ID
10081INVALID BENEFICIARY TYPE
30082BENEFICIARY ID NOT PRESENT

Request parameters

Language
Click Try It! to start a request and see the response here!