> 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/answer-rfi-questions.md).

# Answer RFI questions

Submit answers with plaintext or documents

Use the `answerRfiQuestion` mutation to submit an answer for a single question on a `PENDING` RFI. Files are sent inline as base64 in the same call — there is no separate upload step or multipart request.

### **What kind of answer to send**&#x20;

The shape of the answer depends on the question's `fileUploadOption`:

| fileUploadOption | What to send                                                                                                                            |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `PREFERRED`      | A document is expected — send `files`. If the document is not available, send `text` with the reason instead. Sending both is rejected. |
| `NONE`           | Send `text` only. Files are not accepted.                                                                                               |

### **File rules**

* Accepted extensions: `.pdf`, `.jpg`, `.jpeg`, `.png`, `.xls`, `.xlsx`. The extension determines the MIME type, so it must match the actual file.
* Up to **10 files** per question.
* Up to **10 MB** per file (raw bytes, before base64 encoding).
* `base64` must be the plain base64 body, with no `data:...;base64,` prefix.

### &#x20;**Answer with a file**

For a `PREFERRED` question.

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

```javascript
const bodyJSON = {
  variables: {
    input: {
      rfiId: "61f3a2c8d1e9b7a4c5d6e7f8",
      questionCode: "SENDER_ID_PROOF",
      files: [{ name: "passport.pdf", base64: "JVBERi0xLjQK..." }],
    },
  },
  query: `
mutation ($input: AnswerRfiQuestionInput!) {
  answerRfiQuestion(input: $input) {
    success
    code
    message
    rfi {
      id
      status
      questions { questionCode answered }
    }
  }
}`,
};
```

{% endtab %}

{% tab title="GraphQL Query" %}

```graphql
mutation($input: AnswerRfiQuestionInput!) {
  answerRfiQuestion(input: $input) {
    success
    code
    message
    rfi {
      id
      status
      questions { questionCode answered }
    }
  }
}
```

{% endtab %}

{% tab title="Variables" %}

```javascript
{
  "input": {
    "rfiId": "61f3a2c8d1e9b7a4c5d6e7f8",
    "questionCode": "SENDER_ID_PROOF",
    "files": [
      { "name": "passport.pdf", "base64": "JVBERi0xLjQK..." }
    ]
  }
}
```

{% endtab %}

{% tab title="Response" %}

```json
{
  "data": {
    "answerRfiQuestion": {
      "success": true,
      "code": "RECORDED",
      "message": "RFI reply recorded",
      "rfi": {
        "id": "61f3a2c8d1e9b7a4c5d6e7f8",
        "status": "PENDING",
        "questions": [
          { "questionCode": "SENDER_ID_PROOF", "answered": true },
          { "questionCode": "OTHER_TX_PURPOSE", "answered": false }
        ]
      }
    }
  }
}
```

{% endtab %}
{% endtabs %}

### **Answer with plain text only**

For a `NONE` question, or for a `PREFERRED` question where the document is not available and you provide the reason instead.

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

```javascript
const bodyJSON = {
  variables: {
    input: {
      rfiId: "61f3a2c8d1e9b7a4c5d6e7f8",
      questionCode: "OTHER_TX_PURPOSE",
      text: "Payment for invoice #INV-2031, software development services.",
    },
  },
  query: `
mutation ($input: AnswerRfiQuestionInput!) {
  answerRfiQuestion(input: $input) {
    success
    code
    message
    rfi {
      id
      status
      questions { questionCode answered }
    }
  }
}`,
};
```

{% endtab %}

{% tab title="GraphQL Query" %}

```graphql
mutation($input: AnswerRfiQuestionInput!) {
  answerRfiQuestion(input: $input) {
    success
    code
    message
    rfi {
      id
      status
      questions { questionCode answered }
    }
  }
}
```

{% endtab %}

{% tab title="Variables" %}

```javascript
{
  "input": {
    "rfiId": "61f3a2c8d1e9b7a4c5d6e7f8",
    "questionCode": "OTHER_TX_PURPOSE",
    "text": "Payment for invoice #INV-2031, software development services."
  }
}
```

{% endtab %}

{% tab title="Response" %}

```json
{
  "data": {
    "answerRfiQuestion": {
      "success": true,
      "code": "RECORDED",
      "message": "RFI reply recorded",
      "rfi": {
        "id": "61f3a2c8d1e9b7a4c5d6e7f8",
        "status": "ASSESSING",
        "questions": [
          { "questionCode": "SENDER_ID_PROOF", "answered": true },
          { "questionCode": "OTHER_TX_PURPOSE", "answered": true }
        ]
      }
    }
  }
}
```

{% endtab %}
{% endtabs %}

### **Completing the RFI**

Each question can be answered once — pick the questions with `answered: false`. When the last open question is answered, the RFI moves to `ASSESSING` in the same call (as in the response above) and an [`rfi_assessing`](/basics/webhooks.md#rfi_assessing) webhook is dispatched. No further action is required from you.

{% hint style="info" %}
Invalid submissions such as an unknown `questionCode`, an already-answered question, files on a `NONE` question, or a file-rule violation will be rejected as GraphQL errors. [See RFI response codes](/compliance/request-for-information/rfi-response-codes.md).&#x20;
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
