Skip to main content

Get RFI

Endpoint: GET https://api.zamp.finance/api/client/:clientid/customer/:customerid/kyc/:kycid/rfi

When the KYC status is rfi_requested call this API to get all the information required to process the KYC.

Path Parameters

ParameterTypeRequiredDescription
clientidstringYesSuper Merchant client ID
customeridstringYesCustomer/Merchant ID
kycidstringYesKYC process ID

Response

GetRFIResp

FieldTypeDescription
idstringRFI field ID
rfi_detailsRfiDetailsMain RFI details object
parent_rfi_detailsParentRfiDetails[]Array of parent RFI details (Can be empty)
created_attime.TimeRFI creation timestamp
updated_attime.TimeRFI last update timestamp

RfiDetails

FieldTypeDescription
promptstringRFI prompt/question text
is_document_requiredbooleanWhether document submission is required
is_front_back_requiredbooleanWhether front and back of document are required
rfi_documentRfiDocumentDocument type and category information
transaction_detailsTransactionDetailsAssociated transaction information
transaction_idstringTransaction ID if linked to a transaction
parent_rfi_idstringID of the parent RFI (if any)
kyc_linkKycLinkKYC platform link information

RfiDocument

FieldTypeDescription
document_type_valuestringDocument type value
document_type_labelstringHuman-readable document type label
document_sub_type_valuestring[]Array of document subtype values
document_sub_type_labelstring[]Array of human-readable document subtype labels
document_categoriesmap[string][]stringDocument categories mapping

ParentRfiDetails

FieldTypeDescription
idstringParent RFI ID
rfi_detailsRfiDetailsParent RFI details (same structure as main RFI)
notesstringAdditional notes for the parent RFI
parent_documentsParentDocument[]Array of documents submitted for parent RFI

ParentDocument

FieldTypeDescription
document_typestringType of document
document_sub_typestringSubtype of document
numberstringDocument number/identifier
issued_datestringDocument issue date (YYYY-MM-DD)
place_of_birthstringPlace of birth (if applicable)
expiry_datestringDocument expiry date (YYYY-MM-DD)
document_base64stringBase64 encoded document content
commentstringAdditional comments about the document
signed_rfi_document_urlsstring[]Array of signed URLs for secure document access

TransactionDetails

FieldTypeDescription
transaction_idstringUnique transaction identifier
transfer_methodstringTransfer method used
transfer_typestringType of transfer (inbound/outbound)
source_amountfloat64Source amount in source currency
receiving_amountfloat64Receiving amount in destination currency
source_currency_codestringSource currency code
source_currency_display_namestringHuman-readable source currency name
destination_currency_codestringDestination currency code
destination_currency_display_namestringHuman-readable destination currency name
created_attime.TimeTransaction creation timestamp
FieldTypeDescription
linkstringKYC platform link URL
expiry_datetime.TimeLink expiry timestamp

Response JSON Representation

{
"data": [
{
"id": "rfi_field_123",
"rfi_details": {
"prompt": "Please provide proof of address",
"is_document_required": true,
"is_front_back_required": false,
"rfi_document": {
"document_type_value": "proof_of_address",
"document_type_label": "Proof of Address",
"document_sub_type_value": [
"utility_bill"
],
"document_sub_type_label": [
"Utility Bill"
],
"document_categories": {}
},
"transaction_details": {
"transaction_id": "txn_456",
"transfer_method": "bank_transfer",
"transfer_type": "outbound",
"source_amount": 1000,
"receiving_amount": 950,
"source_currency_code": "USD",
"source_currency_display_name": "US Dollar",
"destination_currency_code": "EUR",
"destination_currency_display_name": "Euro",
"created_at": "2024-01-15T10:30:00Z"
},
"transaction_id": "txn_456",
"parent_rfi_id": "parent_rfi_789",
"kyc_link": {
"link": "https://kyc.link/123",
"expiry_date": "2024-02-15T10:30:00Z"
}
},
"parent_rfi_details": [
{
"id": "parent_rfi_789",
"rfi_details": {
"prompt": "Previous address verification",
"is_document_required": true,
"is_front_back_required": false,
"rfi_document": {
"document_type_value": "proof_of_address",
"document_type_label": "Proof of Address",
"document_sub_type_value": [
"utility_bill"
],
"document_sub_type_label": [
"Utility Bill"
],
"document_categories": {}
},
"parent_rfi_id": "grandparent_rfi_456",
"kyc_link": {
"link": "https://kyc.link/456",
"expiry_date": "2024-02-10T10:30:00Z"
}
},
"notes": "Previous address document submitted",
"parent_documents": [
{
"document_type": "proof_of_address",
"document_sub_type": "utility_bill",
"number": "UTIL123456",
"issued_date": "2024-01-01",
"place_of_birth": "",
"expiry_date": "2025-01-01",
"document_base64": "base64_encoded_content",
"comment": "Previous address document",
"signed_rfi_document_urls": [
"https://signed-url-1.com/document1",
"https://signed-url-2.com/document2"
]
}
]
}
],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
]
}

Error Responses

400 Bad Request json { "error": "Invalid request parameters", "code": "INVALID_PARAMS" }

401 Unauthorized json { "error": "Missing or invalid authentication token", "code": "UNAUTHORIZED" }

403 Forbidden json { "error": "Super Merchant and Merchant are not linked", "code": "ACCESS_FORBIDDEN" }

404 Not Found json { "error": "KYC process not found", "code": "NOT_FOUND" }