Skip to content

AvailabilityGroupCustomer_Update_Assigned#


Description#

This function is used to assign or unassign a customer from an availability group.

Request Body Parameters#

Parameter
Type Description
availabilitygroup_id
edit_availabilitygroup
availabilitygroup_name
Number
String
String
Availability Group ID
Availability Group Name
Availability Group Name
customer_id
edit_customer
customer_login
Number
String
String
The customer id
The customer login
The customer login
Assigned Boolean true/false whether customer 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": "AvailabilityGroupCustomer_Update_Assigned",
    "AvailabilityGroup_Name": "wholesale",
    "Customer_Login": "bheyde",
    "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
MER-CUS-JSN-0005 Unable to load customer: One of Customer_ID, Edit_Customer or Customer_Login must be specified Missing Required Parameter
MER-CUS-JSN-0005 Customer not found Customer not found