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

# Cancel your gift card

> Cancels a card you issued, for good: it can no longer be redeemed, and its history stays. Calling it again answers the same. Requires `GIFT_CARDS_ISSUE`.



## OpenAPI

````yaml https://app.eat-now.io/api/partner/v1/openapi.json post /api/partner/v1/gift-cards/{id}/cancel
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/gift-cards/{id}/cancel:
    post:
      tags:
        - Gift cards
      summary: Cancel your gift card
      description: >-
        Cancels a card you issued, for good: it can no longer be redeemed, and
        its history stays. Calling it again answers the same. Requires
        `GIFT_CARDS_ISSUE`.
      operationId: cancelPartnerGiftCard
      parameters:
        - schema:
            type: string
            minLength: 1
            description: The card's id.
          required: true
          description: The card's id.
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PartnerApiGiftCardCancelRequest'
      responses:
        '200':
          description: The canceled card
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiGiftCardResponse'
        '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: `GIFT_CARDS_ISSUE`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
        '404':
          description: No such gift card, or not yours to manage
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerApiError'
        '409':
          description: >-
            The card or its state refuses the operation: `error.details.reason`
            says why.
          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:
    PartnerApiGiftCardCancelRequest:
      type: object
      properties:
        reason:
          type: string
          minLength: 1
          maxLength: 500
    PartnerApiGiftCardResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/PartnerApiGiftCard'
      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
    PartnerApiGiftCard:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          enum:
            - gift_card
        code:
          type: string
          nullable: true
          description: The whole code, for the card's issuer only; null otherwise.
        masked_code:
          type: string
          description: The code's last characters.
        external_ref:
          type: string
          nullable: true
          description: Your reference, for the card's issuer only; null otherwise.
        origin:
          type: string
          enum:
            - ONLINE
            - ON_SITE
            - EXTERNAL_API
        type:
          type: string
          enum:
            - MONETARY
            - EXPERIENCE
        status:
          type: string
          enum:
            - SCHEDULED
            - ACTIVE
            - PARTIALLY_USED
            - USED
            - EXPIRED
            - BLOCKED
            - CANCELED
          description: '`ACTIVE`, `PARTIALLY_USED` and `USED` follow the balance.'
        currency:
          type: string
        initial_amount:
          type: integer
          description: Face value, in cents.
        balance_amount:
          type: integer
          description: What is left, in cents.
        label:
          type: string
          nullable: true
          description: An experience's name.
        covers:
          type: integer
          nullable: true
          description: An experience's covers.
        expires_on:
          type: string
          nullable: true
          format: date
          description: Last valid day, at the restaurant.
        holder_name:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - object
        - code
        - masked_code
        - external_ref
        - origin
        - type
        - status
        - currency
        - initial_amount
        - balance_amount
        - label
        - covers
        - expires_on
        - holder_name
        - created_at
        - updated_at
    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.