This API is available to Partner Institutions to update the profile details of all New-To-Bank (NTB) customers, i.e. customers that do not hold any bank products other than the retail account opened by the Partner, in the bank records.
Version 1.0.1 :
- Updated the allowed values for document/type to EMID
- Updated to allow details of prepaid card customers to be updated by passing customer_id_type as Emirates_ID
Version 1.1.0
- Added addresses, phones and emails fields to allow customer's residence address, mobile number and personal email id to be updated.
Attachment | Size |
---|---|
![]() | 6.74 KB |
OAuth Metadata details
OAuth metadata parameter to be passed at the time of generating access token using Partner Authentication API for client credential grant type is mentioned below. For information on OAuth Metadata, see About the OAuth Metadata
oauth_metadata.account_id : {account_id} OR oauth_metadata.emirates_id : {emirates_id}
Response Codes
Click Here for API Response Codes
Basepath
/v1
Paths
/customers/{customer_id_type}:{customer_id}
Update details of a customer
Allows details of a customer to be updated
Unique Id sent by the client. Value should be a unique identifier of the request in UUID format
{
"maxLength": 50
}
Customer Id of the customer who's details are to be updated. Masked value should be passed in the UAT and Production environments. For information on the masking logic to be followed, see Masking Logic
{
"maxLength": 20
}
Type of the Customer Id of the customer who's details are to be updated. Allowed values: Account_ID - for RAKBank Account holding customers , Emirates_ID - for prepaid card customers
{
"enum": [
"Account_ID",
"Emirates_ID"
]
}
Details to update a customer
Definitions
Customer object that holds details of the customer
{
"properties": {
"documents": {
"description": "Documents",
"type": "array",
"items": {
"$ref": "#/definitions/documents"
}
},
"addresses": {
"type": "array",
"items": {
"$ref": "#/definitions/addresses"
},
"description": "Addresses of the customer."
},
"phones": {
"type": "array",
"items": {
"$ref": "#/definitions/phones"
},
"description": "Phone details of the customer."
},
"emails": {
"type": "array",
"items": {
"$ref": "#/definitions/emails"
},
"description": "Email ids of the customer."
}
},
"additionalProperties": false
}
documents
{
"properties": {
"type": {
"type": "string",
"enum": [
"EMID"
],
"example": "EMID",
"description": "Type of the document. Allowed values: EMID - for Emirates ID."
},
"number": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"example": "7982364327852387",
"description": "Number of the document."
},
"expiry_date": {
"type": "string",
"description": "Expiry date of the document in ISO 8601 format YYYY-MM-DD.",
"example": "2017-09-14",
"format": "date"
}
},
"additionalProperties": false,
"required": [
"number",
"type",
"expiry_date"
]
}
Holds Address Details of the applicant
{
"properties": {
"type": {
"type": "string",
"enum": [
"RESIDENCE"
],
"description": "Holds address type. Valid values are \"RESIDENCE\".",
"example": "RESIDENCE"
},
"line_1": {
"type": "string",
"maxLength": 50,
"description": "Holds flat / villa number .",
"example": "202 Sky Tower"
},
"line_2": {
"type": "string",
"maxLength": 50,
"description": "Holds Building / Villa Name.",
"example": "23rd Streeet"
},
"line_3": {
"type": "string",
"maxLength": 50,
"description": "Holds Street Name / Location. To replace previous address details with blank, please pass 'NULL^'.",
"example": "23rd Streeet"
},
"line_4": {
"type": "string",
"maxLength": 50,
"description": "Holds Nearest Landmark. To replace previous address details with blank, please pass 'NULL^'.",
"example": "23rd Streeet"
},
"po_box": {
"type": "string",
"maxLength": 200,
"description": "P O Box number",
"example": "685"
},
"city": {
"type": "string",
"maxLength": 5,
"description": "Holds city details. Accepts IATA 3-Letter Codes.",
"example": "DXB"
},
"country": {
"type": "string",
"maxLength": 2,
"description": "Holds country details. ISO 2 character Country Codes. See Country Code values, for allowed list of values.",
"example": "AE"
},
"preferred": {
"type": "boolean",
"description": "Holds preferred flag value.(true or false)",
"example": "true"
}
},
"additionalProperties": false,
"required": [
"type",
"line_1",
"city",
"country",
"preferred"
]
}
Holds contact details of the applicant
{
"properties": {
"type": {
"type": "string",
"enum": [
"CELLPH1"
],
"description": "Holds Type of the Phone. Valid Values are \"CELLPH1\" - mobile no.,",
"example": "CELLPH1"
},
"country_code": {
"type": "string",
"maxLength": 10,
"description": "Holds the country_code for the phone number",
"example": 971
},
"number": {
"type": "string",
"maxLength": 25,
"description": "Holds the mobile phone number",
"example": "512345678"
}
},
"additionalProperties": false,
"required": [
"type",
"country_code",
"number"
]
}
Holds mail details of the applicant
{
"properties": {
"type": {
"type": "string",
"enum": [
"HOMEEML"
],
"description": "Holds Email Address Type. Valid values - \"HOMEEML\" - Personal email id",
"example": "HOMEEML"
},
"email": {
"type": "string",
"maxLength": 150,
"description": "Holds email address value.",
"example": "abc@email.com"
}
},
"additionalProperties": false,
"required": [
"email",
"type"
]
}
Response in case of error
{
"properties": {
"status": {
"type": "string",
"description": "HTTP Status"
},
"response_code": {
"type": "string",
"description": "API specific error code"
},
"property": {
"type": "string",
"description": ""
},
"response_message": {
"type": "string",
"description": "brief details of the error"
},
"description": {
"type": "string",
"description": "detailed description of the error"
}
},
"additionalProperties": false,
"required": [
"response_message",
"response_code",
"status"
]
}