Skip to main content
Every PeerPesa list endpoint, including orders and transaction histories, shares the same query parameters for paging, searching, date filtering, and sorting. Combine them freely: for example, page 2 of successful swaps from July 2026 that mention a wallet address. Each endpoint page also lists the extra filters specific to it.

Common query parameters

Pagination

integer
default:"1"
Page number to return, starting at 1. Requesting a page beyond total_pages returns an empty data array.
integer
default:"20"
Number of items per page. Maximum is 100. Larger values return invalid_parameter.
integer
default:"20"
Alias for size, accepted for compatibility. If you send both, size is used.
Free-text search, case-insensitive. Matches IDs and reference numbers (such as order_id or transaction_id), wallet addresses, tx_hash, asset symbols, account numbers, and names, depending on the endpoint. Minimum 2 characters.

Date range

string
Only include items created on or after this date. Accepts YYYY-MM-DD (start of day, UTC) or a full ISO 8601 timestamp.
string
Only include items created on or before this date. Accepts YYYY-MM-DD (end of day, UTC) or a full ISO 8601 timestamp. Must be on or after start_date.

Sorting

string
default:"created_at"
Field to sort by: created_at, updated_at, or amount (where the list has amounts).
string
default:"desc"
desc for newest or largest first, asc for oldest or smallest first.

Status

string
Filter by status. Accepts one value or a comma-separated list, for example status=successful,pending. Valid values depend on the endpoint.

Response format

Response
object[]
Items on the current page that match your filters.
object

Examples

New items can arrive while you page through results, which may shift items between pages. For reconciliation, always set a fixed end_date so the result set does not change while you read it.

Errors

Endpoints that support these parameters