# API RESOURCES

- [Events](https://guide.pay.gov.sg/api-resources/events.md)
- [The event object](https://guide.pay.gov.sg/api-resources/events/the-event-object.md)
- [Types of events](https://guide.pay.gov.sg/api-resources/events/types-of-events.md)
- [Payments](https://guide.pay.gov.sg/api-resources/payments.md)
- [Create a payment](https://guide.pay.gov.sg/api-resources/payments/create-a-payment.md): Creates a payment object.
- [Retrieve payments](https://guide.pay.gov.sg/api-resources/payments/retrieve-payments.md): Retrieves the details of a payment that has previously been created.
- [Send email for payment](https://guide.pay.gov.sg/api-resources/payments/send-email-for-payment.md): Sends an email notification to intended payer with the details of a payment that has previously been created.
- [Cancel a payment](https://guide.pay.gov.sg/api-resources/payments/cancel-a-payment.md): Cancels a payment with an 'unpaid' status.
- [Refund a payment](https://guide.pay.gov.sg/api-resources/payments/refund-a-payment.md): Refunds a payment with a 'paid' status.
- [Get all payments from payment service](https://guide.pay.gov.sg/api-resources/payments/get-all-payments-from-payment-service.md): Returns a list of payments created within a payment service.


---

# 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.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.
