# Handle RFI for a Payment Link

## Option 1: Upload via Merchant Dashboard

You can upload the requested documents directly from the Merchant Dashboard.

### 1. You create the Payment Link

### 2. If additional information is required, you'll see Action Required

![RFI Modal preview](/assets/rfi-modal.6de3fe7d248baf5b7ca1afc531fdd7e08b9fc64b74d8fa6527a5c77f2616ce43.3da120da.png)

### 3. The dashboard will prompt you to upload the required supporting documents

### 4. After upload, the status changes to Under Review

![RFI Successful upload preview](/assets/rfi-successful-upload.29250c9b6f14a0353efca0e4f0dc3160fe987557f950992b51239b32a0a44881.3da120da.png)

### 5. Final decision is shared via callback/webhook (and reflected on the dashboard)

![RFI Result preview](/assets/rfi-result.a54b2b3a5679012f94e4731e0d4423239a11ff96358dd1db7c59aa09593ad2ad.3da120da.png)

## Option 2: Upload via API

If you want to submit RFI documents through your backend, you can upload them using Glomopay's Update RFI Document API.

### When this happens:

During Create Payment Link, Glomopay runs risk checks as mentioned earlier.

If additional verification is required, the Create API returns:

- status: `action_required`


What you get in the Create response

Along with the `payment_link_id`, you'll receive:

- `rfi_documents` - a list of required documents, each containing:
  - `rfi_document_id`
  - `required_document_type` (e.g., passport)


**Important**: Each `rfi_document_id` represents one specific required document. You must upload documents against the same IDs.

What happens after you upload

Once all required documents are uploaded successfully:

- Status changes to `under_review`
- Glomopay reviews the submission
- Status updates are sent via callback/webhook
- If approved, status becomes active


#### Payment Link Flow (Example)

1. The Create Payment Link API returns `action_required` and provides:
  - The payment link ID
  - One or more RFI document IDs, each with an associated required document type
2. Upload the required documents using the [Create a Document API](/api-reference/openapi/document/createdocument).
3. Call the [Update RFI Documents for a Payment Link API](/api-reference/openapi/payment_link/updatepayinrfi) by supplying:
  - The payment link ID returned from step 1
  - The RFI document IDs returned from step 1
  - The id returned from step 2
4. After successfully uploading the documents, the Glomopay compliance team will review the documents and any status update will be communicated via a callback.