# Get all payments from payment service

#### Returns

***

A dictionary with a `data` property that contains an array of up to 20 payments. Each entry in the array is a separate `payment` object. If no other `payments` are available, the resulting array is empty.

#### GET /v1/payment-services/:payment\_service\_id?limit=20

***

**Payment Filtering**

Agencies can specify a string that they want to filter the payments to have **(only by Ref Id, Name, Email).** For example, specifying `search=abc@gmail.com` will filter payments with email `abc@gmail.com`.

**Pagination**

Additionally, the end point uses [cursor pagination](https://jsonapi.org/profiles/ethanresnick/cursor-pagination/) for retrieval of data. Results are sorted in ascending order of transaction creation date.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.pay.gov.sg/api-resources/payments/get-all-payments-from-payment-service.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
