Skip to main content

Customer Registration

POST

Register an individual or business customer with RHUB and obtain the customer code used on subsequent transactions.

When to use this API

Customer Registration is not a mandatory call before every payout, and it is not a prerequisite for a quotation — you can price a transaction first with a blank customerCode and resolve registration afterwards. Which path applies depends on whether RHUB already knows the customer.

Existing customer

RHUB already holds the customer. Continue with the customer code you hold — at quotation and at payout. No further registration is needed.

New customer, registered before payout

The customer is not yet known to RHUB and you want to register them as a separate step. After the quotation, register the customer with the Customer Registration API and use the resulting customer code for the payout.

New customer, registered on the fly

The customer is not yet known to RHUB and you want to register them as part of the payout. RHUB supports registration inside the Payout flow, governed by isAutoRegistered and the sender details the Payout contract defines. No separate Customer Registration call is needed.

Coded fields in the request draw their values from the master APIs — for example Business Type, Business Registration Type, Nature of Business, Customer Legal Status, Occupation and Document ID Type.

Contract

There are two methods for registering a customer:

  • Using this API.
  • On-the-fly registration during payout.

If you choose auto-registration (on-the-fly registration) during payout, this API is not required.

POSThttp://host/ewallet/api/v1/customer-registration

The Customer-Registration API is used to register or create the customer in the system.

Request Parameter of Business Customer

ParametersInput TypeLengthRequirementDescription
customerTypeCodeNumeric06MIndividual : 100001, Business : 100002 eg: 100002
customerSubTypeCodeNumeric06M100001
serviceTypeCodeAlpha07MREGULAR
docReferenceNumberAlphanumeric10 - 30M10 digit unique doc reference number, used while uploading document. eg: GHJ7K87GJGG6 (should contains 10 to 30 digits alpha numeric only)
walletOwnerCodeNumeric10MSend Client Code. eg:1000009999
tradeNameAlphanumeric01 - 70MCompany trade name. eg: Hcl tech
natureOfBusinessCodeAlphanumeric06 - 10MSelect the suited data received from nature of business Api. (eg: RHT011 , refer NatureOfBusinessApi )
dialCodeAlphanumeric with '+' symbol02 - 04CCountry dial code. eg: +1, +91 note: Required when the contact number dial code does not match the selected country code.
mobileNumberAlphanumeric07 - 20MContact number. eg: 9090909090
emailAlphanumeric + special characters (Email format)01 - 50MEmail id of customer. eg: hcl@gmail.com
addressLine1Alphanumeric01 - 35MAddress detail of business. eg: A455 Wall street
countryCodeAlpha03M3-digit Country code of business's address. eg:MWI,DZA etc
stateAlpha01 - 50MState eg: Delhi
cityAlpha01 - 50MCity eg: Delhi
pincodeAlphanumeric01 - 10MPincode eg: SDFC2345
businessRelationshipCodeNumeric06Ofor International Remittance use : 100003, for Others use : 100004
businessAuthorizedPersonAlpha01 - 50OThe authorized person in the company. eg: John Wick
legalStatusCodeAlphanumeric06 - 10MSelect the suited data received from Business Registration Type/Legal Status API from Master. (eg: RHB002 , refer LegalStatusApi)
idNumberAlphanumeric01 - 50MBusiness registration/license number. eg: GJJKJHKJH889GJ
idCountryAlpha03MBusiness registration/license country code, eg: MWI,USD etc
issueDateDate10 - 19MBusiness registration/license issue date in yyyy-mm-dd format. eg: 1999-09-12
idExpiryDateDate10 - 19MBusiness registration/license expiry date in yyyy-mm-dd format. eg: 1999-09-12
ownerDetailList
//for individual owner
customerTypeCodeNumeric06Mfor Individual owner : 100001
firstNameAlpha01 - 75MFirst name of owner. eg: John
lastNameAlpha02 - 75MLast name of owner. eg: Sharma
dateOfBirthDate10 - 19MDate of birth of owner in yyyy-mm-dd format. eg: 1999-09-12
genderAlpha01 - 10MGender of owner (male, female, other)
addressLine1Alphanumeric01 - 35MAddress detail of owner. eg: 89WE jane street
countryCodeAlpha03M3-digit Country code of owner's address. eg: MWI,DZA etc
stateAlpha01 - 50MState. eg: Delhi
cityAlpha01 - 50MCity eg: Delhi
pincodeAlphanumeric01 - 10MPincode eg: SDFC2345
idTypeCodeAlphanumeric06 - 10MThe predefined code corresponding to the different document types for business. eg: eg: RHD006 (for more info, please refer to DocumentTypeApi)
idNumberAlphanumeric01 - 50MId numder of the Id proof provided for Kyc. eg:JHGHG987KIUK
idCountryAlpha03M3-digit Country code of country where id issued. eg: USA, IND
//for business owner
customerTypeCodeNumeric06Mfor Business owner : 100002
companyNameAlphanumeric01 - 70MBusiness company/Trade name eg: hcl tech
addressLine1Alphanumeric01 - 35MAddress detail of company eg: HG68 WASHINGTON ROAD
countryCodeAlpha03M3-digit Country code of company. eg: USA, CHN
stateAlpha01 - 50MState eg: Delhi
cityAlpha01 - 50MCity eg: New york

Requirement legend: M = Mandatory · O = Optional · C = Conditional

Request Details of Business Customer

POST /services HTTP/1.0
HOST: XXX.XXX.XXX.XXX:Port
Content-Type: application/json; charset=utf-8
POST http://host/ewallet/api/v1/customer-registration
{
"customerTypeCode": "100002",
"customerSubTypeCode": "100001",
"serviceTypeCode": "REGULAR",
"docReferenceNumber": "CUS1234571",
"walletOwnerCode": "1000008398",.
"tradeName": "Example Trading Ltd",
"natureOfBusinessCode": "RHT010",
"mobileNumber": "9099998987",
"email": "john.doe@example.com",
"addressLine1": "malawi",
"countryCode": "MWI",
"state": "malawi",
"city": "malawi",
"pincode": "676567",
"businessRelationshipCode": "100003",
"businessAuthorizedPerson": "Example",
"legalStatusCode": "RHB002",
"idNumber": "ID321412123123",
"idCountry": "CAN",
"issueDate": "2024-08-22",
"idExpiryDate": "2024-08-31",
"ownerDetailList": [
{
"customerTypeCode": "100001",
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "2006-08-22",
"gender": "male",
"companyName": "",
"addressLine1": "malawi",
"countryCode": "MWI",
"state": "Malawi",
"city": "malawi",
"pincode": "121122",
"idTypeCode": "RHD002",
"idNumber": "ID1212121212",
"idCountry": "IND",
},
{
"customerTypeCode": "100002",
"companyName": "Example Trading Ltd",
"addressLine1": "malawi",
"countryCode": "MWI",
"state": "malawi",
"city": "malawi",
}
]
}

Response Details of Business Customer

