AvailabilityGroupShippingMethod_Update_Assigned
#
Description#
This function allows for the assignment or unassignment of shipping methods to availability groups, providing flexibility in configuring shipping options.
Request Body Parameters#
Parameter |
Type | Description |
---|---|---|
availabilitygroup_id edit_availabilitygroup availabilitygroup_name |
Number String String |
Availability Group ID Availability Group Name Availability Group Name |
module_code |
String | Shipping module code. |
method_code |
String | Shipping method code. |
assigned |
Boolean | True/false whether the shipping method is assigned to this availability group. |
Response Parameters#
Parameter |
Type | Description |
---|---|---|
success |
Number | 1 indicating a successful request. 0 indicating an unsuccessful request. |
Example Request#
{
"Store_Code": "{{Store_Code}}",
"Miva_Request_Timestamp": "{{$timestamp}}",
"Function": "AvailabilityGroupShippingMethod_Update_Assigned",
"AvailabilityGroup_Name": "wholesale",
"Module_Code": "flatrate",
"Method_Code": "Free Shipping",
"Assigned": true
}
Example Response#
{
"success": 1
}
Error Responses#
Error Code | Error Message | Error Description |
---|---|---|
MER-AGR-JSN-00040 | Unable to load availability group: One of AvailabilityGroup_ID, Edit_AvailabilityGroup or AvailabilityGroup_Name must be specified | Missing Required Parameter |
MER-AGR-JSN-00039 | Availability group not found | Availability group not found |