POST api/priceGroup/{id}/products
Sets a group of products' price group
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Identifier of price group to be added to |
globally unique identifier |
Required |
Body Parameters
List of Price group products to contain store ids
Collection of PriceGroupProduct| Name | Description | Type | Additional information |
|---|---|---|---|
| PriceGroupG_UID | Collection of byte |
None. |
|
| PriceGroupGuid | globally unique identifier |
None. |
|
| G_UID | Collection of byte |
None. |
|
| Guid | globally unique identifier |
None. |
|
| StoreIDs | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"$id": "1",
"priceGroupG_UID": "QNZlZ5xr9km0g2UHs2DqGA==",
"priceGroupGuid": "6765d640-6b9c-49f6-b483-6507b360ea18",
"g_UID": "YbBkdiW9Y0yoJRJN4f/28g==",
"guid": "7664b061-bd25-4c63-a825-124de1fff6f2",
"storeIDs": [
1,
2
]
},
{
"$ref": "1"
}
]
application/xml, text/xml
Sample:
<ArrayOfPriceGroupProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Products">
<PriceGroupProduct>
<G_UID>YbBkdiW9Y0yoJRJN4f/28g==</G_UID>
<Guid>7664b061-bd25-4c63-a825-124de1fff6f2</Guid>
<PriceGroupG_UID>QNZlZ5xr9km0g2UHs2DqGA==</PriceGroupG_UID>
<PriceGroupGuid>6765d640-6b9c-49f6-b483-6507b360ea18</PriceGroupGuid>
<StoreIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</StoreIDs>
</PriceGroupProduct>
<PriceGroupProduct>
<G_UID>YbBkdiW9Y0yoJRJN4f/28g==</G_UID>
<Guid>7664b061-bd25-4c63-a825-124de1fff6f2</Guid>
<PriceGroupG_UID>QNZlZ5xr9km0g2UHs2DqGA==</PriceGroupG_UID>
<PriceGroupGuid>6765d640-6b9c-49f6-b483-6507b360ea18</PriceGroupGuid>
<StoreIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</StoreIDs>
</PriceGroupProduct>
</ArrayOfPriceGroupProduct>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.