> ## 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.

# Check a booking

> Runs every check of `POST /activity-carts` on the same body and books nothing: `ok`, or the refusal the booking would get. Nothing is held: a place free now can be taken before you book. Requires `AVAILABILITY_READ`, and the scopes of the options used.



## OpenAPI

````yaml https://app.eat-now.io/api/partner/v1/openapi.json post /api/partner/v1/activity-availability/check
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/check:
    post:
      tags:
        - Activity catalog
      summary: Check a booking
      description: >-
        Runs every check of `POST /activity-carts` on the same body and books
        nothing: `ok`, or the refusal the booking would get. Nothing is held: a
        place free now can be taken before you book. Requires
        `AVAILABILITY_READ`, and the scopes of the options used.
      operationId: checkPartnerActivityCart
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PartnerApiActivityCartCreateRequest'
            examples:
              default:
                value:
                  customer:
                    name: Nadia Benali
                    email: nadia@example.com
                    phone_number: '+212600000000'
                  external_id: GYG-48213
                  lines:
                    - product_id: prod_hammam
                      start_at: '2026-11-14T10:00:00+01:00'
                      party_size: 2
                      variants:
                        - variant_id: var_duo
                          quantity: 1
                      metadata:
                        field-0:
                          value: soft
                  prescriber_id: presc_gyg
                  payment: paid_elsewhere
                  external_payment_reference: GYG-PAY-48213
      responses:
        '200':
          description: The booking would be accepted now
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiActivityCheckResponse'
              examples:
                default:
                  value:
                    data:
                      ok: true
        '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'
        '409':
          description: >-
            `external_id` already used for another request
            (`details.existing_id`), or the customer was merged meanwhile.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
        '422':
          description: >-
            The booking is refused: `details.reason` says why (`product`,
            `variant`, `extra`, `fields`, `contact`, `staff`, `day`, `slot`,
            `capacity`, `party`, `approval`, `blacklisted`,
            `start_at_not_representable`, `unknown_field`, `unknown_prescriber`)
            and `details.line` which line, from 0.
          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:
    PartnerApiActivityCartCreateRequest:
      type: object
      properties:
        customer:
          anyOf:
            - $ref: '#/components/schemas/PartnerApiCustomerReference'
            - $ref: '#/components/schemas/PartnerApiCreateCustomer'
            - nullable: true
          default: null
          description: >-
            `{ id }` books for an existing customer; details find or create one
            (see `on_match`); `null` books without one.
        lines:
          type: array
          items:
            $ref: '#/components/schemas/PartnerApiActivityLine'
          minItems: 1
          maxItems: 20
        external_id:
          type: string
          minLength: 1
          maxLength: 200
          description: >-
            Your reference of the cart, unique per restaurant. Sending it again
            with the same body answers the cart booked (`200`), with another
            body `409`. Without it, a retry books again.
        source:
          type: string
          enum:
            - WALK_IN
            - WEBSITE
            - PHONE
            - EMAIL
            - RESERVE_WITH_GOOGLE
            - TRAVEL_AGENCIES
            - OTHER
            - INSTAGRAM
            - FACEBOOK
            - TIKTOK
            - SNAPCHAT
            - WHATSAPP
            - TRIPADVISOR
            - PRIVATIZATION
            - MISSED_CALL
          default: OTHER
          description: The channel the booking came from.
        comment:
          type: string
          nullable: true
          maxLength: 2000
        tags:
          type: array
          items:
            type: string
            minLength: 1
          maxItems: 20
        hotel_guest:
          type: object
          nullable: true
          properties:
            room_number:
              type: string
              nullable: true
            pms_reference:
              $ref: '#/components/schemas/PartnerApiPmsReference'
          required:
            - room_number
          additionalProperties: false
          description: Set when the guest stays at the hotel.
        prescriber_id:
          type: string
          minLength: 1
          description: >-
            The prescriber the booking is credited to; its exclusive offers can
            be booked.
        audience:
          type: string
          enum:
            - public
            - all
          default: public
          description: >-
            `all`: internal and exclusive offers can be booked. Requires
            `ACTIVITIES_FORCE_INSERT`.
        payment:
          type: string
          enum:
            - none
            - payment_link
            - paid_elsewhere
          default: none
          description: >-
            `none`: everything is paid on site. `payment_link`: the lines owed
            online are left for the guest to pay; the activity awaits its
            payment, and the cart gives `payment_url`. `paid_elsewhere`: you
            took the money; each line is recorded paid at the catalog price
            (provider `PARTNER`), requires `PAYMENTS_WRITE` and
            `external_payment_reference`. Refused on a product to approve
            without `bypass_approval`.
        external_payment_reference:
          type: string
          minLength: 1
          maxLength: 200
          description: Your payment or order id, kept on each paid line.
        send_payment_link:
          type: boolean
          default: true
          description: >-
            With `payment_link`: emails or messages the link to the guest now.
            `false` when you pass on `payment_url` yourself. Needs
            `send_client_notifications`.
        bypass_availability:
          type: boolean
          default: false
          description: >-
            Takes a full slot, a time off the grid or a closed day — never one
            gone by. Requires `ACTIVITIES_FORCE_INSERT`.
        bypass_approval:
          type: boolean
          default: false
          description: >-
            Confirms a product the restaurant approves otherwise. Requires
            `ACTIVITIES_FORCE_CONFIRM`.
        send_client_notifications:
          type: boolean
          default: true
          description: >-
            Messages the guest now (confirmation or request) and later (reminder
            the day before). `false` when you tell the guest yourself.
        send_staff_notifications:
          type: boolean
          default: true
          description: >-
            Tells the restaurant's team, as an online booking does. `false`
            requires `ACTIVITIES_FORCE_INSERT`.
      required:
        - lines
      additionalProperties: false
    PartnerApiActivityCheckResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            ok:
              type: boolean
              enum:
                - true
              description: The booking would be accepted now. Nothing is held.
          required:
            - ok
      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
    PartnerApiCustomerReference:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          description: >-
            Identifier of an existing customer of the restaurant, as returned by
            the customers endpoints.
      required:
        - id
      additionalProperties: false
    PartnerApiCreateCustomer:
      type: object
      properties:
        name:
          type: string
          minLength: 1
        email:
          type: string
          nullable: true
          format: email
          default: null
        phone_number:
          type: string
          nullable: true
          default: null
        lang:
          type: string
          enum:
            - FR
            - EN
            - IT
            - ES
            - DE
            - PT
        newsletter_consent:
          type: boolean
        on_match:
          type: string
          enum:
            - return_existing
            - update
            - create_new
          description: >-
            Matching behaviour for this reservation's customer (matched on
            phone, then email). When omitted, the restaurant's own setting
            applies: match an existing customer (`return_existing`) unless the
            restaurant turned automatic matching off (`create_new`). A
            blacklisted match rejects the reservation whatever the value.
            Ignored when `prescriber_id` is set: a prescribed booking always
            gets its own customer.
      required:
        - name
      additionalProperties: false
    PartnerApiActivityLine:
      type: object
      properties:
        product_id:
          type: string
          minLength: 1
        start_at:
          type: string
          format: date-time
          description: >-
            Start of the activity, with its offset: one of the `start_at` of
            `/activity-availability`. An instant the restaurant's clock does not
            show (seconds, a time skipped or repeated when the clock changes) is
            refused.
        party_size:
          type: integer
          minimum: 1
          description: >-
            People taking part: the units booked times their `covers_per_unit` —
            or, for a formula (`per_cover: false`), within its covers.
        variants:
          type: array
          items:
            type: object
            properties:
              variant_id:
                type: string
                minLength: 1
              quantity:
                type: integer
                minimum: 1
                maximum: 100
            required:
              - variant_id
              - quantity
            additionalProperties: false
          minItems: 1
          maxItems: 20
          description: 'What is booked: each variant of the product and its quantity.'
        extras:
          type: array
          items:
            type: object
            properties:
              product_id:
                type: string
                minLength: 1
              variant_id:
                type: string
                minLength: 1
              quantity:
                type: integer
                minimum: 1
                maximum: 100
            required:
              - product_id
              - variant_id
              - quantity
            additionalProperties: false
          maxItems: 20
          default: []
          description: Add-ons of the product (`extras` in `/activity-products`).
        metadata:
          type: object
          additionalProperties:
            type: object
            properties:
              name:
                type: string
                description: 'Ignored: the question''s own.'
              value:
                anyOf:
                  - type: string
                  - type: number
                  - type: boolean
                  - nullable: true
                  - type: array
                    items:
                      type: string
            required:
              - value
            additionalProperties: false
          description: >-
            Answers to the product's questions, under their `key` (`field-0`,
            `field-1`…). A required question left out is refused.
        assigned_staff_id:
          type: string
          minLength: 1
          description: Who runs it (`/activity-staff`).
        external_id:
          type: string
          minLength: 1
          maxLength: 200
          description: Your reference of this activity, unique per restaurant.
      required:
        - product_id
        - start_at
        - party_size
        - variants
      additionalProperties: false
    PartnerApiPmsReference:
      type: object
      nullable: true
      properties:
        stay_id:
          type: string
          minLength: 1
          maxLength: 128
      required:
        - stay_id
      description: >-
        The stay in the hotel's property management system (PMS), when the visit
        is linked to one. Read: null without the sensitive view. Write: links
        the visit to a PMS stay; null unlinks it.
    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
  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.