List tenant bookings
curl --request GET \
--url https://api.simplepay.mx/v1/bookings \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.simplepay.mx/v1/bookings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/v1/bookings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"amountMinor": 1,
"currency": "<string>",
"endsAt": "2023-11-07T05:31:56Z",
"eventTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"holdId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"object": "<unknown>",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 2,
"refundedAmountMinor": 1,
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"simplepayCheckoutSessionId": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"tenantCustomerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"object": "<unknown>"
}List tenant bookings
Referencia detallada para GET /v1/bookings.
GET
https://api.simplepay.mx
/
v1
/
bookings
List tenant bookings
curl --request GET \
--url https://api.simplepay.mx/v1/bookings \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.simplepay.mx/v1/bookings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/v1/bookings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"amountMinor": 1,
"currency": "<string>",
"endsAt": "2023-11-07T05:31:56Z",
"eventTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"holdId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"object": "<unknown>",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 2,
"refundedAmountMinor": 1,
"resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"simplepayCheckoutSessionId": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"tenantCustomerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"object": "<unknown>"
}Uso
Usalo para listar bookings del tenant y reconciliar estados de reservas ya creadas.Antes de llamar
| Tema | Detalle |
|---|---|
| Metodo | GET |
| Ruta | /v1/bookings |
| Auth | Bearer API key del ambiente correcto. |
| Scope | bookings:read |
| Idempotencia | No aplica para lecturas. |
| Guia relacionada | Bookable Payments |
Patron recomendado
- Ejecuta esta lectura desde backend cuando incluya datos privados del tenant.
- 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/bookings" \
-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.
Query Parameters
Available options:
cancelled, confirmed, expired, no_show, pending, rescheduled Response
200 - application/json
Tenant bookings
Hide child attributes
Hide child attributes
Required range:
x >= 0Pattern:
^[a-z]{3}$Available options:
failed, paid, partially_refunded, refunded, unpaid Required range:
x >= 1Required range:
x >= 0Available options:
cancelled, confirmed, expired, no_show, pending, rescheduled Last modified on June 21, 2026
⌘I