Retrieve a refund
curl --request GET \
--url https://api.simplepay.mx/v1/refunds/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.simplepay.mx/v1/refunds/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/v1/refunds/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Retrieve a refund
Referencia detallada para GET /v1/refunds/.
GET
https://api.simplepay.mx
/
v1
/
refunds
/
{id}
Retrieve a refund
curl --request GET \
--url https://api.simplepay.mx/v1/refunds/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.simplepay.mx/v1/refunds/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/v1/refunds/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Uso
Usalo para consultar o crear reembolsos asociados a referencias SimplePay, manteniendo idempotencia en cualquier write.Antes de llamar
| Tema | Detalle |
|---|---|
| Metodo | GET |
| Ruta | /v1/refunds/{id} |
| 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 | Refunds |
Patron recomendado
- Ejecuta esta lectura desde backend cuando incluya datos privados del tenant.
- Persiste IDs SimplePay (
spcs_...,sppi_...,splink_..., refund IDs o booking IDs) para reconciliacion. - Consulta el bloque OpenAPI de esta pagina para el shape exacto de parametros, body y respuestas.
Ejemplo minimo
terminal
curl -sS "https://api.simplepay.mx/v1/refunds/id_123" \
-H "Authorization: Bearer $SIMPLEPAY_API_KEY"
Errores a manejar
400indica payload, parametros o estado invalido.401o403indican API key, ambiente o scopes incorrectos.404significa que el recurso no existe para ese tenant o ambiente.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.Last modified on June 21, 2026
⌘I