List available booking slots for a product
curl --request GET \
--url https://api.simplepay.mx/v1/products/{id}/slots \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.simplepay.mx/v1/products/{id}/slots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/v1/products/{id}/slots"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"available": 1,
"ends_at": "2023-11-07T05:31:56Z",
"resource_id": "<string>",
"starts_at": "2023-11-07T05:31:56Z"
}
],
"object": "<unknown>"
}List available booking slots for a product
Referencia detallada para GET /v1/products//slots.
GET
https://api.simplepay.mx
/
v1
/
products
/
{id}
/
slots
List available booking slots for a product
curl --request GET \
--url https://api.simplepay.mx/v1/products/{id}/slots \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.simplepay.mx/v1/products/{id}/slots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.simplepay.mx/v1/products/{id}/slots"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"available": 1,
"ends_at": "2023-11-07T05:31:56Z",
"resource_id": "<string>",
"starts_at": "2023-11-07T05:31:56Z"
}
],
"object": "<unknown>"
}Uso
Usalo para administrar productos del tenant, ofertas, disponibilidad o inventario empresarial asociado al catalogo SimplePay.Antes de llamar
| Tema | Detalle |
|---|---|
| Metodo | GET |
| Ruta | /v1/products/{id}/slots |
| Auth | Bearer API key del ambiente correcto. |
| Scope | availability:read |
| Idempotencia | No aplica para lecturas. |
| Guia relacionada | API Reference overview |
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/products/id_123/slots" \
-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.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Required range:
x >= 1Required range:
x >= 1Available options:
bookable Available options:
date Last modified on June 21, 2026
⌘I