User Authorization Control Deletion
The Delete Authorization Controls endpoint allows authenticated partners to remove specified authorization controls from one or more payment cards. Deleting a control means the associated security rules or spending thresholds will no longer be enforced for the targeted card. Changes take effect immediately upon a successful response.
Endpoint
DELETE /api/authorizationControls
Authentication
Bearer token required. Obtain via:
POST https://api.banking.netevia.dev/api/auth/v2
Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.
When to use
Use this endpoint when a previously applied authorization control is no longer needed — for example, when a spending limit or merchant-category restriction on a card should be lifted. It is also used when decommissioning a card or resetting its controls before applying a new rule set. Only users with sufficient permissions may delete authorization controls to protect the integrity of the banking system's security configuration.
Request Body
The request body is a JSON array of detach request objects. Each object targets one payment card and lists the control IDs to remove from it.
| Field | Type | Required | Description |
|---|---|---|---|
| paymentCardId | string | No | Identifier of the payment card from which the controls will be removed. |
| authorizationControlIds | array of integers | No | List of authorization control IDs to delete from the specified payment card. |
[
{
"paymentCardId": "card_abc123def456",
"authorizationControlIds": [101, 102, 105]
},
{
"paymentCardId": "card_xyz789ghi012",
"authorizationControlIds": [200]
}
]Response
200 OK
A 200 OK response indicates all specified authorization controls were successfully deleted. No response body is returned.
Error Codes
| Code | When it happens |
|---|---|
| 400 | Request body is malformed, a required field is missing, or one or more control IDs are invalid |
| 401 | Token missing, expired, or invalid |
| 403 | Caller does not have permission to delete authorization controls |
| 404 | One or more specified authorization controls or payment cards were not found |
| 500 | Internal server error while processing the deletion |
Common Mistakes
- Sending a single object instead of an array — the request body must always be a JSON array, even when targeting a single card.
- Providing
authorizationControlIdsthat do not belong to the specifiedpaymentCardId, which will result in a 404 or no-op. - Omitting
paymentCardIdwhen it is needed to identify the card; without it the platform cannot resolve which card's controls to delete. - Using an expired Bearer token — tokens expire after 10 minutes and must be refreshed before making this call.
Related Endpoints
GET /api/authorizationControls— Retrieve existing authorization controls for a payment cardPOST /api/authorizationControls— Create and attach new authorization controls to a payment cardPUT /api/authorizationControls— Update existing authorization controls on a payment card
Example
curl -X DELETE https://api.banking.netevia.dev/api/authorizationControls \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '[
{
"paymentCardId": "card_abc123def456",
"authorizationControlIds": [101, 102, 105]
}
]' 200Success
