Creates a control and applies it to the specified target.
Control created successfully
Unauthorized
Target not found
Invalid data was sent
Internal Server Error
Service Unavailable
{- "description": "Maximum spend of 500€ per week for restaurants",
- "control_type": "velocity_limit",
- "target_id": "crd_fa6psq42dcdd6fdn5gifcq1491",
- "velocity_limit": {
- "amount_limit": 50000,
- "velocity_window": {
- "type": "weekly"
}, - "mcc_list": [
- "string"
], - "mid_list": [
- "1234567890"
]
}
}{- "id": "ctr_gp7vkmxayztufjz6top5bjcdra",
- "description": "Maximum spend of 500€ per week for restaurants",
- "control_type": "velocity_limit",
- "target_id": "crd_fa6psq42dcdd6fdn5gifcq1491",
- "is_editable": true,
- "created_date": "2023-03-12T18:20:12Z",
- "last_modified_date": "2023-03-12T18:20:12Z",
- "_links": {
- "self": {
- "actions": [
- "GET"
], - "types": [
- "application/json"
]
}
}, - "velocity_limit": {
- "amount_limit": 50000,
- "velocity_window": {
- "type": "weekly"
}, - "mcc_list": [
- "string"
], - "mid_list": [
- "1234567890"
]
}
}Retrieves a list of spending controls applied to the specified target.
Target's controls retrieved successfully
Unauthorized
Target not found
Invalid data was sent
Internal Server Error
{- "controls": [
- {
- "id": "ctr_gp7vkmxayztufjz6top5bjcdra",
- "target_id": "crd_fa6psq42dcdd6fdn5gifcq1491",
- "description": "Maximum spend of 500€ per week for restaurants",
- "control_type": "velocity_limit",
- "is_editable": true,
- "created_date": "2021-09-09T19:41:39Z",
- "last_modified_date": "2021-09-09T19:41:39Z",
- "velocity_limit": {
- "amount_remaining": 45000,
- "amount_limit": 50000,
- "velocity_window": {
- "type": "weekly"
}, - "mcc_list": [
- "4121",
- "4582"
]
}
}, - {
- "id": "ctr_gp7vkmxayztufjz6top5bjcdra",
- "target_id": "crd_fa6psq42dcdd6fdn5gifcq1491",
- "description": "Allow the card to be used only in restaurants and supermarkets",
- "control_type": "mcc_limit",
- "is_editable": true,
- "created_date": "2021-09-09T19:41:39Z",
- "last_modified_date": "2021-09-09T19:41:39Z",
- "mcc_limit": {
- "type": "allow",
- "mcc_list": [
- "5932",
- "5411"
]
}
}, - {
- "id": "ctr_gp7vkmxayztufjz6top5bjcdra",
- "target_id": "crd_fa6psq42dcdd6fdn5gifcq1491",
- "description": "Allow the card to be used only in AZ Pizza",
- "control_type": "mid_limit",
- "is_editable": true,
- "created_date": "2021-09-09T19:41:39Z",
- "last_modified_date": "2021-09-09T19:41:39Z",
- "mid_limit": {
- "type": "allow",
- "mid_list": [
- "593278",
- "541114"
]
}
}
]
}Retrieves the details of an existing control.
Control retrieved successfully
Unauthorized
Control not found
Internal Server Error
{- "id": "ctr_gp7vkmxayztufjz6top5bjcdra",
- "target_id": "crd_fa6psq42dcdd6fdn5gifcq1491",
- "description": "Maximum spend of 500€ per week for restaurants",
- "control_type": "velocity_limit",
- "is_editable": true,
- "created_date": "2021-09-09T19:41:39Z",
- "last_modified_date": "2021-09-09T19:41:39Z",
- "velocity_limit": {
- "amount_remaining": 45000,
- "amount_limit": 50000,
- "velocity_window": {
- "type": "weekly"
}, - "mcc_list": [
- "4121",
- "4582"
], - "mid_list": [
- "1234567890"
]
}
}Updates an existing control.
The control you want to update.
You can update only one control per request.
| description | string <= 256 characters A description for the control. |
object (MccLimit) The merchant category code (MCC) rule, which determines the types of businesses transactions can be processed from. |
Control updated successfully
Unauthorized
Control not found
Invalid data was sent
Internal Server Error
Service Unavailable
{- "description": "Allow the card to be used only in restaurants and supermarkets",
- "mcc_limit": {
- "type": "allow",
- "mcc_list": [
- "5932",
- "5411"
]
}
}{- "id": "ctr_gp7vkmxayztufjz6top5bjcdra",
- "target_id": "crd_fa6psq42dcdd6fdn5gifcq1491",
- "description": "Maximum spend of 500€ per week for restaurants",
- "control_type": "velocity_limit",
- "is_editable": true,
- "created_date": "2021-09-09T19:41:39Z",
- "last_modified_date": "2021-09-09T19:41:39Z",
- "velocity_limit": {
- "amount_remaining": 45000,
- "amount_limit": 50000,
- "velocity_window": {
- "type": "weekly"
}, - "mcc_list": [
- "4121",
- "4582"
], - "mid_list": [
- "1234567890"
]
}
}Removes an existing control from the target it was applied to.
If you want to reapply an equivalent control to the target, you must create a new control.
Control deleted successfully
Unauthorized
Control not found
Invalid data was sent
Internal Server Error
Service Unavailable
{- "id": "ctr_gp7vkmxayztufjz6top5bjcdra"
}