Version: 2026-10-20
CoDi API
The public API for pey. This API is used to create payment links, generate CoDi QR codes and push notifications, and retrieve the details of payment links and transactions.
Base URL
| Environment | URL |
|---|---|
| Production | https://api.pey.mx |
Tip: We recommend testing your integration directly in production with small amounts such as $0.01 MXN, so you test with real banks and see the actual payment flow. A dedicated test environment is coming soon. See Test in production.
Authentication
- HTTP: Bearer Auth
API Key passed as a Bearer token in the Authorization header
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | bearer |
Contact
Ramón Orraca: ramon@pey.mx