Skip to main content
Version: 2019-05-29 (Current)

Search charge schedules

Search charge schedules to find schedules by customer, status, amount, and other criteria. The Search API provides powerful full-text search capabilities across all charge schedules.


Request Parametersโ€‹

Recommended - 2 fieldsRecommended Parameters
โ–ผ
`query`STRING(optional)
Search query string. Searches across schedule description, metadata, customer information, and other fields. Supports multiple words (AND logic) and partial matches.
Example:"monthly subscription"
`filters`OBJECT(optional)
Filter criteria to narrow search results. Common filters include status, currency, amount, and created date ranges.
Example:{"status":"active","currency":"thb"}
Additional - 3 fieldsAdditional Parameters

Responsesโ€‹

200

Successful search

Search completed successfully. Returns a search result object with matching charge schedules in the data array.

Response includes:
  • data - Array of charge schedule objects matching the search criteria
  • total - Total number of results matching the search
  • total_pages - Number of pages available
  • page - Current page number
  • per_page - Number of results per page
  • order - Sort order applied (chronological or reverse_chronological)

400

Bad request

Request validation failed. Check the error message for details.

Common causes:
  • Invalid page number (below 1)
  • Invalid per_page value (above 100 or below 1)
  • Malformed filters object

401

Unauthorized

Authentication failed. Invalid or missing API key.

Common causes:
  • Missing Authorization header
  • Invalid secret key
  • Using public key instead of secret key
  • Incorrect HTTP Basic Auth format

404

Not found

Resource not found.

Common causes:
  • Invalid endpoint path
  • Feature not enabled for the account

5xx

Server error

Server-side error occurred. These are rare but should be handled gracefully.

How to handle:

Code samplesโ€‹

curl "https://api.omise.co/charges/schedules/search" \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-d "query=monthly subscription" \
-d "filters[status]=active" \
-d "filters[currency]=thb"

Error and result codesโ€‹

Common Error Codesโ€‹

CodeDescriptionResolution
bad_requestMissing or invalid parametersCheck that parameters are valid
authentication_failureInvalid API keyVerify your secret key is correct

Search Filter Optionsโ€‹

FilterTypeDescription
statusstringSchedule status (active, paused, deleted, expiring)
currencystringCurrency code (thb, jpy, sgd, myr, usd, etc.)
amountintegerExact amount in smallest currency unit
customerstringCustomer ID associated with the schedule
createdobjectDate range filter (e.g., {gte: '2025-01-01', lte: '2025-01-31'})

๐Ÿ”‘API Credentials

Try it outโ€‹

Recommended - 2 fields
Additional - 3 fields
Your IP: ...Loading...