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

# Get the slots of an activity product

> Returns, for each day from `from` to `to` (31 days at most), why the day is closed or its slots: start time, whether a unit can still be booked, a block by the restaurant, the units left, per variant when the capacity is counted per variant. A slot that has begun is not listed; a booking follows the same rules. Units are resources (cabins, places), not guests. The audience is the booking portal's by default; `prescriber_id` reads it as that prescriber sees it, `audience=all` adds internal and exclusive offers. Read even when the booking portal is closed: to stop a partner, revoke its key. Requires `AVAILABILITY_READ`.



## OpenAPI

````yaml https://app.eat-now.io/api/partner/v1/openapi.json get /api/partner/v1/activity-availability
openapi: 3.0.3
info:
  title: EatNow Partner API
  version: v1
  description: >-
    Version 1 of the EatNow partner API.


    This API is designed for trusted partner integrations that need
    restaurant-scoped access to availability, reservation management, and
    operational reference data.


    Authentication

    - Use `Authorization: Bearer <token>` with a partner API token created from
    the EatNow dashboard.

    - Access is controlled by credential scopes and each request is resolved to
    a single restaurant.


    Base URL

    - The server URL in this document is the canonical base URL for the current
    environment.


    Errors

    - Endpoint errors use `error.code`, `error.message`, and `error.request_id`.
    Errors raised before the endpoint, including rate limiting, may use another
    format.

    - Validation, authentication, authorization, conflicts, and not-found cases
    all use the same top-level error shape.


    Rate limits

    - An API key may send 300 requests per minute: past that, `429 RATE_LIMITED`
    with `Retry-After`, in seconds. The partner route rule also allows 600
    requests per minute per client IP. Back off on 429. When present,
    x-ratelimit-reset is an epoch timestamp in milliseconds.


    Public endpoints

    - `GET /api/partner/v1` and `GET /api/partner/v1/openapi.json` are public.

    - All business endpoints require Bearer authentication.
servers:
  - url: https://app.eat-now.io
security: []
tags:
  - name: Meta
    description: Platform metadata and schema endpoints
  - name: Authentication
    description: Credential validation and auth context endpoints
  - name: Availability
    description: Bookable slot search and exact slot validation
  - name: Catalog
    description: Reference data for restaurant tables, rooms, prescribers, and discounts
  - name: Reservations
    description: Reservation lookup, search, update, and cancellation
  - name: Customers
    description: >-
      Customer (CRM) records, independent of reservations: list, sync, create,
      update
  - name: Activities
    description: 'Booked activities (spa, excursions…): read and incremental sync'
  - name: Activity catalog
    description: >-
      Activity products, their slots and staff: what a reseller reads before it
      books
  - name: Gift cards
    description: >-
      Import and manage your own gift cards, or check and redeem any code at a
      till
  - name: Webhooks
    description: >-
      Webhook endpoints a key subscribes to V1 events (reservations, customers,
      activities, gift cards)
  - name: Missed Calls
    description: Report missed calls and trigger WhatsApp follow-up templates
externalDocs:
  description: Integration guides, authentication, errors, and webhook reference
  url: https://docs.eat-now.io/api-reference/introduction
