Get OpenAPI spec
curl --request GET \
--url https://api.simplepay.mx/openapi.json \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.simplepay.mx/openapi.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/openapi.json"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Get OpenAPI spec
Referencia detallada para GET /openapi.json.
GET
https://api.simplepay.mx
/
openapi.json
Get OpenAPI spec
curl --request GET \
--url https://api.simplepay.mx/openapi.json \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.simplepay.mx/openapi.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/openapi.json"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Uso
Descarga el contrato OpenAPI publico para generar clientes, validar tipos y darle contexto exacto a herramientas internas o agentes.Antes de llamar
| Tema | Detalle |
|---|---|
| Metodo | GET |
| Ruta | /openapi.json |
| Auth | Bearer API key del ambiente correcto. |
| Scope | No hay scope explicito en la spec publica; aplica el acceso del tenant y ambiente. |
| Idempotencia | No aplica para lecturas. |
| Guia relacionada | API Reference overview |
Patron recomendado
- Descarga la spec desde tu CI o tooling local.
- Genera tipos o clientes con tu herramienta OpenAPI preferida.
- Vuelve a generar clientes cuando cambie la version del contrato.
Ejemplo minimo
terminal
curl -sS "https://api.simplepay.mx/openapi.json" \
-H "Authorization: Bearer $SIMPLEPAY_API_KEY"
Errores a manejar
400indica payload, parametros o estado invalido.401o403indican API key, ambiente o scopes incorrectos.429y5xxse pueden reintentar con backoff; en writes conserva la misma idempotency key.
Contrato OpenAPI
El playground, parametros, body y respuestas de abajo salen de/openapi.json. Si el contrato cambia, actualiza la spec y regenera esta pagina.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Last modified on June 21, 2026
⌘I