Delete Beneficiary
API endpoint for deleting a beneficiary
DELETE
Delete Beneficiary
This endpoint allows customers to delete a beneficiary from their account.
Request Parameters
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
beneficiaryId | string | Yes | The unique identifier of the beneficiary to delete |
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | Bearer |
X-Tenant-ID | Yes | Tenant identifier |
Response
200 OK
A successful deletion returns a 200 OK response with a success message.
Error Responses
Status Code | Description |
---|---|
400 | Bad Request - Invalid beneficiary ID format |
404 | Not Found - Beneficiary not found |
403 | Forbidden - Insufficient permissions to delete this beneficiary |
Security Considerations
- Only the owner of the beneficiary or users with appropriate permissions can delete a beneficiary
- Deleted beneficiaries cannot be recovered; consider implementing a soft delete mechanism
- Consider implementing a confirmation step before deletion
Related Endpoints
Headers
Forwarded client IP address
Client user agent information
Tenant identifier for multi-tenant operations
Path Parameters
Response
204
Beneficiary deleted successfully