Skip to main content
GET
Find payments

Headers

X-API-Version
enum<string>
default:2.0.0
required

Specifies the version of the API to use

Available options:
2.0.0

Query Parameters

query
string
required

The search query string. Uses PayNext's Search Query Language. Supports exact match (:), substring match (~), numeric comparisons (>, >=, <, <=), negation (-), logical operators (AND, OR), and nested field access (dot notation). Field names use dotted paths (for example payment_status, customer.email, payment_method.details.last4); short aliases are not accepted. See the endpoint description for the full list of searchable fields and their types. Maximum 10 clauses per query.

limit
integer
default:10

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.

Required range: 1 <= x <= 100
page
string

A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.

Response

A dictionary with a data property that contains an array of up to limit payments. If no payments match the query, the resulting array will be empty.

object
enum<string>

String representing the object's type. Value is always payments.

Available options:
payments
Example:

"payments"

total_count
integer

The accurate total number of records matching the query (not capped at 10,000). Returned alongside the cursor pagination fields.

Example:

142

url
string

The URL for accessing this list.

Example:

"/v1/payments"

data
object[]

An array of up to limit payments that match the query. Each entry in the array is a separate payment object. If no payments match the query, the resulting array will be empty.

has_more
boolean

Whether or not there are more elements available after this set. If false, this set comprises the end of the list.

Example:

false

next_page
string | null

A cursor for use in pagination. If has_more is true, you can pass the value of next_page to a subsequent call to fetch the next page of results.

Example:

null