Simulate RFI
Simulate the full RFI lifecycle in the sandbox environment.
The sandbox environment provides a complete set of endpoints to simulate the Request for Information (RFI) lifecycle: creating RFIs, responding as a customer, and resolving them as staff.
In production, RFIs are raised by Pave Bank's compliance team. In sandbox, the API client creates and manages RFIs to test the handling logic. See the RFI Guide for the production workflow.
Sandbox Workflow Overview
The sandbox RFI flow mirrors production but provides control over both sides; the compliance team (staff) and the customer.
- Create an RFI - Simulate Pave Bank raising an RFI against a transaction or account
- Fetch the RFI - Retrieve it using the production Get RFI or List RFIs endpoints
- Respond as a customer - Submit responses using the production Respond to RFI endpoint
- Optionally add staff responses - Simulate staff feedback or document requests
- Resolve each question - Approve, reject, or close individual questions
- Resolve the RFI - Close the entire RFI once all questions are resolved
RFI Statuses
Both RFIs and their questions share the same set of statuses. Understanding these is key to testing the full lifecycle.
| Status | Description | Final Status? |
|---|---|---|
action_required | Waiting for customer to respond | No |
pending_review | Customer has responded, waiting for staff review | No |
approved | Staff has approved the response(s) | Yes |
rejected | Staff has rejected the response(s) | Yes |
closed | Manually closed without a decision | Yes |
timeout | No response received within the allowed period (30 days from last update) | Yes |
How Statuses Change
Question-level transitions:
RFI-level transitions:
The RFI status is automatically derived from its questions:
- If any question is
action_required→ RFI isaction_required - If all questions are
pending_reviewor final → RFI ispending_review - RFI reaches a final state (
approved,rejected,closed) only via an explicit RFI Action
An action cannot be performed on the entire RFI until all of its
questions are in a final status (approved, rejected, or closed).
Resolve each question first using the RFI Question
Action endpoint.
Step-by-Step: Full Sandbox Test
Step 1: Create an RFI
Use Create RFI to simulate Pave Bank raising an RFI with one or more questions. All Question Types available in production are supported in sandbox.
The RFI and all its questions start in action_required status.
Step 2: Fetch the RFI
Use the production endpoints to retrieve the RFI.
Note: The rfi_id and question_id from the response are required for subsequent steps.
Step 3: Respond as a Customer
Use the production Respond to RFI endpoint to submit a customer response.
After a customer response, the question status moves to pending_review.
Step 4: (Optional) Add a Staff Response
Use Create Admin Response to simulate staff requesting clarification.
After a staff response, the question status returns to action_required, prompting the customer to respond again.
Step 5: Resolve Each Question
Once the customer response is satisfactory, use Question Action to approve, reject, or close it.
The question moves to the corresponding final status (approved, rejected, or closed).
Step 6: Resolve the RFI
Once all questions are in a final status, use RFI Action to close the entire RFI.
The RFI is now in its final state.
Incoming Transfer POST
Create an incoming transfer. The transfer_incoming_type must be specified (e.g., SWIFT) and the respective transfer type's payload be filled out in the request body. For example, if transfer_external_type is SWIFT_INCOMING, the swift parameters must be completed.
Create RFI POST
Create a new Request for Information (RFI) for testing purposes.