Listing, Filtering & Sorting
Page through list endpoints, narrow the results with filters, and choose their order.
Every list endpoint (payment charges, payouts, virtual accounts, transfers and balance transactions) shares the same query parameters for paging, filtering and sorting.
curl -G "https://api.kingsplatform.net/api/api/v1/payments/charges" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "filters=status:equal:success,created_at:between:2026-11-01;2026-11-30;+07:00" \
--data-urlencode "sort=-amount" \
--data-urlencode "pagesize=50"Paging
| Parameter | Default | |
|---|---|---|
page | 1 | The page to return, starting at 1. |
pagesize | 10 | Items per page, up to 100. |
The response carries page, page_size and total_items next to data, so you can tell how many pages there are.
Filtering
filters takes one or more filters separated by commas. Each filter is field:condition:value:
status:equal:success
amount:greater-than-or-equal:100000
created_at:after:2026-11-01- Different fields must all match:
status:equal:success,payment_method:equal:qrisreturns successful QRIS charges. - The same field repeated matches any of them:
status:equal:success,status:equal:failedreturns charges that succeeded or failed.
Field names are written like the response fields (created_at); created-at and createdAt work too. Text values are matched without regard to case.
Conditions
| Field type | Conditions |
|---|---|
| Text | equal, not-equal |
| Number | equal, not-equal, greater-than, greater-than-or-equal, less-than, less-than-or-equal, between |
| Date | equal, not-equal, before, after, between |
| Status, currency, payment method | equal, not-equal |
You can send up to 10 filters. Text is matched whole, not by part of it: search by a reference you stored, such as client_reference_id.
For numbers, between takes min;max, both included: amount:between:10000;50000.
Dates
Dates are compared by whole days, in UTC unless you say otherwise:
| Filter | Matches |
|---|---|
created_at:equal:2026-11-12 | Any time on 12 November (UTC) |
created_at:equal:2026-11-12T00:00:00+07:00 | Any time on 12 November in UTC+7. Only the date and offset are used. |
created_at:before:2026-11-12 | Before 12 November starts |
created_at:after:2026-11-12 | After 12 November ends, so from 13 November |
created_at:between:2026-11-01;2026-11-30 | 1 to 30 November, both days included |
created_at:between:2026-11-01;2026-11-30;+07:00 | The same days in UTC+7 |
created_at:between:2026-11-01T08:00:00+07:00;2026-11-01T17:00:00+07:00 | Exactly that time range |
Special characters
Commas separate filters, so a value that contains a comma must have it encoded as %2C inside the filters value, which becomes %252C in the URL. Colons in a value need no escaping.
Sorting
sort takes one field. Add a - in front to sort from highest or newest: sort=-amount. Without sort, results are newest first.
Errors
A filter or sort the endpoint can't use is rejected with 400 Bad Request rather than ignored:
| Code | Cause |
|---|---|
invalid_filter | An unknown field, a condition or value that field doesn't support, or more than 10 filters |
invalid_sort | A field you can't sort by |
The error's message names the part that's wrong, and field is filters or sort.
Payment charges
List Payment Charges supports:
| Fields | |
|---|---|
| Filter | id, status, payment_method, currency, amount, fee, application_fee_amount, client_reference_id, created_at, updated_at |
| Sort | created_at, updated_at, paid_at, expires_at, amount, fee, application_fee_amount |
status takes the values the API returns: pending, confirming, success, part_paid and failed.
Virtual accounts
List Virtual Accounts only returns virtual accounts that haven't expired. It supports:
| Fields | |
|---|---|
| Filter | id, number, name, payment_method, type, amount, created_at, expires_at, payment_charge_id |
| Sort | created_at, expires_at, amount, min_amount, max_amount, name |
type takes open or close.
Payouts
List Payouts returns withdrawals and disbursements together. It supports:
| Fields | |
|---|---|
| Filter | id, status, type, currency, amount, fee, account_number, account_holder_name, client_reference_id, created_at |
| Sort | created_at, updated_at, amount, fee |
status takes pending, approved, processing, succeeded, failed, rejected, returned and suspected. type takes withdraw or disbursement.
Balance transactions
List Balance Transactions returns every movement of money in or out of your balance. Money leaving it has a negative amount and net_amount. It supports:
| Fields | |
|---|---|
| Filter | id, type, currency, amount, fee, description, created_at, available_at, linked_entity_id |
| Sort | created_at, available_at, amount, fee |
type takes payment, disbursement, withdraw, return, void, transfer_in, transfer_out, application_fee, commission and balance_correction. To find the balance transactions of one charge, payout or transfer, filter on linked_entity_id.
Transfers
List Transfers returns the transfers your account sent and received. It supports:
| Fields | |
|---|---|
| Filter | id, status, currency, amount, source_account_id, destination_account_id, client_reference_id, created_at |
| Sort | created_at, updated_at, amount |
status takes pending, succeeded and failed. To see one direction, filter on your own account: source_account_id:equal:<your account ID> for transfers you sent.