POST api/supplier/create
Creates a new Supplier. Note: Include only properties which hold information.
Request Information
URI Parameters
None.
Body Parameters
PublicAPI.Models.SupplierInsertModelName | Description | Type | Additional information |
---|---|---|---|
Name | string |
String length: inclusive between 0 and 30 |
|
CurrencyCode | string |
Required String length: inclusive between 0 and 3 |
|
Address1 | string |
String length: inclusive between 0 and 30 |
|
Address2 | string |
String length: inclusive between 0 and 30 |
|
ZipCode | string |
String length: inclusive between 0 and 8 |
|
City | string |
String length: inclusive between 0 and 25 |
|
Contact | string |
String length: inclusive between 0 and 30 |
|
Phone | string |
String length: inclusive between 0 and 12 |
|
Mobile | string |
String length: inclusive between 0 and 12 |
|
Fax | string |
String length: inclusive between 0 and 12 |
|
string |
String length: inclusive between 0 and 50 |
||
Website | string |
String length: inclusive between 0 and 100 |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "CurrencyCode": "sample string 2", "Address1": "sample string 3", "Address2": "sample string 4", "ZipCode": "sample string 5", "City": "sample string 6", "Contact": "sample string 7", "Phone": "sample string 8", "Mobile": "sample string 9", "Fax": "sample string 10", "Email": "sample string 11", "Website": "sample string 12" }
application/xml, text/xml
Sample:
<SupplierInsertModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <Address1>sample string 3</Address1> <Address2>sample string 4</Address2> <City>sample string 6</City> <Contact>sample string 7</Contact> <CurrencyCode>sample string 2</CurrencyCode> <Email>sample string 11</Email> <Fax>sample string 10</Fax> <Mobile>sample string 9</Mobile> <Name>sample string 1</Name> <Phone>sample string 8</Phone> <Website>sample string 12</Website> <ZipCode>sample string 5</ZipCode> </SupplierInsertModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
PublicAPI.Models.SupplierDTOName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
CurrencyCode | string |
None. |
|
Address1 | string |
None. |
|
Address2 | string |
None. |
|
ZipCode | string |
None. |
|
City | string |
None. |
|
Contact | string |
None. |
|
Phone | string |
None. |
|
Mobile | string |
None. |
|
Fax | string |
None. |
|
string |
None. |
||
Website | string |
None. |
|
FinanceNumber | string |
None. |
|
MasterSupplierId | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "Name": "sample string 2", "CurrencyCode": "sample string 3", "Address1": "sample string 4", "Address2": "sample string 5", "ZipCode": "sample string 6", "City": "sample string 7", "Contact": "sample string 8", "Phone": "sample string 9", "Mobile": "sample string 10", "Fax": "sample string 11", "Email": "sample string 12", "Website": "sample string 13", "FinanceNumber": "sample string 14", "MasterSupplierId": 15 }
application/xml, text/xml
Sample:
<SupplierDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <Address1>sample string 4</Address1> <Address2>sample string 5</Address2> <City>sample string 7</City> <Contact>sample string 8</Contact> <CurrencyCode>sample string 3</CurrencyCode> <Email>sample string 12</Email> <Fax>sample string 11</Fax> <FinanceNumber>sample string 14</FinanceNumber> <Id>1</Id> <MasterSupplierId>15</MasterSupplierId> <Mobile>sample string 10</Mobile> <Name>sample string 2</Name> <Phone>sample string 9</Phone> <Website>sample string 13</Website> <ZipCode>sample string 6</ZipCode> </SupplierDTO>