Method: PUT
URL: <unifier_url>/ws/rest/service/v1/admin/company/shell/member/add
Objective: Add partner company to a shell based on information provided.
Usage:
This will be a PUT request.
The service URL to be used will be: http://<environment url>/ws/rest/service/v1/admin/company/shell/member/add
Input:
Company information in JSON format.
Sample JSON to add member company to a shell
{
"shortname":"partner01",
"shellnumber":"7896"
}
Output:
Return data will be JSON format too.
Validations:
Status | Condition | Message |
---|---|---|
200 | Success | The member company {name} has been added to shell {name} |
910 | Adding inactive partner company to a given shell. | The inactive partner company {name} cannot be added to shell {name}. |
911 | Adding member company to an inactive shell. | The partner company {name} cannot be added to inactive shell {name} |
902 | Partner company specified does not exist as shortname specified is not matching. | The partner company does not exist. |
500 | Server Error. | Server Error, contact the system administrator. |
901 | Invalid data value. | Invalid data for <data_element>. |
5555 | One or more records contain errors. | The partner company does not exist |