PUT v1/PurchaseProduct
Update an existing PurchaseProduct.
Request Information
URI Parameters
None.
Body Parameters
The purchase product.
PurchaseProductChanges| Name | Description | Type | Additional information |
|---|---|---|---|
| ShippingCostsExVAT |
Gets or sets the shipping costs (exclude VAT). |
decimal number |
None. |
| ForeignPurchasePriceExVAT |
Gets or sets the foreign purchase price (exclude VAT). |
decimal number |
None. |
| ExchangeRate |
Gets or sets the exchange rate. |
decimal number |
Required |
| DeliverTimeDays |
Gets or sets the deliver time days. |
integer |
None. |
| EndOfLife | boolean |
Required |
|
| Available |
Gets or sets a value indicating whether this <see cref="T:ShopCtrl.API.Models.PurchaseProduct" /> is available. |
boolean |
Required |
| Name | string |
Max length: 300 |
|
| CanDropship | boolean |
Required |
|
| PurchaseOrderUnitQty | integer |
None. |
|
| PurchaseOrderMinQty | integer |
None. |
|
| Id |
Gets or sets the identifier. |
integer |
Required |
| SupplierId |
Gets or sets the supplier identifier. |
integer |
Required |
| SupplierSKU |
Gets or sets the supplier stock keeping unit. |
string |
None. |
| PurchasePriceExVAT |
Gets or sets the purchase price (exclude VAT). |
decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"ShippingCostsExVAT": 1.0,
"ForeignPurchasePriceExVAT": 1.0,
"ExchangeRate": 1.0,
"DeliverTimeDays": 1,
"EndOfLife": true,
"Available": true,
"Name": "sample string 4",
"CanDropship": true,
"PurchaseOrderUnitQty": 1,
"PurchaseOrderMinQty": 1,
"Id": 6,
"SupplierId": 7,
"SupplierSKU": "sample string 8",
"PurchasePriceExVAT": 1.0
}
application/xml, text/xml
Sample:
<PurchaseProductChanges xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Id>6</Id> <SupplierId>7</SupplierId> <SupplierSKU>sample string 8</SupplierSKU> <PurchasePriceExVAT>1</PurchasePriceExVAT> <ShippingCostsExVAT>1</ShippingCostsExVAT> <ForeignPurchasePriceExVAT>1</ForeignPurchasePriceExVAT> <ExchangeRate>1</ExchangeRate> <DeliverTimeDays>1</DeliverTimeDays> <EndOfLife>true</EndOfLife> <Available>true</Available> <Name>sample string 4</Name> <CanDropship>true</CanDropship> <PurchaseOrderUnitQty>1</PurchaseOrderUnitQty> <PurchaseOrderMinQty>1</PurchaseOrderMinQty> </PurchaseProductChanges>
Response Information
Resource Description
The HttpResponseMessage object.
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |