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

# List what a shift sells

> The payment conditions of a table shift (deposit, prepayment) and the formulas (`PREPAYMENT`) and add-ons (`EXTRA`) a reservation may buy in `products` on `POST /reservations`: the ones sold to `prescriber_id` (else to the public; internal products are never listed), with their active variants, prices in the smallest currency unit. With `date`, the shift must serve that day and `stock` gives what is left; it is indicative, checked again at creation. `minimum_delay_hours` is given, not applied: the create applies it to the booking's start. An unknown `prescriber_id` returns 422. Requires `CATALOG_READ`.



## OpenAPI

````yaml https://app.eat-now.io/api/partner/v1/openapi.json get /api/partner/v1/shifts/{id}/products
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/shifts/{id}/products:
    get:
      tags:
        - Catalog
      summary: List what a shift sells
      description: >-
        The payment conditions of a table shift (deposit, prepayment) and the
        formulas (`PREPAYMENT`) and add-ons (`EXTRA`) a reservation may buy in
        `products` on `POST /reservations`: the ones sold to `prescriber_id`
        (else to the public; internal products are never listed), with their
        active variants, prices in the smallest currency unit. With `date`, the
        shift must serve that day and `stock` gives what is left; it is
        indicative, checked again at creation. `minimum_delay_hours` is given,
        not applied: the create applies it to the booking's start. An unknown
        `prescriber_id` returns 422. Requires `CATALOG_READ`.
      operationId: listPartnerShiftProducts
      parameters:
        - schema:
            type: string
            description: The shift id.
          required: true
          description: The shift id.
          name: id
          in: path
        - schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
            description: >-
              Service day, `YYYY-MM-DD` in the restaurant timezone. With it, the
              shift must serve that day and `stock` gives what is left of it.
          required: false
          description: >-
            Service day, `YYYY-MM-DD` in the restaurant timezone. With it, the
            shift must serve that day and `stock` gives what is left of it.
          name: date
          in: query
        - schema:
            type: integer
            minimum: 1
            description: Keeps only the variants open to this many guests.
          required: false
          description: Keeps only the variants open to this many guests.
          name: party_size
          in: query
        - schema:
            type: string
            minLength: 1
            description: >-
              The prescriber the booking will carry: its exclusive offers are
              listed, and the public ones only if it sees them.
          required: false
          description: >-
            The prescriber the booking will carry: its exclusive offers are
            listed, and the public ones only if it sees them.
          name: prescriber_id
          in: query
      responses:
        '200':
          description: What the shift sells
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiShiftProductsResponse'
        '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: `CATALOG_READ`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
        '404':
          description: No such active shift in the authenticated restaurant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
        '422':
          description: >-
            The shift does not serve `date`, or `prescriber_id` is unknown or
            archived.
          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:
    PartnerApiShiftProductsResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            shift_id:
              type: string
            date:
              type: string
              nullable: true
            deposit:
              type: object
              nullable: true
              properties:
                amount_per_cover:
                  type: integer
                  description: In the smallest currency unit.
                currency:
                  type: string
                  enum:
                    - MAD
                    - EUR
                    - USD
                    - XOF
                mode:
                  type: string
                  enum:
                    - SOFT_PREAUTH
                    - PREAUTH
                    - POSTAUTH
                minimum_party_size:
                  type: integer
                delay_minutes:
                  type: integer
                  description: No deposit for a booking starting sooner than this.
                refundable:
                  type: boolean
              required:
                - amount_per_cover
                - currency
                - mode
                - minimum_party_size
                - delay_minutes
                - refundable
              description: >-
                The deposit the shift takes, collected online only when a
                payment provider is connected. Null: none.
            prepayment:
              type: object
              properties:
                offered:
                  type: boolean
                mandatory:
                  type: boolean
                  description: >-
                    A formula must be sent in `products`, unless
                    `bypass_payments` waives it.
                refundable:
                  type: boolean
              required:
                - offered
                - mandatory
                - refundable
            products:
              type: array
              items:
                $ref: '#/components/schemas/PartnerApiShiftProduct'
          required:
            - shift_id
            - date
            - deposit
            - prepayment
            - products
      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
    PartnerApiShiftProduct:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - PREPAYMENT
            - EXTRA
          description: >-
            `PREPAYMENT`: a formula (set menu), covering guests. `EXTRA`: an
            add-on.
        name:
          type: string
        description:
          type: string
          nullable: true
        currency:
          type: string
          enum:
            - MAD
            - EUR
            - USD
            - XOF
        per_cover:
          type: boolean
          description: >-
            Sold per guest (quantity up to the party size). Otherwise sold once
            for the whole booking: quantity 1.
        online_payment:
          type: boolean
          description: >-
            Collected online with the booking (a payment provider is connected
            and the product is set to be paid online); otherwise paid on site.
        deposit_percent:
          type: number
          minimum: 0
          maximum: 100
          description: Share of the price collected online, in percent.
        price_visible:
          type: boolean
          description: Whether the booking portal shows its price.
        minimum_delay_hours:
          type: integer
          nullable: true
          description: Hours of notice the product needs before the start of the booking.
        stock:
          type: object
          nullable: true
          properties:
            remaining:
              type: integer
              nullable: true
              description: 'Units left that day. Null: no limit at this level.'
          required:
            - remaining
          description: >-
            Null without `date`. Indicative: it is checked again when the
            reservation is created.
        variants:
          type: array
          items:
            $ref: '#/components/schemas/PartnerApiShiftProductVariant'
      required:
        - id
        - type
        - name
        - description
        - currency
        - per_cover
        - online_payment
        - deposit_percent
        - price_visible
        - minimum_delay_hours
        - stock
        - variants
    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
    PartnerApiShiftProductVariant:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        price:
          type: integer
          description: Unit price in the smallest currency unit, for example cents.
        covers_per_unit:
          type: integer
          minimum: 1
          description: Guests one unit covers (a formula for two is 2).
        min_covers:
          type: integer
          nullable: true
        max_covers:
          type: integer
          nullable: true
        stock:
          type: object
          nullable: true
          properties:
            remaining:
              type: integer
              nullable: true
              description: 'Units left that day. Null: no limit at this level.'
          required:
            - remaining
          description: >-
            Null without `date`. Indicative: it is checked again when the
            reservation is created.
      required:
        - id
        - name
        - price
        - covers_per_unit
        - min_covers
        - max_covers
        - stock
  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.