Update Customer
PATCH/v1.1/customer/account
This is used to update customer details.
Request
- application/json
Body
Possible values: <= 20 characters
Customer number of the customer account which wants to amend.
Possible values: non-empty
and <= 200 characters
First name
Possible values: non-empty
and <= 200 characters
Last name
Possible values: non-empty
and <= 15 characters
Passport number
Possible values: non-empty
and <= 15 characters
National id number
Possible values: non-empty
and <= 50 characters
Driving license
Possible values: Value must match regular expression ^\+[1-9]\d{1,14}$
Home telephone number
Possible values: Value must match regular expression ^\+[1-9]\d{1,14}$
Office telephone number
Possible values: Value must match regular expression ^\+[1-9]\d{1,14}$
Mobile number
Possible values: non-empty
and <= 50 characters
Profession
Possible values: non-empty
and <= 200 characters
Possible values: non-empty
and <= 200 characters
Possible values: non-empty
and <= 250 characters
City
Possible values: [M
, F
, -1
]
M-Male | F-Female | -1-rather not say
Possible values: Value must match regular expression yyyy/MM/dd
Birth date
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- example
Schema
Possible values: non-empty
, [SUCCESS
, FAILED
]
Possible values: non-empty
Find error codes here
Customer account number
{
"status": "SUCCESS",
"reason": "string",
"rejectCode": 0,
"customerNumber": "string"
}
{
"status": "SUCCESS",
"reason": "successfully updated customer",
"rejectCode": 0,
"customerNumber": "ASI173455897"
}
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.1/customer/account",
"rejectCode": "1008"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Expired Token",
"path": "/api/v1.1/customer/account",
"rejectCode": "1007"
}