Response Format
API responses follow a consistent JSON structure. Most endpoints return data directly, while some return paginated lists or nested objects. The exact structure depends on the endpoint and any query parameters you use. Example response:Response Properties
By default, API responses include:- Direct properties of the requested object
- IDs for related objects (which require additional API calls to fetch full details)
- Status and metadata relevant to the request
Expanding Related Objects
The HIFI API supports expanding related objects in responses to reduce API calls and improve efficiency. Instead of making multiple requests to fetch related data, you can use theexpand parameter to include nested objects directly in a single response.
How Expansion Works
By default, API responses include only basic object properties and IDs for related objects. When you use theexpand parameter, the API replaces these IDs with the full related objects, including all their properties.
Example without expansion:
KYC Endpoints
Update KYC Endpoint
POST/v2/users/{userId}/kyc
When updating KYC information, you can expand related objects to get immediate access to updated data:
ultimateBeneficialOwners- Include full UBO objectsdocuments- Include all KYC documentsultimateBeneficialOwners.documents- Include documents for each UBO
Retrieve KYC Information
GET/v2/users/{userId}/kyc
Retrieve KYC information with expanded related objects:
- Display complete KYC status including UBO details
- Show all associated documents in a single request
- Access nested document information for each UBO
UBO Endpoints
Add a UBO
POST/v2/users/{userId}/kyc/ultimateBeneficialOwners
When adding a new UBO, expand documents to immediately see associated documents:
documents- Include all documents for the UBO
Update a UBO
PUT/v2/users/{userId}/kyc/ultimateBeneficialOwners/{uboId}
Update UBO information with expanded document details:
Retrieve a UBO
GET/v2/users/{userId}/kyc/ultimateBeneficialOwners/{uboId}
Get specific UBO details with expanded documents:
List all UBOs
GET/v2/users/{userId}/kyc/ultimateBeneficialOwners
Retrieve all UBOs with their associated documents: