Skip to content

OrderPriceGroup_Update_Assigned#


Description#

This function is used to assign or unassign a price group from an order.

Request Body Parameters#

Parameter
Type Description
PriceGroup_ID
PriceGroup_Code
Edit_PriceGroup
Number
String
String
ID of the Price Group.
Price Group code
Price Group code
Order_ID Number Order ID
Assigned Boolean true/false whether price group is assigned to the order

Response Parameters#

Parameter
Type Description
success boolean boolean value for if the request was successful

Example Request#

{
    "Store_code": "beta",
    "Function": "OrderPriceGroup_Update_Assigned",
    "Order_ID": 1000,
    "PriceGroup_Name": "test",
    "Assigned": true
}

Example Response#

{
    "success": 1
}

Error Responses#

Error Code Error Message Error Description
MER-JSN-ORD-00025 Order not found Order ID not found
MER-PGR-JSN-00101 Price Group not found Price Group not found