Responding to RFIs Programmatically
Pass a request for information through to your user and answer it through to approval, all without you being involved.
The context
When a reviewer needs more information to finish a Compliance Review, they raise a request for information (RFI). The review moves to additionalInformationRequested, and it does not continue until you answer. For what an RFI is and how it fits into the review lifecycle, see Requests for Information (RFIs).
The ideal setup passes each RFI straight through to your user. They see what the reviewer asked for in your product, and they supply it there. To do that, your integration must learn about RFIs and fulfill them programmatically.
Every RFI response follows the same pattern:
- Subscribe to a Webhook that tells you when a reviewer raises an RFI.
- Get the RFI to see which attestations the reviewer wants, and how much of each to resupply.
- Upload the requested attestations to the RFI.
- Submit the RFI so the review can continue.
This guide
In this guide, you have onboarded a business, Acme Corp, and submitted its FULL tier Compliance Review. The reviewer raises an RFI with two requests:
- Acme's proof of address has expired. The utility bill you uploaded is more than 90 days old. The reviewer wants a new one.
- An owner's passport is unreadable. The passport image for Jane Doe, one of Acme's beneficial owners, is too dark. The reviewer wants it again.
You answer that RFI and follow the review until it is approved.
The examples use these shell variables:
export MURAL_API_KEY="..."
export ORGANIZATION_ID="<Acme's Organization ID>"Step 1: Learn that an RFI was raised
Subscribe to the webhooks
You do this once. Use the create Webhook endpoint to subscribe to the COMPLIANCE_REVIEW and RFI categories. Replace the url with your endpoint.
curl --request POST \
--url https://api.muralpay.com/api/webhooks \
--header "accept: application/json" \
--header "authorization: Bearer $MURAL_API_KEY" \
--header "content-type: application/json" \
--data '
{
"url": "https://yourcompany.com/webhooks/mural",
"categories": ["COMPLIANCE_REVIEW", "RFI"]
}
'The webhook starts DISABLED. Save its id from the response, then turn it on with the update Webhook status endpoint:
export WEBHOOK_ID="<id from the response>"
curl --request PATCH \
--url https://api.muralpay.com/api/webhooks/$WEBHOOK_ID/status \
--header "accept: application/json" \
--header "authorization: Bearer $MURAL_API_KEY" \
--header "content-type: application/json" \
--data '{ "status": "ACTIVE" }'The create response also includes a publicKey. Use it to verify that events come from Mural. See Signature Validation.
Receive the RFI event
When the reviewer raises the RFI, Acme's review moves to additionalInformationRequested. You receive a compliance_review_status_changed event, and the status carries the rfiId:
{
"type": "compliance_review_status_changed",
"organizationId": "0c1c0f50-7a89-4e3a-9b1a-1d4ce4d6f001",
"complianceReviewId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"previousStatus": {
"type": "inReview",
"submittedAt": "2026-02-24T12:00:00.000Z"
},
"currentStatus": {
"type": "additionalInformationRequested",
"rfiId": "3f1a9c22-55b8-4e01-9a7d-2c4f6b8e1d03"
},
"updatedAt": "2026-02-25T09:15:00.000Z"
}export RFI_ID="3f1a9c22-55b8-4e01-9a7d-2c4f6b8e1d03"The RFI category sends two more events:
| Event | When it fires |
|---|---|
rfi_created | A reviewer raises an RFI. |
rfi_status_changed | The RFI changes status. For example, it moves to submissionValidationsFailed, submitted or cancelled. |
If you poll instead of subscribing, the same rfiId appears on the review's status from the get Compliance Review endpoint.
Step 2: Read the RFI
Use the get RFI endpoint. The RFI lists only what the reviewer is asking for now.
curl --request GET \
--url "https://api.muralpay.com/api/compliance/$ORGANIZATION_ID/rfis/$RFI_ID" \
--header "accept: application/json" \
--header "authorization: Bearer $MURAL_API_KEY"Acme's RFI asks for one business attestation and one attestation for Jane, under associatedPersons:
{
"id": "3f1a9c22-55b8-4e01-9a7d-2c4f6b8e1d03",
"type": "businessComplianceReview",
"complianceReviewId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": { "type": "outstanding" },
"createdAt": "2026-02-25T09:15:00.000Z",
"updatedAt": "2026-02-25T09:15:00.000Z",
"attestations": [
{
"attestationType": "businessProofOfAddressDocuments",
"requestedScope": {
"type": "wholeAttestation",
"details": [
{
"id": "9b2d7c41-0e6f-4a83-b5d2-7f1e3c9a8b60",
"code": "EXPIRED_DOCUMENT",
"title": "Expired document",
"description": "The uploaded proof of address is older than 90 days."
}
]
}
}
],
"associatedPersons": [
{
"associatedPersonId": "550e8400-e29b-41d4-a716-446655440001",
"attestations": [
{
"attestationType": "associatedPersonIdentityDocument",
"requestedScope": {
"type": "wholeAttestation",
"details": [
{
"id": "5a8f2e17-6c3d-4b90-a1e4-0d7c9b2f6e38",
"code": "POOR_QUALITY",
"title": "Poor quality",
"description": "The document image is too dark to read."
}
]
}
}
]
}
]
}Both requests have requestedScope.type set to wholeAttestation, so you send each attestation again in full. Show each description to Acme, so they know what to fix.
export JANE_ID="550e8400-e29b-41d4-a716-446655440001"How much to resupply
requestedScope.type tells you how much of an attestation to send back.
requestedScope.type | What to send |
|---|---|
wholeAttestation | The entire attestation, as if uploading it for the first time. Previous values are not kept. |
fields | At least the fields named in fields[]. Extra fields are accepted. If you omit a named field, the upload fails. |
Why the reviewer asked
Each details entry carries an id, a machine-readable code, a short title, and the reviewer's own description. Show title and description to your user, and use code to drive your logic. When the reviewer gave no title, title is a generic label for code. A supplemental answer cites a detail by its id.
code | Meaning |
|---|---|
INCORRECT_DOCUMENT | The wrong document was supplied. |
POOR_QUALITY | Unreadable — blurred, cropped, or too dark. |
MISSING_INFORMATION | Required information was absent. |
INCONSISTENT_DATA | Conflicts with other supplied data. |
EXPIRED_DOCUMENT | Past its validity date. |
ADDRESS_NOT_FOUND | The address could not be verified. |
ADDRESS_SUGGESTED_CORRECTION | A corrected address is suggested. |
OTHER | See description. |
Supplemental requests
A reviewer can ask for something that is not part of a standard attestation. These requests appear in attestations like any other, always with wholeAttestation scope. Each details entry is one thing the reviewer is asking for.
attestationType | What to send |
|---|---|
supplementalDocument / associatedPersonSupplementalDocument | At least one file for each detail |
supplementalInfo / associatedPersonSupplementalInfo | One written answer for each detail |
For example, a reviewer who needs bank statements for two wires and an explanation of who sent them adds these to attestations:
[
{
"attestationType": "supplementalDocument",
"requestedScope": {
"type": "wholeAttestation",
"details": [
{
"id": "3f1c8e2a-4b6d-4c7e-9a10-2b3c4d5e6f70",
"code": "MISSING_INFORMATION",
"title": "March wire bank statement",
"description": "Upload the bank statement that shows the incoming March 3 wire."
},
{
"id": "8a27d4c1-9e3b-4f5a-b6c7-d8e9f0a1b2c3",
"code": "MISSING_INFORMATION",
"title": "April wire bank statement",
"description": "Upload the bank statement that shows the incoming April 2 wire."
}
]
}
},
{
"attestationType": "supplementalInfo",
"requestedScope": {
"type": "wholeAttestation",
"details": [
{
"id": "d41b7f3e-2a9c-4e8d-a5b6-c7d8e9f0a1b2",
"code": "OTHER",
"title": "Relationship to Globex Corp.",
"description": "Globex Corp. is not listed among your customers. Explain your relationship and why they sent both wires."
}
]
}
}
]Requests about an associated person appear in that person's attestations with the associatedPerson types. These types appear only on RFIs, never on the compliance review or the associated person. See Answering supplemental requests.
Step 3: Upload the new documents
Collect a new proof of address from Acme and a clearer passport image from Jane. Upload each file with the Uploading Documents for an Attestation flow, and keep the documentId it returns:
export PROOF_OF_ADDRESS_DOCUMENT_ID="<documentId for the new utility bill>"
export PASSPORT_DOCUMENT_ID="<documentId for the new passport image>"Step 4: Upload the requested attestations
Use the upload RFI attestations endpoint. Send both attestations in one list. Jane's entry carries her associatedPersonId, and Acme's does not. The endpoint accepts only the types the RFI named. Any other type returns a 400.
Each attestation carries the same fields it carries on a Compliance Review. See Business KYC Requirements for the fields of each type.
One exception: if a business RFI requests businessAssociatedPerson, create the person and upload all of their required attestations first. Then add them with { "type": "businessAssociatedPerson", "associatedPersonId": "<id>" }, one entry per person.
curl --request PUT \
--url "https://api.muralpay.com/api/compliance/$ORGANIZATION_ID/rfis/$RFI_ID/attestations" \
--header "accept: application/json" \
--header "authorization: Bearer $MURAL_API_KEY" \
--header "content-type: application/json" \
--data @- <<EOF
{
"attestations": [
{
"type": "businessProofOfAddressDocuments",
"proofOfAddressDocuments": [
{ "documentType": "UTILITY_BILL", "documentId": "$PROOF_OF_ADDRESS_DOCUMENT_ID" }
]
},
{
"type": "associatedPersonIdentityDocument",
"associatedPersonId": "$JANE_ID",
"governmentId": {
"type": "passport",
"countryCode": "US",
"passportNumber": "A12345678",
"passportDocumentId": "$PASSPORT_DOCUMENT_ID"
}
}
]
}
EOFThe response reports what this request stored, split into business and associated-person attestations:
{
"reviewAttestations": [
{
"id": "c4a1f0d2-8b3e-4f27-9a05-1e6d3b7c8f42",
"attestationType": "businessProofOfAddressDocuments",
"createdAt": "2026-02-25T10:02:00.000Z",
"validationStatus": { "type": "pending" }
}
],
"associatedPersons": [
{
"associatedPersonId": "550e8400-e29b-41d4-a716-446655440001",
"attestations": [
{
"id": "1d7b5e93-0c62-4a18-b3df-9e4a2c6f5017",
"attestationType": "associatedPersonIdentityDocument",
"createdAt": "2026-02-25T10:02:00.000Z",
"validationStatus": { "type": "pending" }
}
]
}
]
}Each type can appear one time per request, or one time per person for associated-person types. A repeated type returns a 400. You can upload again as many times as you need before submitting.
validationStatus.type is pending, approved, or failed. Both attestations here are checked asynchronously, so they come back pending. Before you submit, check both:
pendingblocks submission. Poll until it resolves, then submit.failedwith anyBLOCKINGfailure blocks submission. Upload the attestation again with corrected data.failedwith onlyWARNINGfailures can be submitted withacknowledgeWarnings: true.
Written supplemental answers come back approved. Supplemental documents, both supplementalDocument and associatedPersonSupplementalDocument, are checked like other documents, each file against the detail it cites, so they come back pending.
A failed check blocks submit with a 412. The error name is AttestationValidationsRejectedException for business attestations, or AssociatedPersonAttestationValidationsRejectedException for associated-person attestations, whose params.attestations include the associatedPersonId to re-upload against.
Adding a note for the reviewer
Supporting-document attestations, such as proof of address or UBO ownership documents, and the supplemental answers below accept an optional additionalInformation string. Use it for context the other fields cannot carry, such as where the requested detail sits in a document, or what a document is called in the applicant's country:
{
"type": "businessProofOfAddressDocuments",
"proofOfAddressDocuments": [
{
"documentType": "UTILITY_BILL",
"documentId": "$PROOF_OF_ADDRESS_DOCUMENT_ID"
}
],
"additionalInformation": "The bill is issued to Acme Holdings, Acme's former trading name."
}Answering supplemental requests
Send each answer in attestations, citing every detail of the request by its id. For a document request, upload each file through the Uploading Documents for an Attestation flow first.
{
"attestations": [
{
"type": "supplementalDocument",
"documents": [
{
"documentId": "c7e9a1b3-5d2f-4e6a-8b0c-1d3f5a7b9c2e",
"detailId": "3f1c8e2a-4b6d-4c7e-9a10-2b3c4d5e6f70"
},
{
"documentId": "e2a4c6b8-1d3f-4a5b-9c7d-0e2f4a6b8c1d",
"detailId": "8a27d4c1-9e3b-4f5a-b6c7-d8e9f0a1b2c3"
}
]
},
{
"type": "supplementalInfo",
"answers": [
{
"detailId": "d41b7f3e-2a9c-4e8d-a5b6-c7d8e9f0a1b2",
"answer": "Globex Corp. is our largest customer. The wires paid invoices 1042 and 1057."
}
]
}
]
}documents(document requests): 1 to 10 files, no file repeated. Each one names thedetailIdit answers, and several files may answer the same detail.answers(written-answer requests): one entry per detail, each up to 4,096 bytes of UTF-8 text. That is 4,096 characters of plain ASCII text, and fewer when the answer uses accented letters or other non-ASCII characters. An answer cannot be blank.- Every detail of the request needs an answer, and each
detailIdmust belong to that request. Otherwise the upload returns a400. - For a request on an associated person, use
associatedPersonSupplementalDocumentorassociatedPersonSupplementalInfoand addassociatedPersonId.
Each upload replaces the previous answer to that request. To add a file, send the full list again.
Step 5: Submit the RFI
Use the submit RFI endpoint. Submitting validates your response against the rest of Acme's review.
curl --request POST \
--url "https://api.muralpay.com/api/compliance/$ORGANIZATION_ID/rfis/$RFI_ID/submit" \
--header "accept: application/json" \
--header "authorization: Bearer $MURAL_API_KEY"If a validation fails, the RFI moves to submissionValidationsFailed, and its status lists the failures. For example, the address on the new utility bill may not match the address Acme attested:
{
"type": "submissionValidationsFailed",
"failures": [
{
"severity": "WARNING",
"failureDescription": "The address on the document does not match the attested address.",
"failureInfo": {
"validationCode": "DOCUMENT_DATA_MISMATCH",
"attestationType": "businessProofOfAddressDocuments",
"documentId": "9e4f7a25-3b81-4d60-95c7-2f8a6b0e1d54",
"mismatchedField": "ADDRESS",
"documentValue": "456 Main St, New York, NY, 10001, US"
}
}
]
}You must correct a BLOCKING failure and upload again. To proceed past a WARNING failure, submit again with { "acknowledgeWarnings": true } as the request body. Use failureInfo.validationCode to drive your logic.
Step 6: Follow the review to approval
When the submit succeeds, the RFI moves to submitted and Acme's review returns to inReview. You receive both changes as webhooks:
{
"type": "compliance_review_status_changed",
"organizationId": "0c1c0f50-7a89-4e3a-9b1a-1d4ce4d6f001",
"complianceReviewId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"previousStatus": {
"type": "additionalInformationRequested",
"rfiId": "3f1a9c22-55b8-4e01-9a7d-2c4f6b8e1d03"
},
"currentStatus": {
"type": "inReview",
"submittedAt": "2026-02-24T12:00:00.000Z"
},
"updatedAt": "2026-02-25T10:10:00.000Z"
}The reviewer then decides. When they approve Acme, the review moves to approved, and Acme can start moving funds:
{
"type": "compliance_review_status_changed",
"organizationId": "0c1c0f50-7a89-4e3a-9b1a-1d4ce4d6f001",
"complianceReviewId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"previousStatus": {
"type": "inReview",
"submittedAt": "2026-02-24T12:00:00.000Z"
},
"currentStatus": {
"type": "approved",
"submittedAt": "2026-02-24T12:00:00.000Z",
"approvedAt": "2026-02-26T15:30:00.000Z"
},
"updatedAt": "2026-02-26T15:30:00.000Z"
}If the reviewer needs more, they raise a new RFI, and the review moves back to additionalInformationRequested with a new rfiId. Start again from Step 2.
If the RFI is cancelled
An RFI can be cancelled before you submit it. Do not continue with a cancelled RFI. Read the review again to see what changed:
reason | Meaning |
|---|---|
WITHDRAWN_BY_REVIEWER | The reviewer no longer needs the information. |
SUBJECT_RESET | A KYB reset reverted the review to draft. |
SUPERSEDED | A newer RFI replaced this one. Read the review for the current rfiId. |
RFI statuses
status.type | Meaning | Can you still act? |
|---|---|---|
outstanding | The reviewer is waiting. Upload, then submit. | Yes |
validatingSubmission | Validations are running against your response. | No |
submissionValidationsFailed | One or more validations failed. failures lists them. | Yes — correct the failing validations and submit again |
submitted | The RFI is with our compliance team. submittedAt records the time. | No |
cancelled | The RFI was cancelled. reason and cancelledAt explain. | No |
Updated 11 days ago

