List charge schedules
List all charge schedules for the account. Returns charge schedules sorted by creation date with filtering and pagination capabilities.
Request Parametersโ
Recommended - 3 fieldsRecommended Parameters
`limit`INTEGER(optional)
Number of charge schedules to return per page.
`offset`INTEGER(optional)
Number of charge schedules to skip for pagination. Use with limit to navigate through pages.
`order`STRING(optional)
Sort order by creation date.
Additional - 2 fieldsAdditional Parameters
Responsesโ
200
Successful list retrievalReturns a list object containing charge schedule data array and pagination metadata.
Response includes:
data- Array of charge schedule objectstotal- Total number of charge schedules matching filterslimit- Number of items per pageoffset- Current pagination offsetorder- Sort order appliedfrom/to- Date range applied
400
Bad requestInvalid parameters provided.
Common causes:
- Invalid date format (must be ISO 8601)
- Limit out of range (must be 1-100)
- Invalid offset value
401
UnauthorizedAuthentication failed. Invalid or missing API key.
Common causes:
- Missing Authorization header
- Invalid secret key
- Using public key instead of secret key
404
Not foundResource not found.
Common causes:
- Invalid endpoint path
- Feature not enabled for the account
5xx
Server errorServer-side error occurred. These are rare but should be handled gracefully.
How to handle:
- Retry the request with exponential backoff
- Check status.omise.co for service incidents
- See Error Handling for detailed guidance
Code samplesโ
- cURL
- Ruby
- Python
- Node.js
- PHP
- Java
- C#
- Go
curl "https://api.omise.co/charges/schedules?limit=20&offset=0" \
-u skey_test_5xuy4w91xqz7d1w9u0t:
require 'omise'
Omise.api_key = 'skey_test_5xuy4w91xqz7d1w9u0t'
schedules = Omise::Charge.schedules(limit: 20, offset: 0)
import omise
omise.api_secret = 'skey_test_5xuy4w91xqz7d1w9u0t'
schedules = omise.Charge.schedules(limit=20, offset=0)
const omise = require('omise')({
secretKey: 'skey_test_5xuy4w91xqz7d1w9u0t'
});
const schedules = await omise.charges.listSchedules({
limit: 20,
offset: 0
});
<?php
define('OMISE_SECRET_KEY', 'skey_test_5xuy4w91xqz7d1w9u0t');
$schedules = OmiseCharge::schedules(array(
'limit' => 20,
'offset' => 0
));
Client client = new Client.Builder()
.secretKey("skey_test_5xuy4w91xqz7d1w9u0t")
.build();
ScopedList<Schedule> schedules = client.charges().listSchedules()
.limit(20)
.offset(0)
.send();
var client = new Client("skey_test_5xuy4w91xqz7d1w9u0t");
var schedules = await client.Charges.ListSchedules(new ListOptions {
Limit = 20,
Offset = 0
});
client, _ := omise.NewClient(
"pkey_test_5xuy4w91xqz7d1w9u0t",
"skey_test_5xuy4w91xqz7d1w9u0t",
)
schedules, _ := client.ListChargeSchedules(&operations.ListChargeSchedules{
List: operations.List{
Limit: 20,
Offset: 0,
},
})
Error and result codesโ
Common Usage Patternsโ
| Pattern | Description | Example |
|---|---|---|
| Basic pagination | Fetch pages sequentially | limit=20&offset=0, then offset=20, etc. |
| Date range filter | Filter by creation date | from=2025-01-01T00:00:00Z&to=2025-01-31T23:59:59Z |
| Recent first | Newest schedules first | order=reverse_chronological |
Pagination Calculationโ
| Field | Calculation | Use |
|---|---|---|
| Next page | offset + limit | Get next set of results |
| Previous page | offset - limit (min 0) | Go back to previous page |
| Has more | offset + limit < total | Check if more pages exist |
| Page number | (offset / limit) + 1 | Current page number |
API Credentials
Try it outโ
Recommended - 3 fields
Additional - 2 fields
Your IP:
...Loading...