Credentials
Delete Credentials
Delete customer credentials to prevent them from being used again
This endpoint allows you to delete a specific payment credential, preventing it from being used for future auto-payments.
Purpose
- Deactivate saved payment methods that should no longer be used
- Remove credentials at a customer's request
- Comply with data minimization requirements
Behavior
- Marks the credential as inactive in the system (soft delete)
- Records that the deletion was initiated by a user
- Sends a notification via webhook about the credential status change
- Prevents the credential from being used for future auto-payments
Error Scenarios
- If the credential does not exist, returns a
404Not Found error - If you lack permission to delete the credential, returns a
403Forbidden error
Important Notes
- This is a permanent action and cannot be reversed
- Any scheduled auto-payments using this credential will need to be reconfigured
Endpoint
DELETE /api/credentials/{credential_id}
Authentication: Required (API Key)
Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
credential_id | String | Yes | The credential ID to delete |
Example
Terminal
curl -X DELETE "https://app.infinic.com/api/credentials/ABC123" \
-H "Authorization: Bearer YOUR_API_KEY" \
Response
{
"id": "ABC123"
}