{
"transactionId": "7915520",
"requestTime": "Mon Feb 03 11:51:46 IST 2025",
"responseTime": "Mon Feb 03 11:51:47 IST 2025",
"resultCode": "0",
"resultDescription": "Transaction successful",
"customerRegistration": {
"code": "1000000645",
"customerTypeCode": "100002",
"customerSubTypeCode": "100001",
"walletOwnerCode": "1000008398",
"customerId": "100000000000002B",
"fullName": "Example Trading Ltd",
"tradeName": "Example Trading Ltd",
"natureOfBusinessCode": "RHT010",
"mobileNumber": "9099998987",
"addressLine1": "malawi",
"city": "malawi",
"state": "malawi",
"pincode": "676567",
"countryCode": "MWI",
"idNumber": "ID321412123103",
"idCountry": "CAN",
"issueDate": "2024-08-22T00:00:00.000+0530",
"idExpiryDate": "2024-08-31T00:00:00.000+0530",
"screeningStatus": "IP",
"customerStatus": "Active",
"customerState": "System Approved",
"customerStateCode": "AA",
"countryName": "Malawi",
"idCountryName": "Canada",
"natureOfBusinessName": "Banking",
"customerTypeName": "Juridical Owner",
"creationDate": "2025-02-03T11:51:46.907+0530",
"createdBy": "105513",
"sendClientName": "Example Trading Ltd",
"docReferenceNumber": "DOC1234567",
"walletOwnerName": "Example Trading Ltd",
"logoUrl": "/fileUpload/download/1000008398/Example_logo.jpeg",
"sendClientAddress": "123 Example Street, Blantyre, Blantyre, Malawi",
"sendClientMobileNo": "265768568432",
"registrationApprovedBy": "EXAMPLE",
"registrationNumber": "ID321412123103",
"ownerDetailList": [
{
"code": "1000000458",
"customerTypeCode": "100001",
"ownerId": "100000000000002B00",
"customerCode": "1000000645",
"firstName": "John",
"middleName": "",
"lastName": "Doe",
"companyName": "",
"fullName": "John Doe",
"gender": "male",
"nationality": "",
"dateOfBirth": "2006-08-22 00:00:00",
"email": "",
"mobileNumber": "",
"addressLine1": "malawi",
"addressLine2": "",
"city": "malawi",
"state": "Malawi",
"pincode": "121122",
"countryCode": "MWI",
"residenceStatusCode": "",
"transactionVolumeCode": "",
"idTypeCode": "RHD002",
"idNumber": "ID1212121212",
"idIssuedBy": "",
"idCountry": "IND",
"screeningStatus": "IP",
"screeningScore": "",
"screeningUniqueId": "",
"screeningUrl": "",
"creationDate": "2025-02-03T11:51:46.998+0530",
"ownerStatus": "Active",
"ownerState": "System Approved",
"ownerStateCode": "AA",
"dialCode": "",
"businessAuthorizedPerson": "",
"source": ""
},
{
"code": "1000000459",
"customerTypeCode": "100002",
"ownerId": "100000000000002B00",
"customerCode": "1000000645",
"firstName": "",
"middleName": "",
"lastName": "",
"companyName": "Example Trading Ltd",
"fullName": "",
"gender": "",
"nationality": "",
"email": "",
"mobileNumber": "",
"addressLine1": "malawi",
"addressLine2": "",
"city": "malawi",
"state": "malawi",
"pincode": "121212",
"countryCode": "MWI",
"residenceStatusCode": "",
"transactionVolumeCode": "",
"idTypeCode": "",
"idNumber": "",
"idIssuedBy": "",
"idCountry": "",
"screeningStatus": "IP",
"screeningScore": "",
"screeningUniqueId": "",
"screeningUrl": "",
"creationDate": "2025-02-03T11:51:47.335+0530",
"ownerStatus": "Active",
"ownerState": "System Approved",
"ownerStateCode": "AA",
"dialCode": "",
"businessAuthorizedPerson": "",
"source": ""
}
],
"autoRegistered": false
}
}

Request Parameter of Individual Customer

ParametersInput TypeLengthRequirementDescription
customerTypeCodeNumeric06MIndividual : 100001, Business : 100002 eg: 100001
customerSubTypeCodeNumeric06M100001
serviceTypeCodeAlpha07MREGULAR
docReferenceNumberAlphanumeric10 - 30M10 digit unique doc reference number, used while uploading document. eg: GHJ7K87GJGG6 (should contains 10 to 30 digits alpha numeric only)
walletOwnerCodeNumeric10MSend Client Code for which the customer is being registered eg:1000009999
firstNameAlpha01 - 75MFirst name of customer eg: John
lastNameAlpha02 - 75MLast name of customer eg: Sharma
dateOfBirthDate10 - 19MCustomer's date of birth in yyyy-mm-dd format. eg: 1999-09-12
genderAlpha01 - 10MCustomer's gender. (male, female, other)
nationalityAlpha03MNationality of customer in 3-digit Country code format. eg:DZA,USA etc
dialCodeAlphanumeric with '+' symbol02 - 04CCountry dial code. eg: +1, +91 note: Required when the contact number dial code does not match the selected country code.
mobileNumberAlphanumeric07 - 20MContact number. eg: 9090909090
emailAlphanumeric + special characters (Email format)01 - 50MEmail id of customer. eg: hcl@gmail.com
addressLine1Alphanumeric01 - 35MAddress details of customer eg: A455 Wall street
countryCodeAlpha03M3-digit Country code of customer's residence. eg:MWI,DZA etc
stateAlpha01 - 50MState of customer's residence eg: Delhi
cityAlpha01 - 50MCity of customer's residence eg: Delhi
pincodeAlphanumeric01 - 10MAddress pincode eg: SDFC2345
occupationCodeAlphanumeric06 - 10MSelect the suited data received from Occupation API from Master. ( eg RHO016 refer OccupationApi )
jobTitleAlpha01 - 50ODesignation of customer's job profile
jobIndustryAlpha01 - 50OJob industry of customer
idTypeCodeAlphanumeric06 - 10MThe predefined code corresponding to the different document types for individual. eg RHD002 (for more info, please refer to DocumentTypeApi)
idNumberAlphanumeric01 - 50MId numder of the Id proof provided for Kyc eg:JHGHG987KIUK
issueDateDate10 - 19MIssue date of the Id proof provided for Kyc in yyyy-mm-dd format. eg: 1999-09-12
idExpiryDateDate10 - 19MExpiry date of the Id proof provided for Kyc in yyyy-mm-dd format. eg: 2026-09-12

