POST api/V3/Distributor/Create
Creates a Distributor
Request Information
URI Parameters
None.
Body Parameters
V3.Distributor| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Name of the distributor. |
string |
Required |
| ContactNo |
Contact no. |
string |
Matching regular expression pattern: ^[1-9]\d{9}$ |
| EmailId |
Email Id |
string |
Matching regular expression pattern: ^[\D][0-9a-zA-Z\._]{1,}\@[0-9a-zA-Z\._]{2,}\.[a-zA-Z]{2,}$ |
| SecondaryEmailId |
Secondary EmailId Id |
string |
Matching regular expression pattern: ^[\D][0-9a-zA-Z\._]{1,}\@[0-9a-zA-Z\._]{2,}\.[a-zA-Z]{2,}$ |
| Manager |
NAme of The contact Person |
string |
None. |
| DistributorERPId |
ERP or SAP id for the distributor. |
string |
Required |
| LocalName |
Alternate/Local for the distributor. |
string |
String length: inclusive between 0 and 100 |
| Address |
Address of the Location of the distributor |
string |
None. |
| Place |
Location/City of the distributor |
string |
None. |
| GSTIN |
GSTIN (Goods and Service Tax Identity Number) No. |
string |
String length: inclusive between 0 and 20 |
| Pincode |
Pincode of the Locationof the distributor |
string |
Matching regular expression pattern: ^[1-9]\d{4,5}$ |
| Region |
Region of the distributor |
string |
Required |
| IsDeactive |
Set if Distributor is deactive.. (Only for Updating) This Data will be Ignored if used during Distributor Creation |
boolean |
None. |
Request Formats
application/json, text/json
{
"Name": "sample string 1",
"ContactNo": "sample string 2",
"EmailId": "sample string 3",
"SecondaryEmailId": "sample string 4",
"Manager": "sample string 5",
"DistributorERPId": "sample string 6",
"LocalName": "sample string 7",
"Address": "sample string 8",
"Place": "sample string 9",
"GSTIN": "sample string 10",
"Pincode": "sample string 11",
"Region": "sample string 12",
"IsDeactive": true
}
application/xml, text/xml
<Distributor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.V3.Models"> <Address>sample string 8</Address> <ContactNo>sample string 2</ContactNo> <DistributorERPId>sample string 6</DistributorERPId> <EmailId>sample string 3</EmailId> <GSTIN>sample string 10</GSTIN> <IsDeactive>true</IsDeactive> <LocalName>sample string 7</LocalName> <Manager>sample string 5</Manager> <Name>sample string 1</Name> <Pincode>sample string 11</Pincode> <Place>sample string 9</Place> <Region>sample string 12</Region> <SecondaryEmailId>sample string 4</SecondaryEmailId> </Distributor>
Response Information
Resource Description
ApiResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| ERPId |
ERPID of the Requested insertion/updation |
string |
None. |
| Message |
Error Message for the indicated ERPID |
string |
None. |
| ResponseStatus |
Status of the action requested from Api |
ResponseStatus |
None. |
| GUID |
GUID of the database Entry with respect to the ERP Id Provided |
string |
None. |
Response Formats
application/json, text/json
{
"ERPId": "sample string 1",
"Message": "sample string 2",
"ResponseStatus": "Failure",
"GUID": "sample string 3"
}
application/xml, text/xml
<ApiResponseMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.Common"> <ERPId>sample string 1</ERPId> <GUID>sample string 3</GUID> <Message>sample string 2</Message> <ResponseStatus>Failure</ResponseStatus> </ApiResponseMessage>