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

# Change an activity cart

> Its guest, room, or `external_id` when it has none. What is left out stays. A blacklisted guest is refused. Requires `ACTIVITIES_WRITE`.



## OpenAPI

````yaml https://app.eat-now.io/api/partner/v1/openapi.json patch /api/partner/v1/activity-carts/{id}
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-carts/{id}:
    patch:
      tags:
        - Activities
      summary: Change an activity cart
      description: >-
        Its guest, room, or `external_id` when it has none. What is left out
        stays. A blacklisted guest is refused. Requires `ACTIVITIES_WRITE`.
      operationId: updatePartnerActivityCart
      parameters:
        - schema:
            type: string
            minLength: 1
            description: Activity cart identifier.
          required: true
          description: Activity cart identifier.
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PartnerApiActivityCartPatchRequest'
            examples:
              default:
                value:
                  hotel_guest:
                    room_number: '214'
      responses:
        '200':
          description: The cart as it is now
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiActivityCartResponse'
              examples:
                default:
                  value:
                    data:
                      id: cart_123
                      external_id: GYG-48213
                      payment_url: null
                      activities:
                        - id: act_123
                          cart_id: cart_123
                          external_id: null
                          cart_external_id: GYG-48213
                          status: CONFIRMED
                          start_at: '2026-11-14T10:00:00+01:00'
                          party_size: 2
                          source: OTHER
                          product:
                            id: prod_hammam
                            name: Hammam traditionnel
                          variant:
                            id: var_duo
                            name: Duo
                          variants:
                            - id: var_duo
                              name: Duo
                              quantity: 1
                          assigned_staff: null
                          prescriber:
                            id: presc_gyg
                            name: GetYourGuide
                            phone_number: null
                          customer:
                            id: cus_123
                            name: Nadia Benali
                            email: nadia@example.com
                            phone_number: '+212600000000'
                            lang: FR
                          hotel_guest: null
                          additional_comment: null
                          metadata:
                            field-0:
                              name: Pression
                              value: soft
                          attached_files: []
                          tags: []
                          cancellation_reason: null
                          payment_summary:
                            currency: MAD
                            total_amount: 90000
                            paid_amount: 90000
                            gift_card_amount: 0
                            authorized_amount: 0
                            pending_amount: 0
                            refunded_amount: 0
                            statuses:
                              - PAID
                          payments:
                            - id: pay_123
                              provider_id: null
                              payment_type: PREPAYMENT
                              payment_mode: POSTAUTH
                              provider: PARTNER
                              status: PAID
                              amount: 90000
                              gift_card_amount: 0
                              quantity: 1
                              unit_price: 90000
                              percent_of_total: 1
                              currency: MAD
                              is_refundable: true
                              external_reference: GYG-PAY-48213
                              expiration_date: null
                              max_cancellation_date: null
                              authorized_at: null
                              capture_deadline: null
                              captured_at: null
                              voided_at: null
                              linked_product:
                                id: prod_hammam
                                name: Hammam traditionnel
                              linked_variant:
                                id: var_duo
                                name: Duo
                              created_at: '2026-11-02T09:12:00.000Z'
                              updated_at: '2026-11-02T09:12:00.000Z'
                          sensitive_data_included: true
                          created_at: '2026-11-02T09:12:00.000Z'
                          updated_at: '2026-11-02T09:12:00.000Z'
        '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: `ACTIVITIES_WRITE`; `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 cart with this id in the restaurant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
        '409':
          description: >-
            The cart has another `external_id`, another cart has this one, or
            the customer was merged meanwhile.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
        '422':
          description: >-
            Refused: `details.reason` is `blacklisted` or `contact`
            (`details.field`).
          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:
    PartnerApiActivityCartPatchRequest:
      type: object
      properties:
        customer:
          anyOf:
            - $ref: '#/components/schemas/PartnerApiCustomerReference'
            - $ref: '#/components/schemas/PartnerApiCreateCustomer'
            - nullable: true
          description: >-
            The cart's guest: `{ id }`, details (found or created, see
            `on_match`), or `null` to take them off.
        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; `null` when not. Without
            `pms_reference`, another room than the linked stay's unlinks the
            stay.
        external_id:
          type: string
          minLength: 1
          maxLength: 200
          description: >-
            Your reference of the cart, set only if it has none (`409` if it has
            another).
      additionalProperties: false
    PartnerApiActivityCartResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/PartnerApiActivityCart'
      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
    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.
    PartnerApiActivityCart:
      type: object
      properties:
        id:
          type: string
        external_id:
          type: string
          nullable: true
        payment_url:
          type: string
          nullable: true
          description: >-
            The page where the guest pays what the cart owes online; `null` when
            nothing can be paid. Needs `ACTIVITIES_READ_SENSITIVE`: it carries
            the cart's link.
        activities:
          type: array
          items:
            $ref: '#/components/schemas/PartnerApiActivity'
      required:
        - id
        - external_id
        - payment_url
        - activities
    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
    PartnerApiActivity:
      type: object
      properties:
        id:
          type: string
        cart_id:
          type: string
          description: >-
            The guest's visit: activities booked together share it (one payment
            page, one customer, one room).
        external_id:
          type: string
          nullable: true
          description: Your reference of this activity, set when you booked it.
        cart_external_id:
          type: string
          nullable: true
          description: Your reference of its cart, set when you booked it.
        status:
          type: string
          enum:
            - PENDING
            - REJECTED
            - CONFIRMED_PENDING_PAYMENT
            - CONFIRMED
            - SHOWED_UP
            - NO_SHOW
            - CANCELED_BY_RESTAURANT
            - CANCELED_BY_USER
        start_at:
          type: string
          format: date-time
        party_size:
          type: integer
          minimum: 0
        source:
          type: string
          enum:
            - WALK_IN
            - WEBSITE
            - PHONE
            - EMAIL
            - RESERVE_WITH_GOOGLE
            - TRAVEL_AGENCIES
            - OTHER
            - INSTAGRAM
            - FACEBOOK
            - TIKTOK
            - SNAPCHAT
            - WHATSAPP
            - TRIPADVISOR
            - PRIVATIZATION
            - MISSED_CALL
        product:
          $ref: '#/components/schemas/PartnerApiActivityProduct'
        variant:
          $ref: '#/components/schemas/PartnerApiActivityVariant'
        variants:
          type: array
          items:
            $ref: '#/components/schemas/PartnerApiActivityBookedVariant'
          description: >-
            What is booked: each variant of the product and its quantity, extras
            left out.
        assigned_staff:
          $ref: '#/components/schemas/PartnerApiActivityStaff'
        prescriber:
          $ref: '#/components/schemas/PartnerApiPrescriber'
        customer:
          $ref: '#/components/schemas/PartnerApiCustomer'
        hotel_guest:
          type: object
          nullable: true
          properties:
            room_number:
              type: string
              nullable: true
            pms_reference:
              $ref: '#/components/schemas/PartnerApiPmsReference'
          required:
            - room_number
            - pms_reference
          description: >-
            Set when the guest stays at the hotel. `room_number` and
            `pms_reference` are null without the sensitive view.
        additional_comment:
          type: string
          nullable: true
        metadata:
          type: object
          nullable: true
          additionalProperties:
            $ref: '#/components/schemas/PartnerApiMetadataField'
        attached_files:
          type: array
          items:
            type: string
        tags:
          type: array
          items:
            type: string
        cancellation_reason:
          type: string
          nullable: true
        payment_summary:
          $ref: '#/components/schemas/PartnerApiPaymentSummary'
        payments:
          type: array
          nullable: true
          items:
            $ref: '#/components/schemas/PartnerApiPayment'
        sensitive_data_included:
          type: boolean
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
          description: >-
            Last change of the activity, its cart or its payment lines. Not an
            order of events: read the activity again to know its current state.
      required:
        - id
        - cart_id
        - external_id
        - cart_external_id
        - status
        - start_at
        - party_size
        - source
        - product
        - variant
        - variants
        - assigned_staff
        - prescriber
        - customer
        - hotel_guest
        - additional_comment
        - metadata
        - attached_files
        - tags
        - cancellation_reason
        - payment_summary
        - payments
        - sensitive_data_included
        - created_at
        - updated_at
    PartnerApiActivityProduct:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
      required:
        - id
        - name
    PartnerApiActivityVariant:
      type: object
      nullable: true
      properties:
        id:
          type: string
        name:
          type: string
      required:
        - id
        - name
      description: >-
        The variant booked when there is exactly one; null when there are
        several (see `variants`).
    PartnerApiActivityBookedVariant:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        quantity:
          type: integer
          minimum: 0
      required:
        - id
        - name
        - quantity
    PartnerApiActivityStaff:
      type: object
      nullable: true
      properties:
        id:
          type: string
        name:
          type: string
      required:
        - id
        - name
      description: Who runs it (therapist, guide…), chosen by the staff.
    PartnerApiPrescriber:
      type: object
      nullable: true
      properties:
        id:
          type: string
        name:
          type: string
        phone_number:
          type: string
          nullable: true
      required:
        - id
        - name
        - phone_number
    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
    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
    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
    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.