> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simplepay.mx/llms.txt
> Use this file to discover all available pages before exploring further.

# Copy agent context

> Base prompt for implementing a backend integration with the SimplePay public API.

Copy this block and add your application's goal. The agent must read OpenAPI for every exact shape.

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
Integrate the SimplePay public API from the backend.

Contract: https://docs.simplepay.mx/en/openapi.json
Sandbox: https://api.test.simplepay.mx
Live: https://api.simplepay.mx

Rules:
1. Do not invent routes, fields, IDs, or key prefixes.
2. Keep the key out of browsers and mobile apps.
3. Use Idempotency-Key where the contract declares it.
4. Treat redirects as UX, not financial confirmation.
5. Verify webhooks against the original body.
6. Deduplicate events and business effects.
7. Keep merchant, environment, host, and key aligned.
8. Do not send processor parameters or IDs.
9. Retry only idempotent requests.
10. Test against sandbox before live.
```

Verify every method and route against OpenAPI. Check scopes, errors, pagination, and related events.
