AvailabilityGroupPaymentMethod_Update_Assigned
#
Description#
This function is used to assign or unassign a payment method 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 |
module_code |
String | Payment Module Code |
method_code |
String | Payment Method Code |
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": "AvailabilityGroupPaymentMethod_Update_Assigned",
"AvailabilityGroup_Name": "wholesale",
"Module_Code": "check",
"Method_Code": "check",
"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 |