# Fraud Data Delete (FDD) Flow
source: https://developer.mastercard.com/fld-fraud-submission/documentation/use-cases/use-cases/fdd/index.md

This service allows the initiator to delete an existing fraud record in FLD. The service retrieves transaction details from the FLD repository using the unique Audit Control Number (ACN) in the request payload.

### Workflow {#workflow}

1. The issuer or processor, on behalf of the issuer, invokes the FDD API ((PUT) `/fld/confirmed-frauds/fraud-states`) to delete an earlier submitted fraud record using the unique ACN.

* If authentication succeeds, the FDD forwards the request to the FLD for processing.
* If authentication fails, the FDD rejects the request and returns a response to the issuer or processor.

2. Mastercard FLD performs schema and business validations.

* If schema or business validation fails during processing, the FDD sends an appropriate response back to the user.

3. After successful validation, FLD searches the record in Mastercard FLD based on ICA and ACN, and deletes the record.
4. FLD sends the response conveying successful processing of the record.

Diagram fdd_flow

## Endpoint {#endpoint}

| **API Call** |                 **URI**                 | **Response** |
|--------------|-----------------------------------------|--------------|
| FDD          | PUT `fld/confirmed-frauds/fraud-states` | HTTP: 200 OK |

## Sample Request Message {#sample-request-message}

    {
       "refId":"ecb2d942-eabd-42b6-87fd-69c19692bdc6",
       "timestamp":"2021-03-16T20:34:37-06:00",
       "icaNumber":"1076",
       "providerId":"10",
       "auditControlNumber":"123111111000025",
       "operationType":"FDD",
       "memo":"This is a sample FDD request."
    }

## Sample Success Response Message {#sample-success-response-message}

    {
       "refId":"ecb2d942-eabd-42b6-87fd-69c19692bdc6",
       "timestamp":"2021-03-16T20:34:40-06:00",
       "responseCode":"000",
       "responseMessage":"Success",
       "icaNumber":"1076",
       "auditControlNumber":"123111111000025",
       "previousStatus":"CONFIRMED-SUCCESS",
       "currentStatus":"CONFIRMED-DELETED"
    }

## Sample Failure Response Message {#sample-failure-response-message}

    {
       "refId":"ecb2d942-eabd-42b6-87fd-69c19692bdc6",
       "timestamp":"2021-03-16T20:34:40-06:00",
       "responseCode":"200",
       "responseMessage":"Failure",
       "errorDetails":{
          "Errors":{
             "Error":[
                {
                   "ReasonCode":"60045",
                   "Description":"Record to be deleted does not exist in system."
                }
             ]
          }
       }
    }

