Skip to content

Using stripe.Client, List methods no longer expose pagination related properties #2168

@chanioxaris

Description

@chanioxaris

Describe the bug

For the List methods, when using the new stripe.Client instead of the now-deprecated resource-specific clients (e.g., customer.Client{}), the SDK no longer appears to expose certain pagination related properties, such as has_more

To Reproduce

Now, doesn't seem to be a way to access the pagination related properties but only iterate over the results

params := &stripe.CustomerListParams{
	ListParams: stripe.ListParams{
		Limit:  stripe.Int64(20),
		Single: true, // fetch single page and not iterate
	},
}
for customer, err := range sc.V1Customers.List(context.TODO(), params) {
	// handle err
	// handle customer
}

// there is currently no way to access the 'has_more' property

Expected behavior

I would expect a way to have access to the pagination related properties, such as has_more

Code snippets

Previously, it was possible to access the pagination related properties via the Meta() method

params := &stripe.CustomerListParams{
	ListParams: stripe.ListParams{
		Limit: stripe.Int64(20),
	},
}
i := sc.Customers.List(params)
for _, customer := range i.CustomerList().Data {
	// handle customer
}
if err := i.Err(); err != nil {
	// handle err
}

// there used to be a way to access the 'has_more' property
print(i.Meta().HasMore)

OS

macOS

Go version

Go 1.25.0

stripe-go version

v82.4.0

API version

2025-07-30.basil

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions