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