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:

 ParameterTypeParameter RequirementDescription
messageCodeNumeric (4)MandatoryAPI response identifier.
clientTxnIdString (100)MandatoryValue echoed from the request.
responseDateTimeNumeric (14)MandatoryResponse date time in the format YYYYMMDDHHMMSS with time in 24-hour format.
urnNumeric (11)ConditionalA unique reference number for the card(urn)
clientIdString (10)MandatoryUnique ID for the client
bankIdString (10)MandatoryValue echoed from the request.
responseCodeString (4)MandatoryRepresents the status of the transaction.
responseMessageString (100)MandatoryResponse message based on the response code.
accosaTransactionIdNumeric (10)MandatoryUnique id for a particular transaction generated in Prepaid.
beneficiaryIdString (15)ConditionalA unique Beneficiary Id got generated for the beneficiary.
accountNumberString (15)ConditionalConditional with urn and customerId
newBeneficiaryTypeString (15)optionalUpdated beneficiary type

 SELF / OTHERS
beneficiaryTypeCodeNumeric (2)MandatoryValue echoed from the request.
beneficiaryMobileNumberNumeric (14)ConditionalValue echoed from the request.
maxTransactionAmountPerTxnNumeric (10)OptionalValue echoed from the request.
maxTransactionAmountPerDayNumeric (10)OptionalValue echoed from the request.
maxTransactionAmountPerMonthNumeric (10)OptionalValue echoed from the request.
maxCountTransactionPerDayNumeric (10)OptionalValue echoed from the request.
maxCountTransactionPerMonthNumeric (10)OptionalValue 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
URL
Click Try It! to start a request and see the response here!