> For the complete documentation index, see [llms.txt](https://developer.flash-payments.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.flash-payments.com/compliance/request-for-information/decline-an-rfi.md).

# Decline an RFI

Use the `declineRfi` mutation when you are unable to provide the requested information — the API equivalent of "Unable to comply" on the secure form.

Declining:

* marks the RFI as `CLOSED` — an [`rfi_closed`](/basics/webhooks.md#rfi_closed) webhook is dispatched;
* cancels any linked deposits, withdrawals, or payments **still under review** at the time of decline, with [reject code](/moving-funds/payouts/rejection-codes.md) `CANCELLATION_REQUESTED_BY_PARTICIPANT` ;
* leaves anything already confirmed, cancelled, or refunded as-is.

{% hint style="warning" %}
Only `PENDING` RFIs can be declined, and the action is **irreversible** — once declined, no further answers are accepted and the cancelled transactions can not be reinstated.
{% endhint %}

### Decline an RFI by ID

{% tabs %}
{% tab title="JavaScript" %}

```javascript
const bodyJSON = {
  variables: {
    input: {
      rfiId: "61f3a2c8d1e9b7a4c5d6e7f8",
    },
  },
  query: `
mutation ($input: DeclineRfiInput!) {
  declineRfi(input: $input) {
    success
    code
    message
    rfi {
      id
      status
      statusMessage
    }
  }
}`,
};
```

{% endtab %}

{% tab title="GraphQL Query" %}

```graphql
mutation($input: DeclineRfiInput!) {
  declineRfi(input: $input) {
    success
    code
    message
    rfi {
      id
      status
      statusMessage
    }
  }
}
```

{% endtab %}

{% tab title="Variables" %}

```javascript
{
  "input": {
    "rfiId": "61f3a2c8d1e9b7a4c5d6e7f8"
  }
}
```

{% endtab %}

{% tab title="Response" %}

```json
{
  "data": {
    "declineRfi": {
      "success": true,
      "code": "MARKED",
      "message": "RFI marked as unanswered",
      "rfi": {
        "id": "61f3a2c8d1e9b7a4c5d6e7f8",
        "status": "CLOSED",
        "statusMessage": "You specified that you are unable to comply. Relevant transfers can be cancelled."
      }
    }
  }
}
```

{% endtab %}
{% endtabs %}

If the RFI is no longer `PENDING`, the mutation returns `success: false` with code `INVALID_STATUS` and the unchanged RFI — see [RFI response codes](/compliance/request-for-information/rfi-response-codes.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developer.flash-payments.com/compliance/request-for-information/decline-an-rfi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
