POST api/client/addclient
Request Information
URI Parameters
None.
Body Parameters
tbl_clientsVM| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| clientDisplayName | string |
None. |
|
| InternalCLientCode | string |
Required |
|
| ClientType | string |
Required |
|
| FullName | string |
Required |
|
| EmailID | string |
Required |
|
| MobileNo | string |
Required Max length: 14 Min length: 14 |
|
| PhoneNo | string |
None. |
|
| Age | integer |
Required Range: inclusive between 1 and 2147483647 |
|
| FatherName | string |
Required |
|
| NIC | string |
Required Max length: 13 Min length: 13 |
|
| PassportNo | string |
None. |
|
| CompanyName | string |
None. |
|
| WebsiteURL | string |
None. |
|
| TIN | string |
None. |
|
| GSTIN | string |
None. |
|
| STN | string |
None. |
|
| OfficeAddressLine1 | string |
None. |
|
| OfficeAddressLine2 | string |
None. |
|
| OfficeCountryCode | string |
Required |
|
| OfficeCityID | integer |
Required |
|
| OfficeZip_PostalCode | string |
None. |
|
| HomeAddressLine1 | string |
Required |
|
| Active | integer |
None. |
|
| IsDeleted | integer |
None. |
|
| BusinessAccountID | integer |
None. |
|
| CreatedBy | integer |
None. |
|
| CreatedOn | date |
None. |
|
| ModifiedBy | integer |
None. |
|
| ModifedOn | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"clientDisplayName": "sample string 2",
"InternalCLientCode": "sample string 3",
"ClientType": "sample string 4",
"FullName": "sample string 5",
"EmailID": "sample string 6",
"MobileNo": "sample string 7",
"PhoneNo": "sample string 8",
"Age": 1,
"FatherName": "sample string 9",
"NIC": "sample string 10",
"PassportNo": "sample string 11",
"CompanyName": "sample string 12",
"WebsiteURL": "sample string 13",
"TIN": "sample string 14",
"GSTIN": "sample string 15",
"STN": "sample string 16",
"OfficeAddressLine1": "sample string 17",
"OfficeAddressLine2": "sample string 18",
"OfficeCountryCode": "sample string 19",
"OfficeCityID": 1,
"OfficeZip_PostalCode": "sample string 20",
"HomeAddressLine1": "sample string 21",
"Active": 1,
"IsDeleted": 1,
"BusinessAccountID": 1,
"CreatedBy": 1,
"CreatedOn": "2025-12-17T01:17:33.9792262-06:00",
"ModifiedBy": 1,
"ModifedOn": "2025-12-17T01:17:33.9792262-06:00"
}
application/xml, text/xml
Sample:
<tbl_clientsVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Case_Management_DAL.ViewModel"> <Active>1</Active> <Age>1</Age> <BusinessAccountID>1</BusinessAccountID> <ClientType>sample string 4</ClientType> <CompanyName>sample string 12</CompanyName> <CreatedBy>1</CreatedBy> <CreatedOn>2025-12-17T01:17:33.9792262-06:00</CreatedOn> <EmailID>sample string 6</EmailID> <FatherName>sample string 9</FatherName> <FullName>sample string 5</FullName> <GSTIN>sample string 15</GSTIN> <HomeAddressLine1>sample string 21</HomeAddressLine1> <ID>1</ID> <InternalCLientCode>sample string 3</InternalCLientCode> <IsDeleted>1</IsDeleted> <MobileNo>sample string 7</MobileNo> <ModifedOn>2025-12-17T01:17:33.9792262-06:00</ModifedOn> <ModifiedBy>1</ModifiedBy> <NIC>sample string 10</NIC> <OfficeAddressLine1>sample string 17</OfficeAddressLine1> <OfficeAddressLine2>sample string 18</OfficeAddressLine2> <OfficeCityID>1</OfficeCityID> <OfficeCountryCode>sample string 19</OfficeCountryCode> <OfficeZip_PostalCode>sample string 20</OfficeZip_PostalCode> <PassportNo>sample string 11</PassportNo> <PhoneNo>sample string 8</PhoneNo> <STN>sample string 16</STN> <TIN>sample string 14</TIN> <WebsiteURL>sample string 13</WebsiteURL> <clientDisplayName>sample string 2</clientDisplayName> </tbl_clientsVM>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ErrorClass| Name | Description | Type | Additional information |
|---|---|---|---|
| Msg | string |
None. |
|
| Status | string |
None. |
|
| IsSuccess | boolean |
None. |
|
| retrn | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Msg": "sample string 1",
"Status": "sample string 2",
"IsSuccess": true,
"retrn": {}
}
application/xml, text/xml
Sample:
<ErrorClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MMC_WebAPI.Utilities"> <IsSuccess>true</IsSuccess> <Msg>sample string 1</Msg> <Status>sample string 2</Status> <retrn /> </ErrorClass>