Get Customer Details
GET/v1.2/customer/account
This is used to request to get the overall details about a customer with a given customer number. This will give the customer KYC details as well as information about all the accounts under the given customer account.
Customer number or Reference number is required.
Request
Query Parameters
Possible values: <= 20 characters
Default value: ASI173455897
Customer number of the customer account which wants to get the details.
Possible values: <= 50 characters
Reference number of the customer account which wants to get the details.
Header Parameters
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- example
Schema
- Array [
- Array [
- Array [
- ]
- ]
- ]
Possible values: [FAILED
, SUCCESS
]
Find error codes here
Possible values: Value must match regular expression ^\+[1-9]\d{1,14}$
Possible values: Value must match regular expression ^\+[1-9]\d{1,14}$
Possible values: Value must match regular expression ^\+[1-9]\d{1,14}$
Possible values: Value must match regular expression ^[0-9]{4}/(0[1-9]|1[0-2])/(0[1-9]|[1-2][0-9]|3[0-1])$
cashAccounts object[]
Possible values: [0
, 1
, 2
]
0 (Current) | 1 (Savings) | 2 (Investment)
Possible values: [2
, 5
]
2 (APPROVED) | 5 (DELETE)
Possible values: [0
, 1
, 2
]
0 (DVP (default for MFS)) | 1 (Prefunded (default for DBFS)) | 2 (Non Settle)
Possible values: [0
, 1
]
0 (false) | 1 (true)
Possible values: [0
, 1
]
0 (false) | 1 (true)
securityAccounts object[]
Possible values: [1
]
equity : 1
Account number of the security / Portfolio account.
Possible values: [1
]
equity : 1
Possible values: [2
, 5
]
2 (APPROVED) | 5 (DELETE)
Possible values: [2
, 5
]
2 (APPROVED) | 5 (DELETE)
Possible values: [0
, 1
]
0 (false) | 1 (true)
Possible values: [0
, 1
]
0 (false) | 1 (true)
exchangeAccounts object[]
Possible values: [0
, 1
, 2
]
0 (Fully Disclosed) | 1 (Default) | 2 (MBS FD)
Possible values: [2
, 5
]
2 (APPROVED) | 5 (DELETE)
Possible values: [0
, 1
]
0 (false) | 1 (true)
Possible values: [0
, 1
, 2
]
0 (Delayed) | 1 (Delayed and L1) | 2 (Delayed L1 and L2)
Possible values: [1
, 2
]
1 (Default) no commission group is set | 2 (Define) commission group is set
Commission group Id assigned to customer (when only commission type is 2)
{
"status": "FAILED",
"reason": "string",
"rejectCode": 0,
"customerNumber": "string",
"firstName": "string",
"lastName": "string",
"passportNumber": "string",
"nin": "string",
"drivingLicense": "string",
"homeTel": "string",
"officeTel": "string",
"mobile": "string",
"email": "string",
"profession": "string",
"address1": "string",
"address2": "string",
"city": "string",
"countryCode": "string",
"gender": "string",
"birthDate": "string",
"nationality": "string",
"username": "string",
"referenceNumber": "string",
"cashAccounts": [
{
"cashAccountNumber": "string",
"accountType": 0,
"currency": "string",
"odLimit": "string",
"margin": "string",
"createdDate": "string",
"status": "2",
"modifiedDate": "string",
"settlementType": 0,
"mrgDayTrdEnabled": 0,
"secondaryTradingLimit": 0,
"dailyOdLimit": 0,
"primaryTradingLimitExpiry": "string",
"secondaryTradingLimitExpiry": "string",
"dailyOdLimitEnabled": 0,
"cashAvailableForWithdraw": 0,
"ibanNumber": "string",
"securityAccounts": [
{
"secApprovalStatus": "string",
"accountNumber": "string",
"createdDate": "string",
"autoNo": "string",
"securityAccountType": "1",
"externalReference": "string",
"status": "2",
"lastUpdated": 0,
"mrgTrdEnabled": 0,
"mrgDayTrdEnabled": 0,
"accountName": "string",
"currency": "string",
"exchangeAccounts": [
{
"exchange": "string",
"exchangeAccountNumber": "string",
"exchangeAccountId": 0,
"exchangeInvestor": "string",
"exchangeAccountType": "0",
"exchangeCode": 0,
"status": "2",
"createdDate": "string",
"modifiedDate": "string",
"tradingEnabled": 0,
"custodian": "string",
"feedLevel": 0,
"commissionType": 1,
"commissionGroupId": "string"
}
]
}
]
}
]
}
{
"status": "SUCCESS",
"reason": "get account details success",
"customerNumber": "106598339",
"firstName": "TEST DIFC TRADE",
"gender": "F",
"referenceNumber": "1692253467188ZAUFM",
"cashAccounts": [
{
"cashAccountNumber": "C004093822",
"accountType": 2,
"currency": "USD",
"balance": 0,
"blockedAmount": 0,
"odLimit": "0.0",
"status": "2",
"pendingSettle": 0,
"pendingWithdraw": "0.0",
"pendingDeposit": "0.0",
"unsettledTransfers": 0,
"marginDue": 0,
"dayMarginDue": 0,
"marginBlock": 0,
"dayMarginBlock": 0,
"secondaryTradingLimit": 0,
"dailyOdLimit": 0,
"dailyOdLimitEnabled": 0,
"cashAvailableForWithdraw": 0,
"buyingPower": 0
},
{
"cashAccountNumber": "C004093823",
"accountType": 2,
"currency": "USD",
"balance": 0,
"blockedAmount": 0,
"odLimit": "0.0",
"status": "2",
"pendingSettle": 0,
"pendingWithdraw": "0.0",
"pendingDeposit": "0.0",
"unsettledTransfers": 0,
"marginDue": 0,
"dayMarginDue": 0,
"marginBlock": 0,
"dayMarginBlock": 0,
"secondaryTradingLimit": 0,
"dailyOdLimit": 0,
"dailyOdLimitEnabled": 0,
"cashAvailableForWithdraw": 0,
"buyingPower": 0
},
{
"cashAccountNumber": "C004093824",
"accountType": 2,
"currency": "USD",
"balance": 0,
"blockedAmount": 0,
"odLimit": "0.0",
"status": "2",
"pendingSettle": 0,
"pendingWithdraw": "0.0",
"pendingDeposit": "0.0",
"unsettledTransfers": 0,
"marginDue": 0,
"dayMarginDue": 0,
"marginBlock": 0,
"dayMarginBlock": 0,
"secondaryTradingLimit": 0,
"dailyOdLimit": 0,
"dailyOdLimitEnabled": 0,
"cashAvailableForWithdraw": 0,
"buyingPower": 0
},
{
"cashAccountNumber": "C001085896",
"accountType": 0,
"currency": "USD",
"balance": 0,
"blockedAmount": 0,
"odLimit": "0.0",
"status": "2",
"pendingSettle": 0,
"pendingWithdraw": "0.0",
"pendingDeposit": "0.0",
"unsettledTransfers": 0,
"marginDue": 0,
"dayMarginDue": 0,
"marginBlock": 0,
"dayMarginBlock": 0,
"secondaryTradingLimit": 0,
"dailyOdLimit": 0,
"dailyOdLimitEnabled": 0,
"cashAvailableForWithdraw": 0,
"buyingPower": 0,
"securityAccounts": [
{
"type": "1",
"accountNumber": "P001131091",
"securityAccountType": 1,
"status": "2",
"statusId": "2",
"accountName": "P001131091-USD",
"secApprovalStatus": 0,
"currency": "USD",
"exchangeAccounts": [
{
"exchange": "NSDQ",
"exchangeAccountId": 2314380,
"exchangeAccountType": "1",
"status": "2",
"tradingEnabled": 1,
"custodian": "0",
"feedLevel": 0,
"commissionType": 1
}
]
},
{
"type": "2",
"accountNumber": "P001131092",
"securityAccountType": 1,
"status": "2",
"statusId": "2",
"accountName": "P001131092-USD",
"secApprovalStatus": 0,
"currency": "USD"
}
]
},
{
"cashAccountNumber": "C001085897",
"accountType": 2,
"currency": "USD",
"balance": 0,
"blockedAmount": 0,
"odLimit": "0.0",
"status": "2",
"pendingSettle": 0,
"pendingWithdraw": "0.0",
"pendingDeposit": "0.0",
"unsettledTransfers": 0,
"marginDue": 0,
"dayMarginDue": 0,
"marginBlock": 0,
"dayMarginBlock": 0,
"secondaryTradingLimit": 0,
"dailyOdLimit": 0,
"dailyOdLimitEnabled": 0,
"cashAvailableForWithdraw": 0,
"buyingPower": 0
},
{
"cashAccountNumber": "C001085895",
"accountType": 2,
"currency": "USD",
"balance": 989259319.9952,
"blockedAmount": -21220,
"odLimit": "0.0",
"status": "2",
"pendingSettle": 1600000,
"pendingWithdraw": "-21220.0",
"pendingDeposit": "0.0",
"unsettledTransfers": 1600000,
"marginDue": 0,
"dayMarginDue": 0,
"marginBlock": 0,
"dayMarginBlock": 0,
"secondaryTradingLimit": 0,
"dailyOdLimit": 0,
"dailyOdLimitEnabled": 0,
"cashAvailableForWithdraw": 987638099.9952,
"buyingPower": 989238099.9952,
"securityAccounts": [
{
"type": "1",
"accountNumber": "P001131090",
"securityAccountType": 1,
"status": "2",
"statusId": "2",
"accountName": "P001131090-USD",
"secApprovalStatus": 0,
"currency": "USD",
"exchangeAccounts": [
{
"exchange": "NYSE",
"exchangeAccountId": 2314336,
"exchangeAccountType": "1",
"status": "2",
"tradingEnabled": 1,
"custodian": "0",
"feedLevel": 0,
"commissionType": 1
},
{
"exchange": "AMEX",
"exchangeAccountId": 2314339,
"exchangeAccountType": "1",
"status": "2",
"tradingEnabled": 1,
"custodian": "0",
"feedLevel": 0,
"commissionType": 1
},
{
"exchange": "DFM",
"exchangeAccountId": 2335540,
"exchangeAccountType": "1",
"status": "2",
"tradingEnabled": 1,
"custodian": "0",
"feedLevel": 0,
"commissionType": 1
},
{
"exchange": "ADSM",
"exchangeAccountId": 2314337,
"exchangeAccountType": "1",
"status": "2",
"tradingEnabled": 1,
"custodian": "0",
"feedLevel": 0,
"commissionGroupId": 5266,
"commissionType": 2
},
{
"exchange": "OPRA",
"exchangeAccountId": 2335640,
"exchangeAccountType": "1",
"status": "2",
"tradingEnabled": 1,
"custodian": "0",
"feedLevel": 0,
"commissionType": 1
},
{
"exchange": "NSDQ",
"exchangeAccountId": 2314338,
"exchangeAccountType": "1",
"status": "2",
"tradingEnabled": 1,
"custodian": "0",
"feedLevel": 0,
"commissionType": 1
}
]
},
{
"type": "1",
"accountNumber": "P001140007",
"securityAccountType": 2,
"status": "2",
"statusId": "2",
"accountName": "P001140007-USD",
"secApprovalStatus": 0,
"currency": "USD"
},
{
"type": "1",
"accountNumber": "P001140008",
"securityAccountType": 2,
"status": "2",
"statusId": "2",
"accountName": "P001140008-USD",
"secApprovalStatus": 0,
"currency": "USD"
},
{
"type": "1",
"accountNumber": "P001140009",
"securityAccountType": 2,
"status": "2",
"statusId": "2",
"accountName": "P001140009-USD",
"secApprovalStatus": 0,
"currency": "USD"
},
{
"type": "1",
"accountNumber": "P001140010",
"securityAccountType": 3,
"status": "2",
"statusId": "2",
"accountName": "P001140010-USD",
"secApprovalStatus": 0,
"currency": "USD"
},
{
"type": "1",
"accountNumber": "P001140011",
"securityAccountType": 2,
"status": "2",
"statusId": "2",
"accountName": "P001140011-USD",
"secApprovalStatus": 0,
"currency": "USD"
}
]
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Invalid Token
- Expired Token
Schema
{
"timestamp": "string",
"status": "string",
"error": "string",
"message": "string",
"path": "string",
"rejectCode": "string"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Invalid Token",
"path": "/api/v1.2/customer/account",
"rejectCode": "1008"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Expired Token",
"path": "/api/v1.2/customer/account",
"rejectCode": "1007"
}