List recipient schedules
List all schedules associated with a specific recipient. Use this endpoint to view recurring transfers and automated payment schedules configured for a recipient.
Request Parametersโ
Required - 1 fieldRequired Parameters
`id`STRING(required)
Recipient ID (e.g., recp_test_...). Provided in the URL path.
Optional - 5 fieldsPagination Parameters
`limit`INTEGER(optional)
Number of schedules to return per page.
`offset`INTEGER(optional)
Number of schedules to skip for pagination.
`order`STRING(optional)
Sort order of results.
`from`STRING(optional)
Earliest UTC datetime in ISO 8601 format. Returns schedules created on or after this date.
`to`STRING(optional)
Latest UTC datetime in ISO 8601 format. Returns schedules created before this date.
Responsesโ
200
Successful retrievalReturns a paginated list of schedule objects associated with the recipient. Each schedule contains frequency, status, and transfer details.
Response includes:
object- Always "list"data- Array of schedule objectslimit- Number of results per pageoffset- Number of skipped resultstotal- Total number of schedules for this recipientorder- Sort order applied
id- Schedule identifierstatus- active, expired, suspended, deleted, pausedperiod- day, week, or monthevery- Frequency multiplier for the periodnext_occurrences_on- Array of upcoming occurrence datestransfer- Transfer parameters for this schedule
400
Bad requestRequest validation failed. Check the error message for details.
Common causes:
- Invalid date format for
fromorto - Invalid
ordervalue - Negative
offsetorlimit limitexceeds maximum (100)
401
UnauthorizedAuthentication 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 foundRecipient not found.
Common causes:
- Invalid recipient ID
- Recipient does not belong to your account
- Recipient has been deleted
- Mixing test and live mode IDs
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/recipients/recp_test_5xuy4w91xqz7d1w9u0t/schedules \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-G \
-d limit=20 \
-d offset=0
require 'omise'
Omise.api_key = 'skey_test_5xuy4w91xqz7d1w9u0t'
recipient = Omise::Recipient.retrieve('recp_test_5xuy4w91xqz7d1w9u0t')
schedules = recipient.schedules(limit: 20, offset: 0)
import omise
omise.api_secret = 'skey_test_5xuy4w91xqz7d1w9u0t'
recipient = omise.Recipient.retrieve('recp_test_5xuy4w91xqz7d1w9u0t')
schedules = recipient.schedules(limit=20, offset=0)
const omise = require('omise')({
secretKey: 'skey_test_5xuy4w91xqz7d1w9u0t'
});
const schedules = await omise.recipients.listSchedules(
'recp_test_5xuy4w91xqz7d1w9u0t',
{ limit: 20, offset: 0 }
);
<?php
define('OMISE_SECRET_KEY', 'skey_test_5xuy4w91xqz7d1w9u0t');
$recipient = OmiseRecipient::retrieve('recp_test_5xuy4w91xqz7d1w9u0t');
$schedules = $recipient->schedules([
'limit' => 20,
'offset' => 0
]);
Client client = new Client.Builder()
.secretKey("skey_test_5xuy4w91xqz7d1w9u0t")
.build();
ScopedList<Schedule> schedules = client.recipients()
.get("recp_test_5xuy4w91xqz7d1w9u0t")
.schedules()
.list(new ScopedList.Options()
.limit(20)
.offset(0));
var client = new Client("skey_test_5xuy4w91xqz7d1w9u0t");
var schedules = await client.Recipients.ListSchedules(
"recp_test_5xuy4w91xqz7d1w9u0t",
new ListOptions
{
Limit = 20,
Offset = 0
}
);
client, _ := omise.NewClient(
"pkey_test_5xuy4w91xqz7d1w9u0t",
"skey_test_5xuy4w91xqz7d1w9u0t",
)
schedules, _ := client.Recipients().ListSchedules(
"recp_test_5xuy4w91xqz7d1w9u0t",
&operations.ListSchedules{
List: operations.List{
Limit: 20,
Offset: 0,
},
},
)
Paginationโ
Use limit and offset parameters to paginate through results:
# First page (0-19)
curl https://api.omise.co/recipients/recp_test_5xuy4w91xqz7d1w9u0t/schedules?limit=20&offset=0 \
-u skey_test_5xuy4w91xqz7d1w9u0t:
# Second page (20-39)
curl https://api.omise.co/recipients/recp_test_5xuy4w91xqz7d1w9u0t/schedules?limit=20&offset=20 \
-u skey_test_5xuy4w91xqz7d1w9u0t:
Error and result codesโ
Common Error Codesโ
| Code | Description | Resolution |
|---|---|---|
authentication_failure | Invalid API key | Verify your secret key is correct |
not_found | Recipient not found | Check the recipient ID is correct |
bad_request | Invalid parameters | Check date format and parameter values |
invalid_date_format | Date not in ISO 8601 | Use format: YYYY-MM-DDTHH:MM:SSZ |
Schedule Status Valuesโ
| Status | Description |
|---|---|
active | Schedule is running normally |
expired | Schedule has passed end date |
suspended | Schedule is paused (failures, verification issues) |
deleted | Schedule has been cancelled |
paused | Schedule manually paused |
API Credentials
Try it outโ
Required - 1 fields
Your IP:
...Loading...