Update Cash Account
PATCH/v1.2/customer/account/cash
deprecated
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
This is used to update already created cash accounts.
Request
Header Parameters
Throttle-Key string
- application/json
Body
required
cashAccountNumber stringrequired
Cash Account Number
currency string
Currency
Responses
- 200
- 401
OK
- */*
- Schema
- Example (from schema)
- example
- Update Request with Invalid Currency
Schema
status stringrequired
Possible values: [SUCCESS
, FAILED
]
rejectCode number
Find error codes here
reason stringnullable
cashAccountNumber stringrequired
cashAccount object
cashAccountNumber string
accountType integer
Possible values: [0
, 1
, 2
]
0 (Current) | 1 (Savings) | 2 (Investment)
currency string
balance integer
blockedAmount integer
odLimit string
margin string
createdDate string
status string
pendingSettle integer
pendingWithdraw string
pendingDeposit string
primaryTradingLimitExpiry stringnullable
{
"status": "SUCCESS",
"rejectCode": 0,
"reason": "string",
"cashAccountNumber": "string",
"cashAccount": {
"cashAccountNumber": "string",
"accountType": 0,
"currency": "string",
"balance": 0,
"blockedAmount": 0,
"odLimit": "string",
"margin": "string",
"createdDate": "string",
"status": "string",
"pendingSettle": 0,
"pendingWithdraw": "string",
"pendingDeposit": "string",
"primaryTradingLimitExpiry": "string"
}
}
{
"status": "SUCCESS",
"cashAccount": {
"cashAccountNumber": "C003313290",
"accountType": 0,
"currency": "USD",
"balance": 0,
"blockedAmount": 0,
"odLimit": "0.0",
"margin": "0.0",
"createdDate": "2024/01/18",
"status": "2",
"pendingSettle": 0,
"pendingWithdraw": "0.0",
"pendingDeposit": "0.0",
"primaryTradingLimitExpiry": ""
}
}
{
"status": "FAILED",
"reason": "Invalid Currency - USDf",
"rejectCode": 1001
}
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": "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/cash",
"rejectCode": "1008"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Expired Token",
"path": "/api/v1.2/customer/account/cash",
"rejectCode": "1007"
}
Loading...
Is this page helpful for you?