Group multiple spending controls together and specify how to apply the combined outcome.
Creates a control group and applies it to the specified target.
Control group created successfully
Unauthorized
Target not found
Invalid data was sent
Internal Server Error
Service Unavailable
{- "description": "Block grocery shopping except Walmart",
- "fail_if": "all_fail",
- "target_id": "crd_fa6psq42dcdd6fdn5gifcq1491",
- "controls": [
- {
- "description": "Block the card being used for groceries",
- "control_type": "mcc_limit",
- "mcc_limit": {
- "type": "block",
- "mcc_list": [
- "5422"
]
}
}, - {
- "description": "Allow the card to be used at Walmart",
- "control_type": "mid_limit",
- "mid_limit": {
- "type": "allow",
- "mid_list": [
- "1234"
]
}
}
]
}{- "id": "cgr_oemoyd3otivelkhf4zcnimwdva",
- "description": "Block grocery shopping except Walmart",
- "target_id": "crd_dba7tjsh7utufgid7yety4gnxq",
- "fail_if": "all_fail",
- "controls": [
- {
- "mcc_limit": {
- "type": "block",
- "mcc_list": [
- "5422"
]
}, - "description": "Block the card being used for groceries",
- "control_type": "mcc_limit"
}, - {
- "mid_limit": {
- "type": "allow",
- "mid_list": [
- "1234"
]
}, - "description": "Allow the card to be used at Walmart",
- "control_type": "mid_limit"
}
], - "is_editable": true,
- "created_date": "2023-12-06T14:01:31.7155085Z",
- "last_modified_date": "2023-12-06T14:01:31.7155085Z",
- "_links": {
- "self": {
- "actions": [
- "GET"
], - "types": [
- "application/json"
]
}
}
}Retrieves a list of control groups applied to the specified target.
Target's control groups retrieved successfully
Unauthorized
Target not found
Invalid data was sent
Internal Server Error
{- "control_groups": [
- {
- "id": "cgr_oemoyd3otivelkhf4zcnimwdva",
- "description": "Block grocery shopping except Walmart",
- "target_id": "crd_dba7tjsh7utufgid7yety4gnxq",
- "fail_if": "all_fail",
- "controls": [
- {
- "mcc_limit": {
- "type": "block",
- "mcc_list": [
- "5422"
]
}, - "description": "Block the card being used for groceries",
- "control_type": "mcc_limit"
}, - {
- "mid_limit": {
- "type": "allow",
- "mid_list": [
- "1234"
]
}, - "description": "Allow the card to be used at Walmart",
- "control_type": "mid_limit"
}
], - "is_editable": true,
- "created_date": "2023-12-06T14:01:31.7155085Z",
- "last_modified_date": "2023-12-06T14:01:31.7155085Z"
}, - {
- "id": "cgr_xvrszbgkaifuflnslzkt2uimkm",
- "description": "Allow restaurants except McDonalds",
- "target_id": "crd_dba7tjsh7utufgid7yety4gnxq",
- "fail_if": "all_fail",
- "controls": [
- {
- "mcc_limit": {
- "type": "allow",
- "mcc_list": [
- "6789"
]
}, - "description": "Allow the card being used for restaurants",
- "control_type": "mcc_limit"
}, - {
- "mid_limit": {
- "type": "block",
- "mid_list": [
- "9876"
]
}, - "description": "Block the card to be used at McDonalds",
- "control_type": "mid_limit"
}
], - "is_editable": true,
- "created_date": "2023-12-06T14:01:31.7155085Z",
- "last_modified_date": "2023-12-06T14:01:31.7155085Z"
}
]
}Retrieves the details of a control group you created previously.
Control group retrieved successfully
Unauthorized
Control group not found
Internal Server Error
{- "id": "cgr_oemoyd3otivelkhf4zcnimwdva",
- "description": "Block grocery shopping except Walmart",
- "target_id": "crd_dba7tjsh7utufgid7yety4gnxq",
- "fail_if": "all_fail",
- "controls": [
- {
- "mcc_limit": {
- "type": "block",
- "mcc_list": [
- "5422"
]
}, - "description": "Block the card being used for groceries",
- "control_type": "mcc_limit"
}, - {
- "mid_limit": {
- "type": "allow",
- "mid_list": [
- "1234"
]
}, - "description": "Allow the card to be used at Walmart",
- "control_type": "mid_limit"
}
], - "is_editable": true,
- "created_date": "2023-12-06T14:01:31.7155085Z",
- "last_modified_date": "2023-12-06T14:01:31.7155085Z",
- "_links": {
- "self": {
- "actions": [
- "GET"
], - "types": [
- "application/json"
]
}
}
}Removes the control group and all the controls it contains.
If you want to reapply an equivalent control group to the card, you'll need to create a new control group.
Control group deleted successfully
Unauthorized
Control group not found
Invalid data was sent
Internal Server Error
Service Unavailable
{- "id": "cgr_oemoyd3otivelkhf4zcnimwdva"
}