Skip to content

AvailabilityGroupBusinessAccount_Update_Assigned#


Description#

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

Request Parameters#

Parameter
Type Description
AvailabilityGroup_ID
Edit_AvailabilityGroup
AvailabilityGroup_Name
Number
String
String
Availability Group ID
Availability Group Name
Availability Group Name
BusinessAccount_ID
Edit_BusinessAccount
BusinessAccount_Title
Number
String
String
Business Account Id
Business Account Title
Business Account Title
Assigned Boolean true/false whether business account 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": "AvailabilityGroupBusinessAccount_Update_Assigned",
    "AvailabilityGroup_Name": "wholesale",
    "BusinessAccount_Title": "miva",
    "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-000315 Unable to load business account: One of BusinessAccount_ID, Edit_BusinessAccount or BusinessAccount_Title must be specified Missing Required Parameter
MER-CUS-JSN-00030 Business account not found Business account not found