PriceGroupProduct_Update_Assigned#
Description#
This function is used to assign or unassign a product from a price group.
Request Body Parameters#
| Parameter | Type | Description |
|---|---|---|
pricegroup_idpricegroup_codeedit_pricegroup |
Number String String |
ID of the Price Group. Price Group code Price Group code |
product_idEdit_ProductProduct_CodeProduct_SKU |
Number String String String |
ID Number of product Product code string Product code string Product SKU string |
Assigned |
Boolean | true/false whether product is assigned |
Response Parameters#
| Parameter | Type | Description |
|---|---|---|
success |
boolean | boolean value for if the request was successful |
Example Request#
{
"Store_Code": "{{Store_Code}}",
"Miva_Request_Timestamp": "{{$timestamp}}",
"Function": "PriceGroupProduct_Update_Assigned",
"PriceGroup_Name": "Volume Pricing",
"Product_Code": "test",
"Assigned": true
}
Example Response#
{
"success": 1
}
Error Responses#
| Error Code | Error Message | Error Description |
|---|---|---|
| MER-JSN-PRD-00014 | Price group not found | Price group not found |