paths:
  /api/partner/v1/activity-availability:
    get:
      tags:
        - Activity catalog
      summary: Get the slots of an activity product
      description: >-
        Returns, for each day from `from` to `to` (31 days at most), why the day
        is closed or its slots: start time, whether a unit can still be booked,
        a block by the restaurant, the units left, per variant when the capacity
        is counted per variant. A slot that has begun is not listed; a booking
        follows the same rules. Units are resources (cabins, places), not
        guests. The audience is the booking portal's by default; `prescriber_id`
        reads it as that prescriber sees it, `audience=all` adds internal and
        exclusive offers. Read even when the booking portal is closed: to stop a
        partner, revoke its key. Requires `AVAILABILITY_READ`.
      operationId: getPartnerActivityAvailability
      parameters:
        - schema:
            type: string
            minLength: 1
            description: >-
              Read the catalog as this prescriber sees it: its exclusive offers
              included, the public ones hidden if its deal replaces them. An
              unknown or archived prescriber is refused (`422`).
          required: false
          description: >-
            Read the catalog as this prescriber sees it: its exclusive offers
            included, the public ones hidden if its deal replaces them. An
            unknown or archived prescriber is refused (`422`).
          name: prescriber_id
          in: query
        - schema:
            type: string
            enum:
              - public
              - all
            default: public
            description: >-
              `public` (default): what the booking portal offers. `all`: every
              product and add-on, internal and exclusive ones included —
              requires `ACTIVITIES_FORCE_INSERT`. Not combined with
              `prescriber_id`.
          required: false
          description: >-
            `public` (default): what the booking portal offers. `all`: every
            product and add-on, internal and exclusive ones included — requires
            `ACTIVITIES_FORCE_INSERT`. Not combined with `prescriber_id`.
          name: audience
          in: query
        - schema:
            type: string
            minLength: 1
          required: true
          name: product_id
          in: query
        - schema:
            type: string
            description: Day in the restaurant timezone, `YYYY-MM-DD`.
          required: true
          description: Day in the restaurant timezone, `YYYY-MM-DD`.
          name: from
          in: query
        - schema:
            type: string
            description: Last day, included. At most 31 days from `from`.
          required: true
          description: Last day, included. At most 31 days from `from`.
          name: to
          in: query
      responses:
        '200':
          description: The days of the range, in order
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiActivityAvailabilityResponse'
              examples:
                default:
                  value:
                    data:
                      product_id: prod_hammam
                      days:
                        - date: '2026-11-14'
                          closed_reason: null
                          slots:
                            - time: '10:00'
                              start_at: '2026-11-14T10:00:00+01:00'
                              bookable: true
                              blocked: false
                              block_message: null
                              remaining: 4
                              variants: null
                        - date: '2026-11-15'
                          closed_reason: WEEKDAY
                          slots: []
        '400':
          description: Request validation failed (see `error.details.issues`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
        '403':
          description: >-
            Scope is insufficient (required: `AVAILABILITY_READ`; `audience=all`
            also requires `ACTIVITIES_FORCE_INSERT`), or the restaurant does not
            have the activities module (`FEATURE_NOT_ENABLED`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
        '404':
          description: >-
            No live activity product with this id, or one the audience cannot
            see (internal, or exclusive to other prescribers).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
        '422':
          description: >-
            `to` before `from` or more than 31 days in all (`details.reason =
            invalid_range`), unknown or archived `prescriber_id`, or
            `prescriber_id` with `audience=all`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
        '429':
          description: >-
            Rate limit exceeded: at most 300 requests per minute per API key
            (`RATE_LIMITED`, with a `Retry-After` header in seconds), and 600
            per minute per client IP for the partner route rule, whose
            middleware response may not use the PartnerApiError envelope or
            include request_id. Back off before retrying.
        '500':
          description: >-
            Unexpected server error. Preserve error.request_id for support.
            Before retrying a write, check whether it already succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
      security:
        - PartnerBearerToken: []
components:
  schemas:
    PartnerApiActivityAvailabilityResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            product_id:
              type: string
            days:
              type: array
              items:
                $ref: '#/components/schemas/PartnerApiActivityAvailabilityDay'
          required:
            - product_id
            - days
      required:
        - data
    PartnerApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              $ref: '#/components/schemas/PartnerApiErrorCode'
            message:
              type: string
            request_id:
              type: string
            details:
              type: object
              additionalProperties:
                nullable: true
          required:
            - code
            - message
            - request_id
      required:
        - error
    PartnerApiActivityAvailabilityDay:
      type: object
      properties:
        date:
          type: string
          description: Day in the restaurant timezone, `YYYY-MM-DD`.
        closed_reason:
          type: string
          nullable: true
          enum:
            - WEEKDAY
            - SEASON
            - TOO_SOON
            - TOO_FAR
            - null
          description: >-
            Why the whole day cannot be booked, or null. A closed day has no
            slot.
        slots:
          type: array
          items:
            $ref: '#/components/schemas/PartnerApiActivitySlot'
          description: Slots not begun yet, blocked and full ones included.
      required:
        - date
        - closed_reason
        - slots
    PartnerApiErrorCode:
      type: string
      enum:
        - AUTHENTICATION_REQUIRED
        - INVALID_AUTHENTICATION
        - INSUFFICIENT_SCOPE
        - FEATURE_NOT_ENABLED
        - RESTAURANT_SUSPENDED
        - VALIDATION_ERROR
        - RESOURCE_NOT_FOUND
        - RESOURCE_CONFLICT
        - PAYMENT_REQUIRED
        - RATE_LIMITED
        - INTERNAL_ERROR
    PartnerApiActivitySlot:
      type: object
      properties:
        time:
          type: string
          description: '`HH:mm`, in the restaurant timezone.'
        start_at:
          type: string
          format: date-time
        bookable:
          type: boolean
          description: Whether at least one unit can still be booked at this time.
        blocked:
          type: boolean
          description: Closed by the restaurant (a block on the planning).
        block_message:
          type: string
          nullable: true
        remaining:
          type: integer
          nullable: true
          description: >-
            Units left (resources, not guests). Null when the product has no
            capacity limit or counts it per variant (see `variants`).
        variants:
          type: array
          nullable: true
          items:
            type: object
            properties:
              variant_id:
                type: string
              remaining:
                type: integer
              bucket_id:
                type: integer
                description: >-
                  Variants sharing a `bucket_id` draw on one capacity: the
                  quantities booked across them add up.
            required:
              - variant_id
              - remaining
              - bucket_id
      required:
        - time
        - start_at
        - bookable
        - blocked
        - block_message
        - remaining
        - variants
  securitySchemes:
    PartnerBearerToken:
      type: http
      scheme: bearer
      bearerFormat: API Token
      description: >-
        Restaurant-scoped partner API token passed as `Authorization: Bearer
        <token>`.
      x-default: your_token_here

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.