POST api/V3/Outlet/Create
Create new outlet.
Request Information
URI Parameters
None.
Body Parameters
Outlet to be added
V3.Outlet| Name | Description | Type | Additional information |
|---|---|---|---|
| Latitude |
Latitude of the Geolocation |
decimal number |
None. |
| Longitude |
Latitude of the Geolocation |
decimal number |
None. |
| OutletGuid |
Guid of an Outlet (only for Viewing, Will be created new During Additions) |
string |
None. |
| RouteErpId |
EripId of the Route |
string |
String length: inclusive between 0 and 100 |
| Country |
Name of the Country in which the Outlet is Located |
string |
String length: inclusive between 0 and 100 |
| OutletErpId |
SAP or ERP id of the Outlet/Customer |
string |
Required String length: inclusive between 5 and 50 |
| TotalPotential |
Total Potential of the Outlet in Local Currency Value |
decimal number |
None. |
| TotalCompanyPotential |
Total Potential of the Company of the Outlet in Local Currency Value |
decimal number |
None. |
| TotalCompanyPotentialAlternate |
Total Alternate Potential of the Outlet in Local Currency Value |
decimal number |
None. |
| SegmentationScope |
Scope of the Segmentation |
string |
None. |
| Segmentation |
Segmentation Options(A-,A,A+,B-,B,B+,C-,C,C+) |
string |
None. |
| Focused |
Is the Shop Focussed and Should it be highlighted |
boolean |
None. |
| RecommendationTag |
Name of the Reccomendation Tag which will be used to Recommend Products on Outlet |
string |
String length: inclusive between 0 and 500 |
| Beat |
Beat Name |
string |
Required |
| SegmentationDisplayName | string |
None. |
|
| ChannelName |
channel name of outlet |
string |
None. |
| OutletName |
Name of the Outlet |
string |
Required String length: inclusive between 0 and 100 |
| ShopType |
Retailer / Mechanics |
string |
String length: inclusive between 0 and 50 |
| ShopTypeErpId |
Shop Type ErpId |
string |
None. |
| OutletChannel |
channel of outlet |
OutletChannel |
None. |
| ChannelErpId |
channel ErpId of outlet |
string |
None. |
| Address |
Address of the Shop |
string |
Required String length: inclusive between 0 and 1000 |
| OwnersName |
Name of the Owner of the Shop/Outlet |
string |
String length: inclusive between 0 and 200 |
| OwnersNo |
Contact Number of the Owner |
string |
String length: inclusive between 0 and 20 |
| TIN |
TIN (Tax Information Network) No. of the Outlet |
string |
String length: inclusive between 0 and 20 |
| GSTIN |
GSTIN (Goods and Service Tax Identity Number) No. of the Outlet |
string |
String length: inclusive between 0 and 20 |
| PAN |
Pan Number |
string |
Matching regular expression pattern: ^[a-zA-Z0-9]{10,10}$ String length: inclusive between 0 and 10 |
| Aadhar |
Aadhar Number |
string |
Matching regular expression pattern: ^[0-9]{12,12}$ String length: inclusive between 0 and 12 |
|
Email of the Owner |
string |
String length: inclusive between 0 and 100 |
|
| PinCode |
Area PinCode of the Location of the Outlet |
string |
Matching regular expression pattern: ^[1-9]\d{4,5}$ String length: inclusive between 5 and 6 |
| MarketName |
Name of the Market in which the Outlet is Located |
string |
Required String length: inclusive between 0 and 50 |
| City |
Name of the City in which the Outlet is Located |
string |
Required String length: inclusive between 0 and 50 |
| SubCity |
Town/Tehsil/Village of the City in which the Outlet is Located |
string |
String length: inclusive between 0 and 200 |
| State |
Name of the State in which the Outlet is Located |
string |
String length: inclusive between 0 and 50 |
| GSTRegistered |
GST Registered |
boolean |
None. |
| BankAccountNumber |
Bank Account Number |
string |
String length: inclusive between 0 and 18 |
| AccountHoldersName |
Account Holders Name |
string |
None. |
| IFSCCode |
IFSC Code |
string |
String length: inclusive between 0 and 11 |
| AttributeText1 |
AttributeText1 |
string |
None. |
| AttributeText2 |
AttributeText2 |
string |
None. |
| AttributeText3 |
AttributeText3 |
string |
None. |
| Segmentation |
Segmentation |
integer |
None. |
| SegmentationErpId |
Segmentation ErpId |
string |
None. |
Request Formats
application/json, text/json
{
"Latitude": 1.0,
"Longitude": 1.0,
"OutletGuid": "sample string 1",
"RouteErpId": "sample string 2",
"Country": "sample string 3",
"OutletErpId": "sample string 4",
"TotalPotential": 1.1,
"TotalCompanyPotential": 1.1,
"TotalCompanyPotentialAlternate": 1.1,
"SegmentationScope": "sample string 5",
"Segmentation": "sample string 6",
"Focused": true,
"RecommendationTag": "sample string 8",
"Beat": "sample string 9",
"SegmentationDisplayName": "sample string 10",
"ChannelName": "sample string 11",
"OutletName": "sample string 12",
"ShopType": "sample string 13",
"ShopTypeErpId": "sample string 14",
"OutletChannel": "Others",
"ChannelErpId": "sample string 15",
"Address": "sample string 16",
"OwnersName": "sample string 17",
"OwnersNo": "sample string 18",
"TIN": "sample string 19",
"GSTIN": "sample string 20",
"PAN": "sample string 21",
"Aadhar": "sample string 22",
"Email": "sample string 23",
"PinCode": "sample string 24",
"MarketName": "sample string 25",
"City": "sample string 26",
"SubCity": "sample string 27",
"State": "sample string 28",
"GSTRegistered": true,
"BankAccountNumber": "sample string 30",
"AccountHoldersName": "sample string 31",
"IFSCCode": "sample string 32",
"AttributeText1": "sample string 33",
"AttributeText2": "sample string 34",
"AttributeText3": "sample string 35",
"SegmentationErpId": "sample string 37"
}
application/xml, text/xml
<Outlet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.V3.Models"> <Aadhar>sample string 22</Aadhar> <AccountHoldersName>sample string 31</AccountHoldersName> <Address>sample string 16</Address> <AttributeText1>sample string 33</AttributeText1> <AttributeText2>sample string 34</AttributeText2> <AttributeText3>sample string 35</AttributeText3> <BankAccountNumber>sample string 30</BankAccountNumber> <ChannelErpId>sample string 15</ChannelErpId> <City>sample string 26</City> <Email>sample string 23</Email> <GSTIN>sample string 20</GSTIN> <GSTRegistered>true</GSTRegistered> <IFSCCode>sample string 32</IFSCCode> <MarketName>sample string 25</MarketName> <OutletChannel>Others</OutletChannel> <OutletName>sample string 12</OutletName> <OwnersName>sample string 17</OwnersName> <OwnersNo>sample string 18</OwnersNo> <PAN>sample string 21</PAN> <PinCode>sample string 24</PinCode> <Segmentation xmlns:d2p1="http://www.w3.org/2001/XMLSchema" i:type="d2p1:int">36</Segmentation> <SegmentationDisplayName i:nil="true" /> <SegmentationErpId>sample string 37</SegmentationErpId> <ShopType>sample string 13</ShopType> <ShopTypeErpId>sample string 14</ShopTypeErpId> <State>sample string 28</State> <SubCity>sample string 27</SubCity> <TIN>sample string 19</TIN> <Beat>sample string 9</Beat> <ChannelName>sample string 11</ChannelName> <Country>sample string 3</Country> <Focused>true</Focused> <OutletErpId>sample string 4</OutletErpId> <RecommendationTag>sample string 8</RecommendationTag> <Segmentation xmlns:d2p1="http://www.w3.org/2001/XMLSchema" i:type="d2p1:string">sample string 6</Segmentation> <SegmentationDisplayName>sample string 10</SegmentationDisplayName> <SegmentationScope>sample string 5</SegmentationScope> <TotalCompanyPotential>1.1</TotalCompanyPotential> <TotalCompanyPotentialAlternate>1.1</TotalCompanyPotentialAlternate> <TotalPotential>1.1</TotalPotential> <Latitude>1</Latitude> <Longitude>1</Longitude> <OutletGuid>sample string 1</OutletGuid> <RouteErpId>sample string 2</RouteErpId> </Outlet>
Response Information
Resource Description
Response Description with message and GUID or, ErrorMessage as String
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>