> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simplepay.mx/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve an availability schedule

> Referencia detallada para GET /v1/bookable-payments/availability_schedules/{id}.

## Uso

Usalo dentro de Bookable Payments para modelar inventario reservado, calcular disponibilidad, crear holds, convertirlos en checkout y confirmar bookings.

## Antes de llamar

| Tema             | Detalle                                             |
| ---------------- | --------------------------------------------------- |
| Metodo           | `GET`                                               |
| Ruta             | `/v1/bookable-payments/availability_schedules/{id}` |
| Auth             | Bearer API key del ambiente correcto.               |
| Scope            | `availability:read`                                 |
| Idempotencia     | No aplica para lecturas.                            |
| Guia relacionada | [Bookable Payments](/bookable-payments/overview)    |

## Patron recomendado

* Ejecuta esta lectura desde backend cuando incluya datos privados del tenant.
* Confirma inventario final con `booking.confirmed` o una lectura de booking, no solo con una URL de retorno.
* Consulta el bloque OpenAPI de esta pagina para el shape exacto de parametros, body y respuestas.

## Ejemplo minimo

```bash terminal theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -sS "https://api.simplepay.mx/v1/bookable-payments/availability_schedules/id_123" \
  -H "Authorization: Bearer $SIMPLEPAY_API_KEY"
```

## Errores a manejar

* `400` indica payload, parametros o estado invalido.
* `401` o `403` indican API key, ambiente o scopes incorrectos.
* `404` significa que el recurso no existe para ese tenant o ambiente.
* `429` y `5xx` se 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.


## OpenAPI

````yaml openapi.json GET /v1/bookable-payments/availability_schedules/{id}
openapi: 3.1.0
info:
  title: SimplePay API
  version: '2026-06-13'
servers:
  - url: https://api.simplepay.mx
security:
  - SimplePayApiKey: []
paths:
  /v1/bookable-payments/availability_schedules/{id}:
    get:
      summary: Retrieve an availability schedule
      operationId: getAvailabilitySchedule
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Availability schedule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AvailabilitySchedule'
components:
  schemas:
    AvailabilitySchedule:
      type: object
      properties:
        active:
          type: boolean
        id:
          type: string
          format: uuid
        metadata:
          type: object
          additionalProperties: true
        name:
          type: string
        object:
          const: availability_schedule
        overrides:
          type: array
          items:
            $ref: '#/components/schemas/AvailabilityOverride'
        rules:
          type: array
          items:
            $ref: '#/components/schemas/AvailabilityRule'
        timeZone:
          type: string
        updatedAt:
          type: string
          format: date-time
    AvailabilityOverride:
      type: object
      properties:
        active:
          type: boolean
        capacity:
          type: integer
          minimum: 0
        endsAt:
          type: string
          format: date-time
        id:
          type: string
          format: uuid
        metadata:
          type: object
          additionalProperties: true
        object:
          const: availability_override
        reason:
          type: string
        scheduleId:
          type: string
          format: uuid
        startsAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    AvailabilityRule:
      type: object
      properties:
        active:
          type: boolean
        capacity:
          type: integer
          minimum: 1
        endTime:
          type: string
        id:
          type: string
          format: uuid
        metadata:
          type: object
          additionalProperties: true
        object:
          const: availability_rule
        scheduleId:
          type: string
          format: uuid
        startTime:
          type: string
        updatedAt:
          type: string
          format: date-time
        weekday:
          type: integer
          minimum: 0
          maximum: 6
  securitySchemes:
    SimplePayApiKey:
      type: http
      scheme: bearer

````