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

# Charge a payment line to the hotel room

> Adds a line of the reservation still owed to the guest's folio in the hotel PMS. The reservation must be linked to a stay (`pms_reference`) with its room number: EatNow reads the stay again from the PMS and charges only that very stay, open to charges. Send an `Idempotency-Key` header: a replay of the key answers the charge's current state, never a second charge. A refund reverses it on the folio. Requires `PAYMENTS_WRITE`; the line in full also `RESERVATIONS_READ_SENSITIVE`. Publishes `reservation.updated` (again when an unknown outcome becomes known).



## OpenAPI

````yaml https://app.eat-now.io/api/partner/v1/openapi.json post /api/partner/v1/reservations/{id}/payments/{paymentId}/room-charge
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/reservations/{id}/payments/{paymentId}/room-charge:
    post:
      tags:
        - Reservations
      summary: Charge a payment line to the hotel room
      description: >-
        Adds a line of the reservation still owed to the guest's folio in the
        hotel PMS. The reservation must be linked to a stay (`pms_reference`)
        with its room number: EatNow reads the stay again from the PMS and
        charges only that very stay, open to charges. Send an `Idempotency-Key`
        header: a replay of the key answers the charge's current state, never a
        second charge. A refund reverses it on the folio. Requires
        `PAYMENTS_WRITE`; the line in full also `RESERVATIONS_READ_SENSITIVE`.
        Publishes `reservation.updated` (again when an unknown outcome becomes
        known).
      operationId: chargePartnerReservationPaymentToRoom
      parameters:
        - schema:
            type: string
            minLength: 1
            description: Reservation identifier.
          required: true
          description: Reservation identifier.
          name: id
          in: path
        - schema:
            type: string
            minLength: 1
            description: Payment line identifier.
          required: true
          description: Payment line identifier.
          name: paymentId
          in: path
        - schema:
            type: string
            minLength: 1
            maxLength: 255
            description: >-
              Your unique key for this write (1 to 255 visible ASCII
              characters).
          required: true
          description: Your unique key for this write (1 to 255 visible ASCII characters).
          name: Idempotency-Key
          in: header
      responses:
        '201':
          description: 'Posted: the reservation, its line paid by the room'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiReservationDetailResponse'
        '202':
          description: >-
            The PMS's answer is not known yet: the line stays pending and
            locked; EatNow asks again and the outcome follows by webhook (or a
            replay of the key)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiReservationDetailResponse'
        '400':
          description: >-
            `Idempotency-Key` missing or invalid (`details.reason:
            idempotency_key_required`).
          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: `PAYMENTS_WRITE`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
        '404':
          description: No such reservation, or no such line on it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
        '409':
          description: >-
            `details.reason`: `not_chargeable`, `not_accepted` (a request),
            `visit_closed` (cancelled, refused or over),
            `online_payment_in_progress` (the guest opened the payment page),
            `operation_in_progress` (a refund or capture is running),
            `not_linked`, `stay_not_verified`, `room_charge_not_allowed`,
            `no_connection`, `no_outlet`, `room_charge_refused` (with
            `refusal_code`, the PMS's reason), `request_in_progress`, or
            `idempotency_key_reused` (the key carried another request).
          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'
        '503':
          description: >-
            The PMS could not be reached before anything was charged
            (`details.reason: pms_unavailable`): retry later with the same key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
      security:
        - PartnerBearerToken: []
components:
  schemas:
    PartnerApiReservationDetailResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/PartnerApiReservationDetail'
      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
    PartnerApiReservationDetail:
      type: object
      properties:
        id:
          type: string
        external_id:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - PENDING
            - PENDING_PAYMENT
            - CANCELED_BY_USER
            - CONFIRMED
            - CONFIRMED_PENDING_PAYMENT
            - MANUALLY_CONFIRMED
            - DOUBLE_CONFIRMED
            - REJECTED
            - CANCELED_BY_RESTAURANT
            - SHOWED_UP
            - NO_SHOW
            - SEATED
            - PARTIALLY_SEATED
            - DONE
            - SEATED_FOR_DRINKS
        start_at:
          type: string
          format: date-time
        end_at:
          type: string
          nullable: true
          format: date-time
          description: >-
            Planned end of the stay in the restaurant timezone: the stay frozen
            by the shift's strict end of service when there is one, else the
            shift's average duration for the party size. Null when the
            reservation has no shift.
        duration_minutes:
          type: integer
          nullable: true
          minimum: 1
          description: >-
            Planned stay in minutes (see `end_at`). Shorter than the shift's
            average duration when the strict end of service clipped it.
        party_size:
          type: integer
          minimum: 0
          description: Number of covers. Can be 0 for a walk-in recorded without covers.
        source:
          type: string
          enum:
            - WALK_IN
            - WEBSITE
            - PHONE
            - EMAIL
            - RESERVE_WITH_GOOGLE
            - TRAVEL_AGENCIES
            - OTHER
            - INSTAGRAM
            - FACEBOOK
            - TIKTOK
            - SNAPCHAT
            - WHATSAPP
            - TRIPADVISOR
            - PRIVATIZATION
            - MISSED_CALL
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        customer:
          $ref: '#/components/schemas/PartnerApiCustomer'
        room:
          $ref: '#/components/schemas/PartnerApiRoom'
        tables:
          type: array
          items:
            $ref: '#/components/schemas/PartnerApiTable'
        waiter:
          $ref: '#/components/schemas/PartnerApiWaiter'
        shift:
          $ref: '#/components/schemas/PartnerApiShift'
        discount:
          $ref: '#/components/schemas/PartnerApiDiscount'
        prescriber:
          $ref: '#/components/schemas/PartnerApiPrescriber'
        custom_message:
          type: string
          nullable: true
        allergies:
          type: string
          nullable: true
        metadata:
          type: object
          nullable: true
          additionalProperties:
            $ref: '#/components/schemas/PartnerApiMetadataField'
        feedback:
          $ref: '#/components/schemas/PartnerApiFeedback'
        cancellation_reason:
          type: string
          nullable: true
        attached_files:
          type: array
          items:
            type: string
        tags:
          type: array
          items:
            type: string
        send_followup_email:
          type: boolean
        is_table_definitive:
          type: boolean
        is_force_inserted:
          type: boolean
        total_amount_paid:
          type: integer
          nullable: true
        payment_summary:
          $ref: '#/components/schemas/PartnerApiPaymentSummary'
        payments:
          type: array
          nullable: true
          items:
            $ref: '#/components/schemas/PartnerApiPayment'
        payment_url:
          type: string
          nullable: true
          description: >-
            The portal page where the guest pays what is still owed, while the
            reservation awaits an online payment; `null` otherwise or without
            `RESERVATIONS_READ_SENSITIVE`. Its token also lets the bearer
            confirm, modify or cancel the reservation, like the link of the
            payment e-mail. In API answers only, never in webhooks.
        seated_at:
          type: string
          nullable: true
          format: date-time
        left_at:
          type: string
          nullable: true
          format: date-time
        is_hotel_guest:
          type: boolean
          description: The guest stays at the hotel the restaurant belongs to.
        hotel_room_number:
          type: string
          nullable: true
          description: Null without `RESERVATIONS_READ_SENSITIVE`.
        pms_reference:
          $ref: '#/components/schemas/PartnerApiPmsReference'
        sensitive_data_included:
          type: boolean
      required:
        - id
        - external_id
        - status
        - start_at
        - end_at
        - duration_minutes
        - party_size
        - source
        - created_at
        - updated_at
        - customer
        - room
        - tables
        - waiter
        - shift
        - discount
        - prescriber
        - custom_message
        - allergies
        - metadata
        - feedback
        - cancellation_reason
        - attached_files
        - tags
        - send_followup_email
        - is_table_definitive
        - is_force_inserted
        - total_amount_paid
        - payment_summary
        - payments
        - seated_at
        - left_at
        - is_hotel_guest
        - hotel_room_number
        - pms_reference
        - sensitive_data_included
    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
    PartnerApiCustomer:
      type: object
      nullable: true
      properties:
        id:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
          format: email
        phone_number:
          type: string
          nullable: true
        lang:
          type: string
          nullable: true
          enum:
            - FR
            - EN
            - IT
            - ES
            - DE
            - PT
            - null
      required:
        - id
        - name
        - email
        - phone_number
        - lang
    PartnerApiRoom:
      type: object
      nullable: true
      properties:
        id:
          type: string
        name:
          type: string
      required:
        - id
        - name
    PartnerApiTable:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        min_pax:
          type: integer
        max_pax:
          type: integer
      required:
        - id
        - name
        - min_pax
        - max_pax
    PartnerApiWaiter:
      type: object
      nullable: true
      properties:
        id:
          type: string
        name:
          type: string
      required:
        - id
        - name
    PartnerApiShift:
      type: object
      nullable: true
      properties:
        id:
          type: string
        name:
          type: string
        start_time:
          type: string
          nullable: true
        end_time:
          type: string
          nullable: true
      required:
        - id
        - name
        - start_time
        - end_time
    PartnerApiDiscount:
      type: object
      nullable: true
      properties:
        id:
          type: string
        value:
          type: number
        message:
          type: string
          nullable: true
      required:
        - id
        - value
        - message
    PartnerApiPrescriber:
      type: object
      nullable: true
      properties:
        id:
          type: string
        name:
          type: string
        phone_number:
          type: string
          nullable: true
      required:
        - id
        - name
        - phone_number
    PartnerApiMetadataField:
      type: object
      properties:
        name:
          type: string
        value:
          anyOf:
            - type: string
            - type: number
            - type: boolean
            - nullable: true
            - type: array
              items:
                type: string
      required:
        - name
        - value
    PartnerApiFeedback:
      type: object
      nullable: true
      properties:
        rating:
          type: integer
        comment:
          type: string
          nullable: true
        answer:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        answered_at:
          type: string
          nullable: true
          format: date-time
      required:
        - rating
        - comment
        - answer
        - created_at
        - answered_at
    PartnerApiPaymentSummary:
      type: object
      properties:
        currency:
          type: string
          nullable: true
          enum:
            - MAD
            - EUR
            - USD
            - XOF
            - null
        total_amount:
          type: integer
        paid_amount:
          type: integer
        gift_card_amount:
          type: integer
        authorized_amount:
          type: integer
        pending_amount:
          type: integer
        refunded_amount:
          type: integer
        statuses:
          type: array
          items:
            type: string
            enum:
              - FREE
              - PENDING
              - PAID
              - EXPIRED
              - REFUNDED
              - CANCELED
              - AUTHORIZED
              - CAPTURED
              - CAPTURE_FAILED
              - VOIDED
              - DECLINED
      required:
        - currency
        - total_amount
        - paid_amount
        - gift_card_amount
        - authorized_amount
        - pending_amount
        - refunded_amount
        - statuses
    PartnerApiPayment:
      type: object
      properties:
        id:
          type: string
        provider_id:
          type: string
          nullable: true
        payment_type:
          type: string
          enum:
            - DEPOSIT
            - PREPAYMENT
            - EXTRA
            - NO_SHOW_FEE
            - GIFT_CARD
        payment_mode:
          type: string
          enum:
            - SOFT_PREAUTH
            - PREAUTH
            - POSTAUTH
        provider:
          type: string
          enum:
            - PAYZONE
            - CMI
            - STRIPE
            - CASH
            - WIRE_TRANSFER
            - DEBTOR
            - CREDIT_CARD
            - PARTNER
            - ROOM_CHARGE
            - GIFT_CARD
        status:
          type: string
          enum:
            - FREE
            - PENDING
            - PAID
            - EXPIRED
            - REFUNDED
            - CANCELED
            - AUTHORIZED
            - CAPTURED
            - CAPTURE_FAILED
            - VOIDED
            - DECLINED
        amount:
          type: integer
        gift_card_amount:
          type: integer
        quantity:
          type: integer
        unit_price:
          type: integer
        percent_of_total:
          type: number
        currency:
          type: string
          enum:
            - MAD
            - EUR
            - USD
            - XOF
        is_refundable:
          type: boolean
        external_reference:
          type: string
          nullable: true
          description: >-
            Reference of money taken outside EatNow (provider `PARTNER`): the
            partner's payment or order id.
        expiration_date:
          type: string
          nullable: true
          format: date-time
        max_cancellation_date:
          type: string
          nullable: true
          format: date-time
        authorized_at:
          type: string
          nullable: true
          format: date-time
        capture_deadline:
          type: string
          nullable: true
          format: date-time
        captured_at:
          type: string
          nullable: true
          format: date-time
        voided_at:
          type: string
          nullable: true
          format: date-time
        linked_product:
          $ref: '#/components/schemas/PartnerApiPaymentProduct'
        linked_variant:
          $ref: '#/components/schemas/PartnerApiPaymentProduct'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - provider_id
        - payment_type
        - payment_mode
        - provider
        - status
        - amount
        - gift_card_amount
        - quantity
        - unit_price
        - percent_of_total
        - currency
        - is_refundable
        - external_reference
        - expiration_date
        - max_cancellation_date
        - authorized_at
        - capture_deadline
        - captured_at
        - voided_at
        - linked_product
        - linked_variant
        - created_at
        - updated_at
    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.
    PartnerApiPaymentProduct:
      type: object
      nullable: true
      properties:
        id:
          type: string
        name:
          type: string
      required:
        - id
        - name
  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.