Use this API to modify an existing individual, corporate and group customer.
If actor is user or client application, this API allows:
If actor is customer, this API allows:
Actor | Permission |
---|---|
User | All of the following are required:
|
Client Application | If preferred agent of the customer has to be modified and "Customer departmentalization" setting is enabled in the application, then the department of the customer must either be the home department of the target preferred agent or the target preferred agent must be a foreign user in the customer's department. |
Customer | All authenticated customers can access this API. |
The request body is mandatory. Request body can be in either XML or JSON format.
Actor | Name | Description |
---|---|---|
User/Client Application | id | ID of the customer. |
lastModified | Last modified date of the customer. | |
Customer | contacts.contact | Contact details of customer to be modified. This has the details to be edited. At least one of the child attribute must be present. For required and optional elements of contact, refer Editable Attributes of a Contact. |
NOTE:
Name | Description | Customer Type |
---|---|---|
level | Level of the customer. Must be one of the values configured in application. |
|
role.value | Role of the customer. |
|
pin | Customer pin information. |
|
howReferred.value | Specifies how the customer was referred |
|
industry.value | Industry that this customer belongs to. Must match the value configured in application. |
|
marketSegment | Market segment of the customer |
|
preferredAgent.user.id | Preffered agent of customer. Must match the ID of a user in application. |
|
entitlements | Entitlements of the customer. |
|
customAttributes | Name must match one of the custom attributes configured in application. If the custom attribute is configured as an enumeration, the value must be one of the predefined values.For string type of custom attribute that is not configured as an enumeration, refer list of Allowed Characters For Custom Attributes. |
|
contacts.contact | Individual customer can have a single contact, so only editing of existing contact is allowed. For group and corporate customer one or more contacts can be provided.
|
|
customerName | Name of the customer. |
|
type.group.type.value | Type of group of the customer. Must be one of the values configured in application. |
|
type.group.region | Region of operation of the group customer |
|
type.group.numberOfMembers | Number of members in the group |
|
type.group.income | Income of the group customer |
|
type.group.currency | Currency used while dealing with the group customer |
|
type.group.registrationNumber | Registration number of the group customer |
|
type.group.affiliation | Affiliation of the group customer |
|
type.corporate.region | Region of operation of corporate customer. Must be one of the values configured in application. |
|
type.corporate.numberOfEmployees | Number of employees in the organization |
|
type.corporate.revenues | Revenue of the corporate customer |
|
type.corporate.currency | Currency used while dealing with the corporate customer |
|
type.corporate.registrationNumber | Registration number of the corporate customer |
|
type.corporate.sector | Sector of the corporate customer |
|
No content
Bad Request
Unauthorized
Forbidden
Not Acceptable
Internal server error
{- "id": "1004",
- "lastModified": "2021-10-22T11:40:11.000Z",
- "level": {
- "value": "Premium"
}, - "role": {
- "value": "Partner"
}, - "pin": "0121",
- "howReferred": {
- "value": "Customer"
}, - "industry": {
- "value": ""
}, - "marketSegment": "Medical Products",
- "preferredAgent": {
- "user": {
- "id": "1053"
}
}, - "entitlements": "",
- "customAttributes": {
- "customAttribute": [
- {
- "attribName": "preferredlang",
- "attribValues": {
- "attribValue": [
- {
- "value": "English"
}
]
}
}
]
}
}
{- "code": "400-101",
- "developerMessage": "Unsupported query parameter(s) supplied: '<query_parameter>'."
}