Requirement legend: M = Mandatory · O = Optional · C = Conditional

Request Details of Individual Customer

POST /services HTTP/1.0
HOST: XXX.XXX.XXX.XXX:Port
Content-Type: application/json; charset=utf-8
POST http://host/ewallet/api/v1/customer-registration

{
"customerTypeCode": "100001",
"customerSubTypeCode": "100001",
"docReferenceNumber": "CUS1234569",
"serviceTypeCode": "REGULAR",
"walletOwnerCode": "1000008438",
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "2006-08-22",
"occupationCode": "RHO016",
"jobTitle": "Job Title",
"jobIndustry": "Job Industry",
"gender": "female",
"nationality": "IND",
"mobileNumber": "9099998987",
"email": "john.doe@example.com",
"addressLine1": "123 Example Street",
"countryCode": "TZA",
"state": "tanzania",
"city": "tanzania",
"pincode": "232222",
"idTypeCode": "RHD002",
"idNumber": "ID2121121212",
"issueDate": "2024-08-22",
"idExpiryDate": "2029-01-09"
}

Response Details of Individual Customer

{
"transactionId": "9226196",
"requestTime": "Mon Feb 03 11:49:51 IST 2025",
"responseTime": "Mon Feb 03 11:49:51 IST 2025",
"resultCode": "0",
"resultDescription": "Transaction successful",
"customerRegistration": {
"code": "1000002221",
"customerTypeCode": "100001",
"customerSubTypeCode": "100001",
"walletOwnerCode": "1000008929",
"customerId": "100000000000004I",
"firstName": "John",
"lastName": "Doe",
"fullName": "John Doe",
"nickName": "John",
"tradeName": "John Doe",
"gender": "male",
"nationality": "IND",
"dateOfBirth": "1989-08-28",
"mobileNumber": "9800000087",
"addressLine1": "india",
"city": "delhi",
"state": "delhi",
"pincode": "544444",
"countryCode": "MWI",
"idTypeCode": "RHD002",
"idNumber": "ID31232444444",
"screeningStatus": "IP",
"customerStatus": "Active",
"customerState": "System Approved",
"customerStateCode": "AA",
"nationalityName": "India",
"countryName": "Malawi",
"customerTypeName": "Individual",
"creationDate": "2025-02-03T11:49:51.259+0530",
"createdBy": "105732",
"sendClientName": "EXAMPLE",
"docReferenceNumber": "CUS1234570",
"walletOwnerName": "EXAMPLE",
"logoUrl": "/fileUpload/download/1000008929/logo 1DADANADA.jpg",
"sendClientAddress": "Malawi, Malawi, Blantyre, Blantyre, Malawi",
"sendClientMobileNo": "26533545636654",
"idTypeName": "Passport ",
"registrationApprovedBy": "EXAMPLE",
"registrationNumber": "ID31232444444",
"createdByCode": "1000008929",
"createdByName": "EXAMPLE",
"autoRegistered": false
}
}