Endpoint
Path Parameters
The collection to search. Supported values:
ledgers: Search ledgersbalances: Search balancestransactions: Search transactionsidentities: Search identitiesreconciliations: Search reconciliations
Request Body
The request body accepts Typesense search parameters.The search query. Use
* to match all documentsComma-separated list of fields to search in. If not specified, searches all text fieldsExamples:
- For transactions:
"reference,description" - For identities:
"first_name,last_name,email_address" - For balances:
"balance_id,currency"
Filter conditions to narrow down results. Use Typesense filter syntaxExamples:
"currency:USD""status:completed && amount:>100""created_at:>1704067200"
Field(s) to sort by. Prefix with
- for descending orderExamples:"created_at:desc""amount:asc"
Number of results per page (max 250)
Page number to retrieve
Comma-separated list of fields to facet byExample:
"currency,status"Response
Total number of documents matching the search
Array of search results
Facet counts for the requested facet fields
Current page number
Total number of pages
Example Requests
Search Transactions by Reference
Search USD Balances
Search Identities by Email
Search with Faceting
Example Response
Advanced Filtering
Numeric Filters
Date Range Filters
Multiple Conditions
Error Responses
Error message describing what went wrong
Common Errors
- 400 Bad Request: Invalid collection name or search parameters
- 500 Internal Server Error: Search service error
Performance Tips
- Use specific query_by fields: Searching specific fields is faster than searching all fields
- Apply filters: Use
filter_byto narrow results before searching - Limit results: Use appropriate
per_pagevalues (smaller is faster) - Leverage facets: Use faceting to understand data distribution before refining searches