PUT api/LinkProducts/Sales
Method to update the sales information of a product (linked)
Request Information
URI Parameters
None.
URI Example
api/LinkProducts/Sales
Body Parameters
The sales info of a product
Oresto.API.Models.PUT.LinkProducts.ProductSales| Name | Description | Type | Additional information |
|---|---|---|---|
| OnOrder |
Product is only available on order |
boolean |
Required |
| PromoValidFrom |
Starting date when a promo becomes active (TimeZone BE), if not provided UTC will be used |
date |
Date range: between 1753-01-01 and 9999-12-31 (ISO 8601 format) |
| PromoValidUntil |
Date when the promo should be void (TimeZone BE), if not provided UTC will be used |
date |
Date range: between 1753-01-01 and 9999-12-31 (ISO 8601 format) |
| SalesPriceList |
The list sales price |
decimal number |
Range: inclusive between 0 and 1E+16 |
| SalesPriceListPromo |
The list sales price during a promotion |
decimal number |
Range: inclusive between 0 and 1E+16 |
| WholesalerArticleNumber |
Article code for the product defined by the wholesaler |
string |
Primary key field Required Max length: 50 |
| WholesalerProductLocalizations |
Localizations for the product provided by the wholesaler |
Collection of Oresto.API.Models.PUT.LinkProducts.ProductSales+WholesalerProductLocalization |
None. |
Request Formats
application/json, text/json
{
"WholesalerArticleNumber": "sample string 1",
"SalesPriceList": 1.0,
"SalesPriceListPromo": 1.0,
"OnOrder": true,
"PromoValidFrom": "2025-12-05T06:52:19.0114513+01:00",
"PromoValidUntil": "2025-12-05T06:52:19.0114513+01:00",
"WholesalerProductLocalizations": [
{
"LanguageCode": "sample string 1",
"PromoDescription": "sample string 2",
"Information": "sample string 3"
},
{
"LanguageCode": "sample string 1",
"PromoDescription": "sample string 2",
"Information": "sample string 3"
}
]
}
application/xml, text/xml
<ProductSales xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.PUT.LinkProducts">
<OnOrder>true</OnOrder>
<PromoValidFrom>2025-12-05T06:52:19.0114513+01:00</PromoValidFrom>
<PromoValidUntil>2025-12-05T06:52:19.0114513+01:00</PromoValidUntil>
<SalesPriceList>1</SalesPriceList>
<SalesPriceListPromo>1</SalesPriceListPromo>
<WholesalerArticleNumber>sample string 1</WholesalerArticleNumber>
<WholesalerProductLocalizations>
<ProductSales.WholesalerProductLocalization>
<Information>sample string 3</Information>
<LanguageCode>sample string 1</LanguageCode>
<PromoDescription>sample string 2</PromoDescription>
</ProductSales.WholesalerProductLocalization>
<ProductSales.WholesalerProductLocalization>
<Information>sample string 3</Information>
<LanguageCode>sample string 1</LanguageCode>
<PromoDescription>sample string 2</PromoDescription>
</ProductSales.WholesalerProductLocalization>
</WholesalerProductLocalizations>
</ProductSales>
application/x-www-form-urlencoded
WholesalerArticleNumber=value&SalesPriceList=value&SalesPriceListPromo=value&OnOrder=value&PromoValidFrom=value&PromoValidUntil=value&WholesalerProductLocalizations=value
Response Information
Resource Description
A wrapper class with information about the updated entity
Oresto.API.Models.PUT.LinkProducts.ProductSalesData| Name | Description | Type | Additional information |
|---|---|---|---|
| Errors |
Possible errors that were experienced when processing the request |
Collection of string |
None. |
| ModelStateErrors |
Possible model errors that were experienced when validating the data |
Collection of Oresto.API.Models.Shared.ModelStateError |
None. |
| RequestInformation |
Additional information about the request |
Oresto.API.Models.Shared.RequestInformation |
None. |
Response Formats
application/json, text/json
{
"RequestInformation": {
"RequestDuration": 1,
"WholesalerId": 2,
"UserId": 3
},
"ModelStateErrors": [
{
"Key": "sample string 1",
"Message": "sample string 2",
"Exception": "sample string 3"
},
{
"Key": "sample string 1",
"Message": "sample string 2",
"Exception": "sample string 3"
}
],
"Errors": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
<ProductSalesData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.PUT.LinkProducts">
<Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.Shared">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Errors>
<ModelStateErrors xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.Shared">
<ModelStateError>
<Exception>sample string 3</Exception>
<Key>sample string 1</Key>
<Message>sample string 2</Message>
</ModelStateError>
<ModelStateError>
<Exception>sample string 3</Exception>
<Key>sample string 1</Key>
<Message>sample string 2</Message>
</ModelStateError>
</ModelStateErrors>
<RequestInformation xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.Shared">
<RequestDuration>1</RequestDuration>
<UserId>3</UserId>
<WholesalerId>2</WholesalerId>
</RequestInformation>
</ProductSalesData>