PUT api/Configuration/Suppliers
Create a new Supplier or update an existing one
Request Information
URI Parameters
None.
Body Parameters
The Supplier to create/update
SupplierName | Description | Type | Additional information |
---|---|---|---|
Code |
|
string |
Required Max length: 10 |
Name |
|
string |
Required Max length: 20 |
Description |
|
string |
Max length: 100 |
TaxNumber |
|
string |
Max length: 15 |
Phone |
|
string |
Max length: 17 |
Fax |
|
string |
Max length: 17 |
Address |
|
string |
Max length: 100 |
PostalCode |
|
string |
Max length: 10 |
PlaceCity |
|
string |
Max length: 50 |
StateRegion |
|
string |
Max length: 20 |
Country |
|
string |
Max length: 20 |
WebPage |
|
string |
Max length: 40 |
|
string |
Max length: 100 |
Request Formats
Sample:
{ "Code": "sample string 1", "Name": "sample string 2", "Description": "sample string 3", "TaxNumber": "sample string 4", "Phone": "sample string 5", "Fax": "sample string 6", "Address": "sample string 7", "PostalCode": "sample string 8", "PlaceCity": "sample string 9", "StateRegion": "sample string 10", "Country": "sample string 11", "WebPage": "sample string 12", "Email": "sample string 13" }
Sample:
<Supplier xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Parametrizacao"> <Address>sample string 7</Address> <Code>sample string 1</Code> <Country>sample string 11</Country> <Description>sample string 3</Description> <Email>sample string 13</Email> <Fax>sample string 6</Fax> <Name>sample string 2</Name> <Phone>sample string 5</Phone> <PlaceCity>sample string 9</PlaceCity> <PostalCode>sample string 8</PostalCode> <StateRegion>sample string 10</StateRegion> <TaxNumber>sample string 4</TaxNumber> <WebPage>sample string 12</WebPage> </Supplier>
Sample:
Sample not available.
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Description" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="TaxNumber" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Phone" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Fax" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Address" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PostalCode" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PlaceCity" sample string 9 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="StateRegion" sample string 10 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Country" sample string 11 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WebPage" sample string 12 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Email" sample string 13 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
stringResponse Formats
Sample:
"sample string 1"
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e--