# API Reference

- [Endpoints](https://docs.maibmerchants.md/request-to-pay/api-reference/endpoints.md)
- [Create a new payment request (RTP)](https://docs.maibmerchants.md/request-to-pay/api-reference/endpoints/create-a-new-payment-request-rtp.md): POST /v2/rtp
- [Retrieve the status of a payment request](https://docs.maibmerchants.md/request-to-pay/api-reference/endpoints/retrieve-the-status-of-a-payment-request.md): GET /v2/rtp/{id}
- [Cancel a pending payment request](https://docs.maibmerchants.md/request-to-pay/api-reference/endpoints/cancel-a-pending-payment-request.md): POST /v2/rtp/{id}/cancel
- [List all payment requests](https://docs.maibmerchants.md/request-to-pay/api-reference/endpoints/list-all-payment-requests.md): GET /v2/rtp
- [Initiate a refund for a completed payment](https://docs.maibmerchants.md/request-to-pay/api-reference/endpoints/initiate-a-refund-for-a-completed-payment.md): POST /v2/rtp/{payId}/refund
- [Sandbox (Simulation Environment)](https://docs.maibmerchants.md/request-to-pay/api-reference/sandbox-simulation-environment.md)
- [Simulate acceptance of a payment request](https://docs.maibmerchants.md/request-to-pay/api-reference/sandbox-simulation-environment/simulate-acceptance-of-a-payment-request.md): POST /v2/rtp/{id}/test-accept
- [Simulate rejection of a payment request](https://docs.maibmerchants.md/request-to-pay/api-reference/sandbox-simulation-environment/simulate-rejection-of-a-payment-request.md): POST /v2/rtp/{id}/test-reject
- [Callback Notifications](https://docs.maibmerchants.md/request-to-pay/api-reference/callback-notifications.md)
- [Examples](https://docs.maibmerchants.md/request-to-pay/api-reference/examples.md)
- [Signature Key Verification](https://docs.maibmerchants.md/request-to-pay/api-reference/examples/signature-key-verification.md)
- [API Requests in Postman](https://docs.maibmerchants.md/request-to-pay/api-reference/examples/api-requests-in-postman.md)
- [Errors](https://docs.maibmerchants.md/request-to-pay/api-reference/errors.md)
- [API Errors](https://docs.maibmerchants.md/request-to-pay/api-reference/errors/api-errors.md)
- [HTTP Status Codes](https://docs.maibmerchants.md/request-to-pay/api-reference/errors/http-status-codes.md)
- [Glossary](https://docs.maibmerchants.md/request-to-pay/api-reference/glossary.md): Key terms and notions used in the Request to Pay (RTP) API.


---

# 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://docs.maibmerchants.md/request-to-pay/api-reference.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.
