POST api/Vendor/Add
Request Information
URI Parameters
None.
Body Parameters
VendorName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
VendorName | string |
None. |
|
Contact | string |
None. |
|
Phone | string |
None. |
|
Fax | string |
None. |
|
Address | string |
None. |
|
City | string |
None. |
|
State | string |
None. |
|
ZipCode | string |
None. |
|
CompanyID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "VendorName": "sample string 2", "Contact": "sample string 3", "Phone": "sample string 4", "Fax": "sample string 5", "Address": "sample string 6", "City": "sample string 7", "State": "sample string 8", "ZipCode": "sample string 9", "CompanyID": 10 }
application/xml, text/xml
Sample:
<Vendor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KSolApi.Models"> <Address>sample string 6</Address> <City>sample string 7</City> <CompanyID>10</CompanyID> <Contact>sample string 3</Contact> <Fax>sample string 5</Fax> <Id>1</Id> <Phone>sample string 4</Phone> <State>sample string 8</State> <VendorName>sample string 2</VendorName> <ZipCode>sample string 9</ZipCode> </Vendor>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseName | Description | Type | Additional information |
---|---|---|---|
Status | integer |
None. |
|
ResponseMsg | string |
None. |
|
Data | Object |
None. |
|
Token | string |
None. |
|
IsSuccess | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Status": 1, "ResponseMsg": "sample string 2", "Data": {}, "Token": "sample string 4", "IsSuccess": true }
application/xml, text/xml
Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KSolApi.GlobalLogics"> <Data /> <IsSuccess>true</IsSuccess> <ResponseMsg>sample string 2</ResponseMsg> <Status>1</Status> <Token>sample string 4</Token> </Response>