POST api/article/create/style
IMPORTANT! use the parameter config you get from GET: /api/article/parameterconfig to ensure that you are using the correct style property for the correct type of information(season, brand, ect.). This does not create a style, but its creates a job that BackOffice executes. This means that the style is not created instantly but can be delayed.
Request Information
URI Parameters
None.
Body Parameters
PublicAPI.Models.StyleInsertModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SupplierId |
the Id of the supplier providing this style |
integer |
Range: inclusive between 1 and 9999 |
| ItemGroup |
The ItemGroupId that this style operates in |
integer |
Range: inclusive between 1 and 9999 |
| MatchOnEan |
Boolean telling if the model should be matched with the EAN or not when inserting |
boolean |
None. |
| StyleParameter1 |
Contains Style information (Season, Brand etc.). See api/article/parameterconfig to find out what goes where |
string |
Max length: 30 |
| StyleParameter2 |
Contains Style information (Season, Brand etc.). See api/article/parameterconfig to find out what goes where |
string |
Max length: 30 |
| StyleParameter3 |
Contains Style information (Season, Brand etc.). See api/article/parameterconfig to find out what goes where |
string |
Max length: 30 |
| StyleParameter4 |
Contains Style information (Season, Brand etc.). See api/article/parameterconfig to find out what goes where |
string |
Max length: 30 |
| StyleParameter5 |
Contains Style information (Season, Brand etc.). See api/article/parameterconfig to find out what goes where |
string |
Max length: 30 |
| SalesPrice |
The sales price |
decimal number |
Range: inclusive between 0 and 999999999,99 |
| CostPrice |
The cost price |
decimal number |
Range: inclusive between 0 and 999999999,99 |
| VariantInformation |
Contains a list containing each variant. |
Collection of PublicAPI.Models.VariantUpsertModel |
None. |
Request Formats
application/json, text/json
{
"SupplierId": 1,
"ItemGroup": 2,
"MatchOnEan": true,
"StyleParameter1": "sample string 4",
"StyleParameter2": "sample string 5",
"StyleParameter3": "sample string 6",
"StyleParameter4": "sample string 7",
"StyleParameter5": "sample string 8",
"SalesPrice": 9.0,
"CostPrice": 10.0,
"VariantInformation": [
{
"EAN": "sample string 1",
"VariantParameter1": "sample string 2",
"VariantParameter2": "sample string 3",
"VariantParameter3": "sample string 4",
"VariantParameter4": "sample string 5",
"VariantParameter5": "sample string 6",
"SalesPrice": 7.0,
"CostPrice": 8.0
},
{
"EAN": "sample string 1",
"VariantParameter1": "sample string 2",
"VariantParameter2": "sample string 3",
"VariantParameter3": "sample string 4",
"VariantParameter4": "sample string 5",
"VariantParameter5": "sample string 6",
"SalesPrice": 7.0,
"CostPrice": 8.0
}
]
}
application/xml, text/xml
<StyleInsertModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
<CostPrice>10</CostPrice>
<ItemGroup>2</ItemGroup>
<MatchOnEan>true</MatchOnEan>
<SalesPrice>9</SalesPrice>
<StyleParameter1>sample string 4</StyleParameter1>
<StyleParameter2>sample string 5</StyleParameter2>
<StyleParameter3>sample string 6</StyleParameter3>
<StyleParameter4>sample string 7</StyleParameter4>
<StyleParameter5>sample string 8</StyleParameter5>
<SupplierId>1</SupplierId>
<VariantInformation>
<VariantUpsertModel>
<CostPrice>8</CostPrice>
<EAN>sample string 1</EAN>
<SalesPrice>7</SalesPrice>
<VariantParameter1>sample string 2</VariantParameter1>
<VariantParameter2>sample string 3</VariantParameter2>
<VariantParameter3>sample string 4</VariantParameter3>
<VariantParameter4>sample string 5</VariantParameter4>
<VariantParameter5>sample string 6</VariantParameter5>
</VariantUpsertModel>
<VariantUpsertModel>
<CostPrice>8</CostPrice>
<EAN>sample string 1</EAN>
<SalesPrice>7</SalesPrice>
<VariantParameter1>sample string 2</VariantParameter1>
<VariantParameter2>sample string 3</VariantParameter2>
<VariantParameter3>sample string 4</VariantParameter3>
<VariantParameter4>sample string 5</VariantParameter4>
<VariantParameter5>sample string 6</VariantParameter5>
</VariantUpsertModel>
</VariantInformation>
</StyleInsertModel>
application/x-www-form-urlencoded
Response Information
Resource Description
None.