payments:read or payables:read
Returns every payment the business sent: held, returned, refunded and cancelled ones included, and each split and retry as its own payment.
Query parameters
integer
default:"1"
Page number.
integer
default:"25"
1 to 100.
string
Only payments for this bill, every split and retry included.
string
Only payments to this contact.
string
pending, scheduled, processing, held, completed, failed, returned, cancelled, refund_pending or refunded.string
ISO 8601 time. Created at or after it.
string
ISO 8601 time. Created before it.
string
ISO 8601 time. Only payments whose
updatedAt is at or after it. Results then come oldest change first: by updatedAt, then by id. See Read only what changed.Response
200 with { items, totalCount }. Each item is a payment. Items are newest first, with ties in a fixed order, so walking the pages neither repeats nor skips a payment that did not change. With updatedSince, items are oldest change first instead.
A payment the business recorded outside Cleo (check, wire, cash) has paymentRail: null.
Read only what changed
SendupdatedSince to get only the payments that changed since a time, for example a status change.
- The bound is inclusive. A payment whose
updatedAtequalsupdatedSinceis returned. - Results are ordered by
updatedAt, thenid, oldest first. The newest-first order does not apply. - It combines with the other filters.
- Start each poll a fixed safety window, such as 5 minutes, before your saved cursor. A change can commit shortly after its
updatedAt, and the overlap catches it. - A payment can appear on two polls, so upsert by
id. - Move the cursor to the largest
updatedAtyou have seen. Never set it to the current time.