PUT v1/Shops/{shopId}/Product/ForeignPricesIncVAT
Update a collection Product prices for a Shop. The price is in the default Shop currency, and is specified including VAT. An existing Product must be specified.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| shopId |
The Id of the Shop |
integer |
Required. |
Body Parameters
A collection of product codes and prices.
Collection of ShopProductPriceUpdateInput| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductCode | string |
None. |
|
| Price | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"ProductCode": "sample string 1",
"Price": 2.0
},
{
"ProductCode": "sample string 1",
"Price": 2.0
}
]
application/xml, text/xml
Sample:
<ArrayOfShopProductPriceUpdateInput xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ShopProductPriceUpdateInput>
<ProductCode>sample string 1</ProductCode>
<Price>2</Price>
</ShopProductPriceUpdateInput>
<ShopProductPriceUpdateInput>
<ProductCode>sample string 1</ProductCode>
<Price>2</Price>
</ShopProductPriceUpdateInput>
</ArrayOfShopProductPriceUpdateInput>
Response Information
Resource Description
Collection of UpdatePriceResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductCode | string |
None. |
|
| Success | boolean |
None. |
|
| ErrorMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ProductCode": "sample string 1",
"Success": true,
"ErrorMessage": "sample string 3"
},
{
"ProductCode": "sample string 1",
"Success": true,
"ErrorMessage": "sample string 3"
}
]
application/xml, text/xml
Sample:
<ArrayOfUpdatePriceResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UpdatePriceResponse>
<ProductCode>sample string 1</ProductCode>
<Success>true</Success>
<ErrorMessage>sample string 3</ErrorMessage>
</UpdatePriceResponse>
<UpdatePriceResponse>
<ProductCode>sample string 1</ProductCode>
<Success>true</Success>
<ErrorMessage>sample string 3</ErrorMessage>
</UpdatePriceResponse>
</ArrayOfUpdatePriceResponse>